And our application is a small one with no keys being created in registry.
Now, i want to abort 'Uninstallation' if the application is running.
Any clues are welcome..
Posted 27 June 2001 - 03:09
And our application is a small one with no keys being created in registry.
Now, i want to abort 'Uninstallation' if the application is running.
Any clues are welcome..
Posted 27 June 2001 - 03:22
Please help.
If anyone has simpler solution, pl let me know.
Posted 27 June 2001 - 03:32
help awaited!
Posted 16 July 2001 - 23:23
If you can, you can author a Custom Action that, if it finds the App using the FindWindow function, create a property for it (ex. call MsiSetProperty (hMSI,"AppRunning","1") to create a property called "AppRunning", and set its value to "1".)
Place this customaction in the UI sequence (using a condition "Installed" or better "ProductState=2 OR ProductState=5").
Later in your UI sequence, author a TYPE 19 Custom Action, giving it's Target Field "Must shutdown app before you uninstall...", and call this customaction later in the UI Sequence given the condition "AppRunning=1". This will abort the install / uninstall with the message specified.