Sep 24, 2007 02:27 AM
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.
Sep 24, 2007 05:50 PM
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.