The information in this article applies to:
- Microsoft Office 97 Developer Edition Tools
SYMPTOMS
Moderate: Requires basic macro, coding, and interoperability skills.
When you change the application's main file name or extension, the dialog
page that you use to set up the Registry Values List for your main
application file does not reflect the change to the base value, if the
value data is set to "$(FilePath)\<Name of the File>." For example, if you
change the name of the "Northwind.mdb" file to "Northwind.mde," the Value
Data entry does not change to "$(FilePath)\Northwind.mde" (without the
quotation marks). This will be a problem, if you change your installation
routines to use the new .mde extension.
CAUSE
This is by design.
RESOLUTION
To change the value of the original file name to the correct new file name,
you must manually change the Value Data entry in the main file selection in
the Registry Values list.
MORE INFORMATION
Steps to Reproduce Behavior
- Start the Setup Wizard. Select "Create a new set of setup options for
my application's custom Setup program." Click Next.
- Add the sample Northwind database to the List of Files dialog box.
- Click to select the "Set as Application's Main File" check box. Click
Next.
- Click Next to skip the List Of Shortcuts dialog box.
- Click Add in the List of Registry Values dialog box.
- In the "Top level for the Key" box, type "HKEY_LOCAL_MACHINE" (without
the quotation marks).
- In the "Path to the Key" box, type
"Software\Microsoft\Office\8.0\Access\Menu Add-Ins" (without the
quotation marks).
- In the Value Name box type "Library" (without the quotation marks).
- In the "Base Value Data on File" box, type the path and name of the
application file (<path>\Northwinds.mdb).
- Make sure that the Value Data box contains "$(FilePath)\Northwind.mdb"
(this is the default).
- Accept the rest of the defaults on each of the following screens, but
on the last screen, click Save and save the template.
- Click Finish to close the Setup Wizard.
- Create another copy of the Northwind.mdb file named Northwind.mde.
- Open the Setup Wizard.
- Select the option to open an existing template, and choose "Use
previously saved setup options to create a custom Setup program for
my application."
- Highlight the File Name and Path box, and change the path and file to
the location of the Northwind.mde file you just created.
- Click Next, Next to get to the Registry Values dialogs.
Note that the value displayed for Value Data reflects the old file name
$(<path>\Northwind.mdb). If you run the setup, this will cause the registry
entry to be incorrect for the name of the database. This issue manifests
itself as a real problem when you are installing a wizard. The registry
entry will be incorrect, making it difficult to troubleshoot and determine
why the add-in will not start.
|