Running Program at End of Installation - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

BCh
Posts: 63
Joined: Wed Jan 17, 2007 6:32 am
Location: Australia

Running Program at End of Installation

Was able to successfully run a program at the end of the install but for some reason I have done something and it now does not work. Even if I copy from a previous project!Am using advanced Installer 7.5.

Have created Custom Action / InstallExecuteSequence / InstallFinalize / Launch File or Open URL.

Have following values in:
- Source PAth: <AI_CUISTACTS>viewer.exe
- Source Type: Executable(*.exe)
Command Line: C:\Program Files\Label1\Lable2\pgm.exe

Execution Properties: Synchronous execution, check return code.

Execution Options: Immediate

Scheduling Options: Always Execute

Execution Options: (Not Installed)

Keep getting message:
"Problem with Windows Installer package. A Program run as part of the setup did not finish as expected. Contact your...."

The progam runs OK once installed.

Note sure if my command line is OK but that is what I have used before.


Have gone through previous posts and read user guide re: How Do I Launch A File after Installation?

Think I am missing something VERY simple.

Thanks.
BCh
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Running Program at End of Installation

Hello,

Please note that paths containing white spaces should be enclosed within quotes.
The correct form would be:

Code: Select all

Command Line: "C:\Program Files\Label1\Lable2\pgm.exe"
Also, this would restrict your custom action to only work if your product was installed in C:\
To remove this limitation, use the file picker. Click "Edit" to the left of the "Command Line" field, click "File" and select the pgm.exe file from your project. The result should look something like:

Code: Select all

"[#updater.exe]"
Again, note the quotes enclosure.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”