bchetana
Posts: 95
Joined: Sat Dec 01, 2012 11:36 am

Detect process during uninstalling

Hi

I wnat to detect the process and popup a message box to the user to stop the process before uninstalling. I tryed the same using the Detect Process coustom action

I aslo added a error message box cutom action conditioned with AI_PROCESS_STATE = "Running" for displaying the message. Now when i run the setup it is not working.

Do I need to call this Detect Process / Error mesg custom action in any of the published events? Am i missing any thing
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Detect process during uninstalling

Hello,

In order to achieve what you want you should run a "Detect process" custom action before the related error message custom action. For example you can add on uninstall a "Detect process" custom action with sequence, before "Install Execution Stage -> Searches" action group, like this:
  • Action Data: MyProc.exe
Then, you can add on uninstall a warning custom action with sequence scheduled before "Install Execution Stage -> Remove Resources" action group.

Also, you can take a look on our "Detect or stop a process" article.

Let us know if this helped.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”