Microsoft Knowledge Base Article
This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved.
Terms
of Use |
Trademarks
Article ID: 177590 - Last Review: July 18, 2007 - Revision: 4.2
ADT/ODE: Setup Not Completed Successfully Installing Custom Application
This article was previously published under Q177590
Advanced: Requires expert coding, interoperability, and multiuser skills.
On This Page
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Â
(http://kbalertz.com/Feedback.aspx?kbNumber=178330/EN-US/
)
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 File
NOTE: 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.
MORE INFORMATION
Steps to Reproduce Behavior
- In the Microsoft Access Developer's Toolkit 7.0 Setup wizard or the
Microsoft Office 97 Developer Edition Tools Setup wizard, create a
custom Setup program that includes the sample database Northwind.mdb.
- On the screen that asks
Do you want to run an executable file after your custom Setup program is completed?
enter the Northwind database as the file that you want to run after
setup completes.
- Type the following command line in the "Enter or edit command line that
will be used to run the executable file.":
"$(AppPath)MSACCESS.EXE" /runtime "$(FilePath)\Northwind.mdb"
- Click to select the "Allow Setup to Complete Before the File Finishes
Executing" check box.
- Create your disk images and install them on any computer. Note that you
receive the message mentioned in the "Symptoms" section.
NOTE: This means you may need two copies of your run-time application: one
copy for those computers that have the retail version of Microsoft Access,
and one copy for those computers that do not have the retail version.
APPLIES TO
- Microsoft Access 95 Standard Edition
- Microsoft Access 97 Standard Edition
- Microsoft Access Developer's Toolkit 1.1
- Microsoft Office 97 Developer Edition
Retired KB Content DisclaimerThis article was written about products for which Microsoft no longer offers support. Therefore, this article is offered "as is" and will no longer be updated.
Community Feedback System
Very often, it takes hours to solve a problem. Very often, you've looked high
and low, and have tried a lot of solutions. When you finally found it, chances
are, it was because someone else helped you. Here's your chance to give back.
Use our community feedback tool to let others know what worked for you and what
didn't.
Please also understand that the community feedback system is not warranted to be
correct, it's simply a system that we've built to let people try and help each
other. If something in a feedback response doesn't make sense to you, or you're
not comfortable making changes that the feedback talks about (like registry
edits), please consult a professional.
Thank you for using kbAlertz.com Feedback System.
-- Scott Cate
Be the first to leave feedback, to help others about this knowledge base
article.
(Optional) Name
(Optional)
Public URL Or Email
Comments
No
HTML -- Text Only Please