toyito
Posts: 5
Joined: Sun Dec 04, 2005 4:55 am

How to launch a program from installation CD

Hi:
I have an installer runnig from a cd, in that cd i have some programs, i need to run one of those program on the cd after installation proccess ends.
Is possible to do that whit something like a custom action??

Thanks for your help

Hector
Ionut
Posts: 605
Joined: Tue Nov 22, 2005 11:29 am
Contact: Website

Hi,

Yes, it is possible. You need to add the predefined "Launch File or Open URL" Custom Action at the end of the setup process (for example, in the InstallFinalize stage).

This Custom Action will use the Windows Installer "SourceDir" property to determine the directory that contains the installation package.

An example: Suppose that your installation package is located in a folder named "MsiPackage", which will be placed in the root directory of the CD. One of your programs ("app.exe") is placed in the "App" directory, also located in the root folder of the CD.

In this case:
1. Switch to the Custom Actions page, use the "Show Standard Action" toolbar button and select "Before Finalization -> InstallFinalize".

2. Right click the "InstallFinalize" item and select "Add Predefined Custom Action -> Launch File or Open URL".

3. In the "Command Line" field enter:

Code: Select all

[SourceDir]..\App\app.exe

The 2 dots ".." are used to access the parent directory of the folder containing the MSI package.

4. If necessary, set the Execution Condition to something appropriate (for example you might want not to launch the program from the CD when removing the application).

Hope this helps.

Regards,
Denis
Denis Toma
Advanced Installer Team
http://www.advancedinstaller.com/
toyito
Posts: 5
Joined: Sun Dec 04, 2005 4:55 am

Thanks...

It really works

Regards

Hector

Return to “Common Problems”