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!

BrianO
Posts: 9
Joined: Wed Dec 18, 2013 12:36 am

Restart the Program

I have AI setup so that it applies patches via a "silent" install.

AI first checks to see if the program is running and if so, stops the process. It then applies the updates. Ideally, I would like AI to restart the program without user intervention. This works in an interactive scenario but not in the silent install. I have tried lauching the program via the Custom Actions but it doesn't work in the silent mode.

1. Is there a way to restart the program after all updates have been applied in the "silent" mode?

2. If not, how do I display a message to the user telling them that an update has been applied and to restart the program manually? Again, this is in the silent mode.
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Restart the Program

Hello,
Is there a way to restart the program after all updates have been applied in the "silent" mode?
In order to achieve that you can use our predefined Launch file custom action with sequence to launch your application at the end of the installation process.
Please take a look on the Launch file after installation article which may be useful to you.
2. If not, how do I display a message to the user telling them that an update has been applied and to restart the program manually? Again, this is in the silent mode.
Indeed, when a silent installation is made no dialog is displayed. However, you can create your own custom action which will display a custom message at the end of the installation process of the updates. Then you can go in the “Custom Actions” page and add a predefined Launch attached file custom action with sequence. This type of custom action can execute an application (EXE or DLL) or run a script (VBScript or Java script). Also, the source file will be embedded in the MSI file but will not be deployed at install time with the other application files.

Also, a message box can be displayed using our predefined Execute inline script code custom action with sequence which is basically a small VBScript or JScript that is ran during the install process.
Here is an example of a "Execute inline script code" custom action written in VBScript:

Code: Select all

MsgBox "Updates have been applied. You can now restart your application."
Please let us know if that helped.

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

Return to “Building Installers”