Terminate process before InstallValidate - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

TVNST
Posts: 7
Joined: Tue Mar 27, 2012 11:57 am

Terminate process before InstallValidate

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?
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Terminate process before InstallValidate

Hello,

InstallValidate marks the beginning of the Preparing action group. For more information, you see our Standard Actions article.

You can try to set your custom custom action right before it as my colleague Cosmin mentioned and see the result.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
TVNST
Posts: 7
Joined: Tue Mar 27, 2012 11:57 am

Re: Terminate process before InstallValidate

Hmm, that's unfortunate since the custom action that closes the application definitely comes before the InstallValidate and I still get the request-dialog to reboot.
Maybe the message isn't generated by the InstallValidate step?! I use just an MSI package, no executable is generated.

Anyone got this to work somehow? Seems like a common problem to me to close an application before it's uninstalled.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Terminate process before InstallValidate

Hello,

Can you please verify if the custom action closes the application before InstallValidate?
If it doesn't, can you please send us the .AIP to support at advancedinstaller dot com so we can investigate?

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”