Microsoft KB Archive/189412

= ODE97: "Always Overwrite" Option Fails When MDB Is in WinPath =

Article ID: 189412

Article Last Modified on 1/23/2007

-

APPLIES TO


 * Microsoft Access 97 Standard Edition
 * Microsoft Office 97 Developer Edition

-



This article was previously published under Q189412



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



SYMPTOMS
When you use the Microsoft Office Developer Edition Tools to distribute a custom application and the destination folder for the application file is set to $WinPath, the Always Overwite option fails when you try to install a modified version of the application file.



RESOLUTION
To resolve this problem, select $AppPath as the destination folder for the main application file.



STATUS
Microsoft has confirmed that this is a problem in Microsoft Access 97.



Steps to Reproduce Problem
 Start Microsoft Access and open the sample database Northwind.mdb. On the Tools menu, click Startup. In the Startup dialog box, click the arrow in the Display Form box, select Main Swichboard, and then click OK. Close the sample database Northwind.mdb. Run the ODE Setup Wizard.</li> On the first screen of the wizard, click to select Create a new set of setup options for my application's custom setup program, and then click Next.</li> On the next screen of the wizard, add the sample database Northwind.mdb to the List Of Files box.</li> Click the arrow in the Destination Folder box, and select $(WinPath). Click the arrow in the Overwrite Existing box, and select Always.</li> Click to select Set as Application's main file, and then click Next six times to move to final screen of the Setup Wizard.</li> Click to select Network or CD Setup, and then click Finish.</li> Click Yes to save the template, and then click Save.</li> Install the application that you just created.</li> Start Microsoft Access, and open the sample database Northwind.mdb.</li> Open the Main SwitchBoard form in Design view.</li> On the View menu, click Properties, and then click the All tab.</li> Modify the Caption property to read as follows:

Main Switchboard Version 2.0

</li> Close and save the form.</li> Close the database, and run the ODE Setup Wizard.</li> On the initial screen of the setup wizard, click to select the Use previously saved setup options... check box, and then click Next.</li> Click Open to open the template that you saved in step 11.</li> Click Next four times.</li> <li>Increase the version number of the application, and click Finish to complete the Setup Wizard.</li> <li>When you are asked if you would like to overwrite the setup files, click Yes.</li> <li>When asked if you would like to save the current Setup template, click No.</li></ol>

Note that after you re-install the custom application, the copy of Northwind residing in the $(WinPath) folder is not the modified copy, but the original.

Additional query words: prb

Keywords: kbprb KB189412

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.