anasrallah
Posts: 14
Joined: Tue Dec 13, 2011 7:52 pm

Custom action after files copied

How can I launch a custom action to launch an exe after files are copied to the application folder thru the install.
I tried to put it on the next button of the ProgerssDlg but I dont get this, once installation is done I see the Finish button.
I also made the exe file as a file that goes to the application data folder and then made it as the launch application of the Finish Actions but I would like to have the files not copied to the client machine (attached file and not installed file) and I would like the file to be launched based on if a feature is selected.

Thanks
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Custom action after files copied

Hi,
How can I launch a custom action to launch an exe after files are copied to the application folder thru the install.
Here's the article to help you with this.
I also made the exe file as a file that goes to the application data folder and then made it as the launch application of the Finish Actions but I would like to have the files not copied to the client machine (attached file and not installed file) and I would like the file to be launched based on if a feature is selected.
You can use an "Attached Custom Action" as an UI Custom Action to be executed when the "Finish" button is pressed as described in this article.
The DoAction event's condition should be something like:

Code: Select all

&YourFeature=3
This condition will be true only if the feature "YourFeature" will be installed locally. If the feature is not selected for installation the condition is false.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”