Hi,
For this you can use a custom action scheduled under the "InstallExecuteSequence" -> "InstallFinalize" standard action (you can use the "Launch file or open URL custom action" for example). This custom action will have the "Expression" field in the "Execution Condition" section set to "NOT Installed" (this will run the custom action only during the install process).
You can read about custom actions here:
http://www.advancedinstaller.com/user-g ... -page.html
In order to use the custom action you can follow these steps:
- go to the "Custom Actions" page
- use the "Show Standard Action" button to show the "Before Finalization" -> "InstallFinalize" standard action
- under it create a "New Installed Custom Action" and select the application you want to run
- set the "Expression" field in the "Execution Condition" section to "(Not Installed)"
Now the custom action will run after the installation is complete (when "ExitDialog" is shown).
If you want to run the custom action when the user clicks the "Finish" button on "ExitDialog" then you create this custom action under "UI Custom Actions". After this, you go to the "Dialogs" page, select the "Finish" button, go to the "Published Events Tab" and add this control event:
DoAction myapp.exe AI_INSTALL
where "myapp.exe" is your custom action.
I must be able to pass commandline parameters to the application.
This can be done by specifying the parameters in the "Command Line" field (after you specify the application) in the "Custom Action Properties" page.
second, I did not see a way to launch it asynchronously (I don't want the installer to wait, it should just end)
For this you can set the "Asynchronous execution, do not wait for return" option in the "Custom Action Properties" page.
I would like to get rid of the ExitDialog and just force the install process to launch the application when it is done (asynchronously).
Please note that "ExitDialog" is a mandatory installation dialog and it cannot be removed (it must be present in the installation).
Regards,
Cosmin
FOLLOW US
Get the latest news in Application Packaging