We have been using Installscript installer created using InstallShield 2015 SP2 tool for installing our applications from past many years, but while working on our new release, I have been getting a new dialog box at the end of the UnInstallation process of this Installscript installer. It displays message as uninstall complete and gives two radio button option at the bottom of the dialog box mentioned below.
- Yes, I want to restart my computer now.
- No, I will restart my computer later.
However, there is no such code added in the Installscript project of the installer which asks for restart once uninstallation is completed. I did searched on google but no luck. Hope anyone knows how to stop this dialog box from appearing at the end of uninstallation of the installer.
Docs Microsoft: Logging of Reboot Requests. Sample from log file:
Logging: You should enable logging to work out what triggered the reboot prompt. Here is an answer on logging: Enable installation logs for MSI installer without any command line arguments. You can
1)enable the logging policy and then you can find a log for each uninstall that is run in the TEMP folder.2)You can also invoke the uninstall withmsiexec.exe /xand specify a logging location there in the command line. See the linked answer for details.Uninstall Logging: See section 3 here for uninstall logging commands: Uninstalling an MSI file from the command line without using msiexec
Reboot Prompt Cause: Most likely the cause of the reboot prompt is a file that is in use and hence could not be removed. MSI has auto-magic features to then trigger a reboot to replace or remove the file. A restart makes that possible. There are also many other potential causes for the reboot prompt. You could have stuff registered that needs a reboot to properly unregister. Along the same lines as files in use, but it could involve all kinds of registration system-wide.
Services: A special case of files in use are services. Do you have any in your setup? Very often the reboot prompt is caused by the service not shutting down properly. This can be because of timing issues (it is too slow to stop) or there are no proper commands in the setup for uninstallation scenarios to stop the service as it should on uninstall.
REINSTALLMODE: Note that setting the REINSTALLMODE property to
"amus"- force overwrite (files and registry) - has shown itself to lead to many more reboot prompts for many MSI packages on installation (can affect uninstall too, though I don't see it set so often for uninstall).Restart Manager: There are new features in Windows to deal with the problems of rebooting.
The overall idea is to prefer to shut down applications auto-magically with a restart parameter registered for the application to restart itself after the deployment operation - rather than triggering system reboots. There is information about this feature here: