DetectProcess during uninstall - 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!

ognaT
Posts: 6
Joined: Sun Jan 08, 2012 7:34 am

DetectProcess during uninstall

Hello,

I'm trying to define a custom action to detect whether a process is running during uninstall and if true stop the uninstall process or display a message.

I came across this message http://www.advancedinstaller.com/forums ... +uninstall and tried following the steps mentioned. Unfortunately, I wasn't successful. The uninstall process runs to completion even though the process is running.

I would appreciate any input on what might be wrong.

Thank you.
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: DetectProcess during uninstall

Hi,

The steps I enumerated in the mentioned thread should allow you to stop the package installation if the process is running. Can you please send us a verbose log of the uninstall process, along with the aip file, to support at advancedinstaller dot com so we can analyze them?

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
ognaT
Posts: 6
Joined: Sun Jan 08, 2012 7:34 am

Re: DetectProcess during uninstall

Thank you for the quick reply.

I managed to make it work. However, sometimes the uninstall displays the dialog box saying "The following applications should be closed before continuing the install:" before is gets to my custom action.

My question, can I move my custom action before this dialog is displayed?

Regards,
ognat
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: DetectProcess during uninstall

Hi Ognat,

The running process is detected by the "InstallExecuteSequence" → "InstallValidate" standard action. Therefore, you can try to schedule your custom action before "InstallValidate".

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
ognaT
Posts: 6
Joined: Sun Jan 08, 2012 7:34 am

Re: DetectProcess during uninstall

Thank you Mihai. I'll give that a try.

Return to “Common Problems”