AutoUpdater Stays Open on Uninstall - 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!

hmxchooch
Posts: 24
Joined: Tue Apr 07, 2009 6:55 pm

AutoUpdater Stays Open on Uninstall

Hi,

We have a weird little quirk that we want to solve. The AutoUpdater stays open when the program is uninstalled by normal methods (not autoupdating). I figure this must have been solved by someone other than us, but we can't come up with a great solution.

Steps to reproduce:
1.) Install application w/AutoUpdater
2.) Open up the application (which does an updater.exe /silent on startup). We then get a popup that tells us its time to upgrade.
3.) Close the application itself, leaving updater.exe open in the foreground.
4.) Uninstall the application.

Results:
Updater.exe appears to be removed from the folder in Program Files, even though it is still running (???).

I would have expected any file that was being uninstalled from Program Files to trigger a FilesInUse dialog, but I guess this executable is an exception? I understand that it has to stay open during uninstall when upgrading, but during a manual uninstall it seems like it should be closed.

Has this been solved gracefully before?

Thanks for any help,
- Chris
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: AutoUpdater Stays Open on Uninstall

Hi Chris,

The Updater doesn't close when the application is uninstalled because it's running from a temporary location. This allows it to upgrade its own files. We didn't implement a mechanism which stops the Updater when a manual uninstall is performed because most users don't start the Updater and then uninstall the application. However, if you want to stop the updater you can try using a close application or stop process custom action.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
hmxchooch
Posts: 24
Joined: Tue Apr 07, 2009 6:55 pm

Re: AutoUpdater Stays Open on Uninstall

Terminating the application on uninstall doesn't seem to work, because when the autoupdater runs normally it runs an uninstall then a reinstall, which causes updater.exe to be shut down when it normally wouldn't be...

Is there a place I can run the terminate custom action that will run on a manual uninstall but NOT on an auto-update uninstall/reinstall?
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: AutoUpdater Stays Open on Uninstall

Hi,

For the custom action which stops the Updater you can try using this condition:

Code: Select all

(REMOVE = "ALL") AND (NOT UPGRADINGPRODUCTCODE)
This condition is evaluated as true only during an uninstall which is not performed by an upgrade.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
hmxchooch
Posts: 24
Joined: Tue Apr 07, 2009 6:55 pm

Re: AutoUpdater Stays Open on Uninstall

Thank you Cosmin, that worked perfectly!

Return to “Common Problems”