I always get a dialog that the system has to be rebooted if I want to uninstall my program and the executable is still running.
To avoid this problem I've added a custom action "TerminateProcess" according to the HowTo about stopping processes.
Well, it does work indeed and the executable is closed if I try to uninstall the program, however this happens to late.
Directly after the app is closed, I still get the dialog that the system has to be rebooted to complete the deinstallation.
I've searched the forum a bit and found the post http://www.advancedinstaller.com/forums ... 15&start=0 that suggests to add the custom action before the "InstallExecuteSequence" -> "InstallValidate" stage.
However, something like "InstallValidate" doesn't exist in my project (maybe because it's a newer version?!).
I've added the custom action both at the start of the Wizards Dialogs Stage and at the start of the Install Execution Stage with the setting "Execute only once if present in both sequence tables".
But the InstallValidate stage seems to happen before the first Custom-Action is executed.
The custom action is set to "Synchronous execution, check return code", so it should stick to the chain of installation operations.
Any idea how I can solve this problem?
FOLLOW US
Get the latest news in Application Packaging