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!

ittim
Posts: 29
Joined: Mon Aug 22, 2016 1:36 pm

Launching an installed .exe after install

Hi, This seems like it should be simple but I can't get this to work, I've gone throught the instructions but i'm clearly missing something.

I want to launch a file after installation has finished so I've clicked 'add custom action' and selected 'Launch installed file'

Then i've selected the file I want to run

I've then added it to various places in the install sequence trying to get it to work but when I run it I see 'There is a problem with this windows installer package. A program required for this install to complete could not be run...."

Now I assume thats my .exe but it hasn't installed it yet, It seems that its running before completetion. How I can ensure it runs at the end of install?
ittim
Posts: 29
Joined: Mon Aug 22, 2016 1:36 pm

Re: Launching an installed .exe after install

ok, think i have it working, however the installer seems to sit on 'removing backup files' now. Why would that be?
ittim
Posts: 29
Joined: Mon Aug 22, 2016 1:36 pm

Re: Launching an installed .exe after install

Got it! seems i had to uncheck 'wait for custom action to finidh before proceeding' and then it worked.
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Launching an installed .exe after install

Hello,

First of all I'm glad you got this working by yourself.
'There is a problem with this windows installer package. A program required for this install to complete could not be run...."
You may get this error if the related file cannot be accessed at installation time by your custom action within your installation project (e.g. the .EXE file was not installed yet).
I want to launch a file after installation has finished
For this, please take a look on the How to launch a file after an installation? article with related information for hints and guidance.
i had to uncheck 'wait for custom action to finidh before proceeding' and then it worked.
The wait for return code at the end of the sequence option determines if the current stage (Wizard Dialogs Stage or Install Execution Stage) will wait for the custom action return code after all actions have been executed. The actual return code is ignored by the installation.

Should there be any difficulty you encounter implementing something, please do not hesitate to contact me and I will gladly assist.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”