can I force a launch - 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!

mikeb
Posts: 3
Joined: Fri Jan 11, 2008 2:52 am

can I force a launch

Is there a way to force the launch of the application once the install is complete? I would like to get rid of the ExitDialog and just force the install process to launch the application when it is done (asynchronously).

A quick note on this: I must be able to pass commandline parameters to the application. Also, I have tried adding a custom action to do this but ran into a couple of issues:
- first, I could not figure out what action to put it under that would be very last thing that happens in the install process
- second, I did not see a way to launch it asynchronously (I don't want the installer to wait, it should just end)
- third, it ran even on an uninstall (I put it under the Install Finalize standard action)

Thanks for your help.

- MikeB
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

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
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
mikeb
Posts: 3
Joined: Fri Jan 11, 2008 2:52 am

Thank you for your quick and detailed reply.

Return to “Common Problems”