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!

MLiss@Cetrus.com
Posts: 366
Joined: Wed Dec 30, 2015 5:40 pm

application start

Hi,

I have an installer that is set to kill the application if it is running
ProcessDetect_Kill.PNG
ProcessDetect_Kill.PNG (73.02 KiB) Viewed 2964 times
And to start the application after it is installed.
LaunchAfterInstall.PNG
LaunchAfterInstall.PNG (4.97 KiB) Viewed 2964 times
When the installer is manually run (the user double clicks it), the application is killed and then it starts at the end of the install.

However, when I programmatically start the application (using C# and "Process.Start" and a quiet install)
the application is killed (I see the application disappear from the task manager),
the new application successfully installs ( I check version number on the file and it is the new version)
but then it fails to restart

I have attached the logs to see if there is anything in the installer log that would indicate why it is not starting from a programmatic install.

Thanks
Mike
Attachments
AgentInstallLog.txt
(403.71 KiB) Downloaded 250 times
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: application start

Hello Mike,

The encountered behaviour is correct since the installation is done silently while the application is launched on the ExitDialog when the user hit the Finish control.

In order to launch your application when the installation is performed silently, you can use the predefined Launch File custom action as a custom action with sequence, executed after the files have been coppied on the target machine. You should condition the custom action so that it should be executed only when the installation is performed silently. For this, you can take advantage of the UILevel property.

You can use the attached image for your reference:
LaunchFile CA Props.png
LaunchFile CA Props.png (41.53 KiB) Viewed 2958 times
Please let me know if you need any help.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
MLiss@Cetrus.com
Posts: 366
Joined: Wed Dec 30, 2015 5:40 pm

Re: application start

Daniel,

Thanks... I will incorporate these changes into my next build

Mike

Return to “Building Installers”