Microsoft KB Archive/161403

= ADT/ODE: Error Running Setup If More Than 40 Registry Keys Defined =

Article ID: 161403

Article Last Modified on 10/22/2003

-

APPLIES TO


 * Microsoft Office 97 Developer Edition
 * Microsoft Access Developer's Toolkit 1.1

-



This article was previously published under Q161403



Advanced: Requires expert coding, interoperability, and multiuser skills.



SYMPTOMS
When you use the Setup Wizard to create a custom Setup in Microsoft Office 97 Developer Edition Tools (ODE) or Microsoft Access Developer's Toolkit version 7.0, if you specify more than 40 custom Registry keys for a single component, you may receive the following error message when you try to install the application:

In Microsoft Office 97 Developer Edition Tools
Object 

Your Setup files may be damaged. Try restarting the Setup program from

where you originally ran it.

In Microsoft Access Developer's Toolkit version 7.0
Object 

Your Setup files may be damaged. Try restarting the Setup program.

This message is followed by another one stating that Setup was not completed successfully.



CAUSE
Applications created with the Setup Wizard are limited to 40 custom Registry keys per component name.



RESOLUTION
If you need to include more than 40 custom Registry keys, create a new component name in the Setup Wizard to include the additional keys.



STATUS
This behavior is by design.



Steps to Reproduce Behavior
 Start the Setup Wizard. In the "What would you like to do?" dialog box, click "Create a new set of setup options for my application's custom Setup program," and then click Next. In the "List of Files" box, click the Add button and add the sample database Northwind.mdb. Click "Set as Application's Main File," and then click Next. In the "List of Shortcuts" box, click the Add button. Type Northwind Test in the Description box, and then click Next.</li>  In the "List of Registry Values" box, click the Add button and complete the following information: <pre class="fixed_text">     Top-Level for Key: $(Machine's Software Key for App) Path to Key: Options Value Name: Key1 Base Value Data on File: (none) Value Data: Test Value Data Type: String Component Name: Application </li> Perform step 5 a total of 41 times; each time increment the Value Name by one, such as Key2, Key3, Key4, and so on, for a total of 41 keys.</li> Click the Finish button, and save the Setup template as RegKey.mdt.</li> After the disk images are created, run the Setup program. Note that you receive the error message mentioned in the "Symptoms" section.</li></ol>

<div class="references_section">