You are here: > Home > Support > ToolBook Knowledge Base

Knowledge Base

Printer Friendly
How can I launch another application when setup.exe is finished?

PROBLEM:
========
Is it possible to launch other applications after the setup.exe file generated by the AutoPackager has finished installing your program?

SOLUTION:
=========
To do this, locate the [DefaultComponent] group in the .asu file generated by the AutoPackager. You will need to add a line after the DefaultMessage entry for every application you want to launch.

The syntax that should be added should be written in the following format:

Action0="<exe file>"
for example:

Action0="yourInstallApp.exe"

for multiple installs simply increment the numeral following "Action". For example:

Action0="yourInstallApp.exe"
Action1="yourSecondInstallApp.exe"
Action2="yourThirdInstallApp.exe"

It is also possible to launch existing applications and pass them command line arguments. The syntax for this is as follows:

Action0="<exe file>[,<arguments>]"

The command line supports the following delimiters: $INSTALL$, $COMMON$, $SOURCE$, $SOURCEDRIVE$, $WINDOWS$, or $SYSTEM$. These can be used to launch an application that resides in a particular directory such as the windows system directory. The following example illustrates how to launch the notepad program and pass it a readme.txt file located at the directory where the setup.exe file was launched from (typically the root directory of the CD):

Action0="$SYSTEM$ otepad.exe,$SOURCE$\readme.txt"


OPENSCRIPT NOTICE
The OpenScript programming examples found in many articles may need modification in order to work in ToolBook 9.0 or higher, particularly if the article was written for an older version of ToolBook. To learn more, click here.

  Provide Anonymous Feedback About This Article