cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Pilgrim

How to make sure a process is stopped before uninstall?

My product invokes another process(called B) when it runs. When I uninstall my product, B is still running, the uninstall can not proceed. Does anybody know how to make sure B is stopped before the uninstall.
Labels (1)
0 Kudos
1 Reply
Highlighted
Pilgrim

Re: How to make sure a process is stopped before uninstall?

It depends what you want the installer to do if it detects the process (and assuming the files-in-use dialog boxes don't detect it automatically). Simplest might be an InstallScript custom action that calls Is(FILE_LOCKED, ...); the MSI help topic "InstallValidate Action" might be a good starting point for a more sophisticated approach.
0 Kudos