ADT/ODE: Setup Not Completed Successfully Installing Custom Application (177590)
The information in this article applies to:
- Microsoft Access for Windows 95 7.0
- Microsoft Access 97
- Microsoft Access Developer's Toolkit 7.0
- Microsoft Office 97 Developer Edition
This article was previously published under Q177590 Advanced: Requires expert coding, interoperability, and multiuser skills.
SYMPTOMS
When you use the Microsoft Office 97 Developer Edition Tools (ODE) Setup
wizard or the Microsoft Access 7.0 Developer's Toolkit (ADT) to create a
custom Setup program, and you include a database file name on the screen
that asks
Do you want to run an executable file after your custom Setup program is completed?
you may receive the following error message when you run your custom Setup
program on any computer:
Setup was not completed successfully
CAUSE
This behavior may occur if the custom Setup program cannot find or open the
executable file (Msaccess.exe) that was specified in the "Enter or edit the
command line that is used to run the executable file:" text box.
RESOLUTION
You can resolve this behavior by using one of the following methods. Both
of these methods are described in detail later in this article.
- Modify the Setup wizard program to include the correct path to the
executable file.
- Modify the SETUP.STF file to include the correct path to the executable
file.
NOTE: Modifications to an STF file should be made using a backup copy
of the file and following the procedures outlined in the following
article in the Microsoft Knowledge Base:178330
How to install Access 97 wizards locally [Standalone network setup]
Modifying the Setup Wizard Program- Start the Setup wizard program.
- Modify the "Enter or edit the command line that will be used to
run the executable file:" text box to include a valid path. For
example, if you are adding a line similar to the following to the
command line
"$(Filepath)\msaccess.exe" /runtime FilePath)\Northwind.mdb"
you should change it to the following:
"\Program Files\Microsoft Office\Office\msaccess.exe" /runtime
"$(FilePath)\Northwind.mdb"
- Recreate your disk images.
- Rerun your custom setup program.
Modifying the SETUP.STF FileNOTE: This procedure makes changes to the SETUP.STF file, which is not
supported by Microsoft. Microsoft provides this information "as is" without
warranty of any kind, either express or implied, including but not limited
to the implied warranties of merchantability and/or fitness for a
particular purpose.
- Make a backup copy of the SETUP.STF file located in your DISK1
folder (or the network folder if you chose a Network Setup), and name
the backup copy SETUPSTF.BAK.
- Open the SETUP.STF file that the Setup wizard program creates using
Microsoft Excel.
- Modify the line that contains the custom command line. For example, if
the CustomAction for the command line reads as follows
"msacccah.dll","AsyncEXECalloutCAH","""%1325\msaccess.exe""
""/runtime"" ""%1325\Northwind.mdb"""
you should change it to the following:
In Microsoft Access 97
----------------------
"msacccah.dll","AsyncEXECalloutCAH","""\Program Files\Microsoft Office\msaccess.exe"" ""/runtime"" ""%1325\Northwind.mdb"""
Note that in the example, you are modifying the first reference to
"%1325" with "\Program Files\Microsoft Office".
In Microsoft Access 7.0
-----------------------
"msacccah.dll","SyncEXECalloutCAH","""\Program Files\Common Files\Microsoft Shared\Microsoft Access Runtime\msaccess.exe"" ""/runtime""""%1325\Northwind.mdb"""
Note that in the example, you are modifying the first part of the command that reads as
"%825" with "\Program Files\Common Files\Microsoft Shared\Microsoft Access Runtime".
- Close and save the SETUP.STF file.
NOTE: Make sure that you replace the existing SETUP.STF file by
specifying the correct folder for the newly saved file.
- Rerun your custom Setup program.
REFERENCES
For more information about customizing the SETUP.STF file, please see the
following article in the Microsoft Knowledge Base:
119357 OFF: "How to Create a Custom Installation Script" (WC1046)
Modification Type: | Major | Last Reviewed: | 2/24/2006 |
---|
Keywords: | kberrmsg kbprb KB177590 |
---|
|