PDA

View Full Version : Uninstall Reboot Message



MarkDynna
07-27-2021, 02:04 PM
When we run the uninstall to remove a previous version, sometimes a client will see a "reboot required" message.
5067
When this happens they are basically caught in a "no win" scenario: if they proceed, then the uninstallation will be placed in the "pending file rename" operations which (after the next reboot) will actually remove some of the current version files. If they do choose to reboot, then the installation (which is designed only to be run when previous versions are present) complains because no previous version was found.

I have implementing a "reboot and resume" feature for some of our other products. Is there a way that I can catch this condition so that I can handle it with a "reboot and resume?"

linder
07-30-2021, 05:56 AM
Mark,

good question! I'll have to give it some thoughts.

Friedrich

MarkDynna
08-11-2021, 11:45 AM
Any additional thoughts on this?

linder
08-12-2021, 12:13 AM
Mark,

if the system needs a reboot after an uninstall means that one or more files were locked (in-use) during the uninstallation process. The only way to handle your specific scenario is to check in your (custom) uninstall if all files can be removed. You could handle this in a custom uninstall script by using "Check In-Use Folder Tree..." and "Check In-Use File...". And it's always a good idea to see if your main application is not active - you can check this with "Detect Active Application...".

To sum it up: only continue with the uninstall if the main app is not active (not running) and the files can be removed.

Does this help?

Friedrich

MarkDynna
08-13-2021, 01:56 PM
Yes, that confirms what I was thinking. We do check all of the EXE's (programs) to see if they are in use, but it sounds like we need to be checking all the files that are going to be removed in the uninstallation process.