trashy
Posts: 14
Joined: Wed Jun 01, 2011 10:45 am

How to exit installation process if app running

When upgrading an app, is it possible to force the installation process to abort if the old app is detected as running?
Eusebiu
Posts: 4959
Joined: Wed Nov 14, 2012 2:04 pm

Re: How to exit installation process if app running

Hi,

In order to achieve this, you can use the first 4 steps from the Custom Launch Condition Help thread, but use a "Display error message" custom action instead of the "Display message box" custom action.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
trashy
Posts: 14
Joined: Wed Jun 01, 2011 10:45 am

Re: How to exit installation process if app running

Looks good - thanks.
Eusebiu
Posts: 4959
Joined: Wed Nov 14, 2012 2:04 pm

Re: How to exit installation process if app running

You're welcome.

Just let us know if you have any other question.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
JohnTurnbull
Posts: 14
Joined: Tue Jan 21, 2014 10:56 pm

Re: How to exit installation process if app running

I use this method for my application (module name Spartan.exe). When Windows 10 is released, it will ship with a new browser which will also have the module name Spartan.exe. I would be most grateful if anyone could point me in the right direction to distinguish whether the detected module is my Spartan.exe or Microsoft's Spartan.exe

John (why does it all happen to me) Turnbull
Eusebiu
Posts: 4959
Joined: Wed Nov 14, 2012 2:04 pm

Re: How to exit installation process if app running

Hi John,

I'm afraid that our predefined custom action cannot make any difference between two processes with the same name. In order to achieve this, you can create your own custom action which will detect and close your application based on some specific attributes of it.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Eusebiu
Posts: 4959
Joined: Wed Nov 14, 2012 2:04 pm

Re: How to exit installation process if app running

You're welcome John.

Just let us know anytime you need help.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”