Building and Installing the Addin

After finding and correcting any errors in the add-in's code, you are ready to build the add-in; to do this, click the Save All button, and then select Build from the context menu of the "Create ObjectsSetup" item in the Solution Explorer (the name is your add-in's name plus "Setup"), as shown in Figure 16.25.

When "Build succeeded" appears in the lower-left corner of the status bar, you can then install the solution by selecting Install from the same context menu.

If the Install selection is disabled after a successful first build, select Rebuild; after that, Install should be enabled.

FIGURE 16.25

Building the solution.

s • lip CreateObjects

E- L_i My Project

E ■ Resources.resx (=)•• References ; *Q Extensibility

-Q Microsoft.Office.Core j—■ -Q Microsoft, Off iceJnterop,Access

I- Q CreateObjects.dll i_j CreateObjects.pdb

^ Assemblylnfo.vb ^ Connect.vb ¡^ Ribbon.xml

Microso ■O Microso Office.d Primary out






Selecting Install starts the awkwardly named Create ObjectsSetup Setup Wizard (see Figure 16.26).

FIGURE 16.26

The first screen of the Setup Wizard.

FIGURE 16.26

Clicking Next gets you the Select Installation Folder screen (see Figure 16.27), where you can either accept the default location or browse for another location, and select whether the add-in is available to all users or just you.

FIGURE 16.27

Selecting the installation folder for the solution.

Creite ObjectsSetup

L=_i I S3

Select Installation Folder

The installer will install Create ObjectsSetup to the following (older.

To install in this folder, click "NentM. To install lo a different (older, enter it below or click "Browse". Folder:

|JAProgram Files ^Default Company Name ^Create ObjectsSetup^ | Browse...

Disk Cost..

Install Create ObjectsSetup for yourself, orfor anyone who uses this computer:

On the Confirm Installation screen of the Setup Wizard shown in Figure 16.28, click Next to start the installation.

FIGURE 16.28

The Confirm Installation screen of the Setup Wizard.

$ Create ObjectsSetup

1*3.1 s ÍB I

Confirm Installation


The installer is ready to install Cieate ObjectsSetup on your computer. Click "Newt" to start the installation.

The next screen, omitted here, shows a progress bar while the solution is being installed.

When the installation is complete, you will get the Installation Complete screen, depicted in Figure 16.29.

FIGURE 16.29

The final screen of the Setup Wizard.

FIGURE 16.29

The final screen of the Setup Wizard.

Generally speaking, after clicking Close on the last wizard screen, the add-in is installed automatically; however, if you don't see the custom Ribbon that the add-in should create in an Access 2007 database, you can install it manually. Open the Access Options dialog from the Office menu, and select the Add-ins page. At the bottom of the page click the Go button to the right of the COM Add-ins drop-down, as shown in Figure 16.30.

The COM Add-ins dialog (shown in Figure 16.31) looks the same as in older versions of Access. If you see the add-in listed, just check it; otherwise, you can browse for it.

Opening the COM Add-ins dialog from the Add-ins page of the Access Options dialog.


FIGURE 16.31

Installing a COM add-in in the COM Add-ins dialog.

FIGURE 16.31

Installing a COM add-in in the COM Add-ins dialog.

Was this article helpful?

0 0

Post a comment