How do I tell the Access 2003 package wizard to run additional install programs (.exe or .bat)?

I am using the Access 2003 package wizard (for the first time) to create a set of installation files for my Access program. With the Access 2002 packaging wizard, I could specify a file (e.g., .bat, .exe) to run after the Access files had been installed. I don't see that option with the 2003 wizard. I can certainly add the .exe file to the installed files, but I don't see how I can tell the wizard to run the file. What's the best way to do this?

By the way, the .exe program installs a 3rd party ActiveX control (Total Access Memo).
Who is Participating?
Leigh PurvisDatabase DeveloperCommented:
Hard to say exactly - but you'd probably end up just adding something that looked like


See if that's right?  (Guessing on the EXE name)
Leigh PurvisDatabase DeveloperCommented:
From the extentions Help - as good as anything I could write for you ;-)

The Setup.exe file used in your package is copied from your Microsoft Office 2003 CD. The Setup.ini files contains the settings that Setup.exe uses during the installation of your application, including the following settings:

Name/Product Code/location of <PARENT>.MSI
Minimum operating system and System Pack requirements
Display Mode
Details of each subsequent chained install
Log file folder
Any chained executable files (for example, .vbs, .exe, or .reg files)
Setup.ini also provides a convenient way to link multiple .msi files in a given installation.

For each chained file, include a [ChainedInstall_i] section. To avoid unpredictable behavior, ensure that you number chained installations in sequence, for example, [ChainedInstall_1], [ChainedInstall_2], and so forth. Specify the relative path to Setup.exe of the .msi file that you want to install.

The section specifying a linked .msi file may appear in the Setup.ini as follows:
CmdLine=/qf \

Note  You can also link executable files, such as .bat, .vbs, .reg, .exe files. When linking executables, specify "EXE" as the TaskType in Setup.ini.
gordonwwaughAuthor Commented:
I'll need a little more handholding on this one.

What would my .ini file look like? Let's assume that I want the file OtherSetup.exe to run after the Access files have been installed. Here's my current setup.ini file (I've deleted the comments from the file). What would the revised setup.ini file look like?

; SETUP.EXE settings file.
ProductCode={my product code number goes here}
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

gordonwwaughAuthor Commented:
Your solution almost works. The installer installs the Access files. Then it looks for the tamrun11.exe file.

But the installer cannot find the tamrun11.exe file. The package wizard does not put the tamrun11.exe file into the Files folder as a separate file. I guess it must be integrated into the .msi file.

Is there a way to reference tamrun11.exe properly when it is in the .msi file--or do I have to manually place it into the Files folder as a separate file? It's not a big hassle having to do it. But if I don't have to do it, that would be nice.
Leigh PurvisDatabase DeveloperCommented:
What had you done with the exe file up to that point?
If you've got the line
in your ini file - then you'll need to make sure that tamrun11.EXE is in place as specified.

There's no automated way of putting it there - as you're editting the ini file manually :-)
gordonwwaughAuthor Commented:
I had told the Access package wizard to include the tamrun11.exe file--and some other additional files. The installer correctly copies these files to the \Program Files\MyAccessProgram folder along with MyAccessProgram.mde.

These additional files, however, are nowhere to be found on the installation CD that I create. That's why I am guessing that they are integrated into the .msi file on the installation CD.

It sounds like you are saying I cannot set the Path to something like Path="\Files\MyPgm.msi\tamrun11.exe". Instead, I have to put tamrun11.exe into the Files folder. Is that what you are saying?
Leigh PurvisDatabase DeveloperCommented:
Yeah - that's where I'd always look to put it.
gordonwwaughAuthor Commented:
It works, now. Thanks very much!
Leigh PurvisDatabase DeveloperCommented:
Welcome.  Glad you're sorted :-)
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.