Microsoft KB Archive/163184

= You receive a warning message in the Setup Wizard when you use Office 97 Developer Edition Tools to create a custom application that includes ActiveX controls =

Article ID: 163184

Article Last Modified on 4/1/2005

-

APPLIES TO


 * Microsoft Office 97 Developer Edition

-



This article was previously published under Q163184



Moderate: Requires basic macro, coding, and interoperability skills.



SYMPTOMS
When you use the Microsoft Office 97, Developer Edition Tools to create a custom application that includes an ActiveX control and its supporting .dll file(s), and you click to select the Run-Time check box on the Database Shortcut Properties tab, you may receive the following warning message when the Setup program starts to create your disk images:   File 'C:\Windows\system\ComCat.dll' is also required by a Microsoft Access-provided component. Some properties you have set may be modified.   If you have not included this file in your Setup program, it may be one of the files needed by an ActiveX control you have added.



CAUSE
The ODE Setup Wizard will display this message whenever an ActiveX control's supporting file, Comcat.dll is added to the Setup program, and you specify that the Run-time option be included as well. This behavior occurs because the Comcat.dll file is used with the .dep file and the Run- time option.



MORE INFORMATION
When you include the Run-time option, Comcat.dll is automatically included behind the scenes but is not added to the Add Files List. When you add an ActiveX control (.ocx) file on the Add File page of the ODE Setup Wizard, the Setup Wizard searches for the dependency (.dep) file for this control. If it finds the .dep file, the Setup Wizard will automatically add the supporting file(s) specified in the .dep file to the List Of Files list on the Add Files page. Comcat.dll will be included in this list for most of the ActiveX controls included in the ODE. So if you are including the Run-time option and an ActiveX Control whose .dep file includes Comcat.dll, Comcat.dll is really being included twice. This is why you receive the warning message described in the "Symptoms" section.

Steps to Reproduce Behavior
 Start the ODE Setup wizard. On the Introduction screen click "Create a new set of setup options for my application's custom Setup program." Click Next to move to the next screen which states:

Add the files that you want your custom Setup program to copy and then set properties for each file.

 Click Add. Locate the Northwind.mdb database, and then click Add.</li> Click to select the "Set as Application's Main File" check box.</li> Click Add again, and add the file Comdlg32.ocx, to the List Of Files list. Comcat.dll is added automatically.

NOTE: By default, both files are stored in your Windows/System folder.</li> Click Next to move to the next screen which states:

Add the shortcuts that you want your custom Setup program to create and then set the properties for each shortcut.

</li> Click Add.</li> In the Description box, type a description for your shortcut.</li> On the Database Shortcut Properties tab, click to select the Run-time check box.</li> Click Next until you get to the screen which states:

Where do you want the Setup Wizard to copy the files for your custom Setup program.

</li> Click to select the "Network or CD Setup" check box, and then click Finish.

Note that when the ODE Setup Wizard starts creating the disk images, you receive the message mentioned in the "Symptoms" section.</li></ol>

<div class="references_section">