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!

MLiss@Cetrus.com
Posts: 366
Joined: Wed Dec 30, 2015 5:40 pm

Installer forcing reboot when not necessary

Hi,

I have an installer that has had this setting for literally months and when ran the installer, NO REBOOT occurred.
RebootSettings.PNG
RebootSettings.PNG (11.41 KiB) Viewed 8735 times
After the last upgrade to AdvancedInstaller 13.4, my installer is rebooting the computer every time it runs.

I initially thought everybody in our office might have had a windows installer upgrade or something..
then I ran the installer twice on the same machine and the machine rebooted each time...

I am beginning to think something changed in your code. I have attached the installer log.

HERE IS THE LINE IN THE INSTALLER LOG :

MSI (s) (E4:A4) [12:37:42:996]: Windows Installer requires a system restart. Product Name: Agent. Product Version: 3.2.88.0. Product Language: 1033. Manufacturer: Cetrus. Type of System Restart: 1. Reason for Restart: 1.

Why?


ps:

I have changed my installer to use these settings until you can investigate:
RebootSettings_Surpress.PNG
RebootSettings_Surpress.PNG (11.22 KiB) Viewed 8734 times
Attachments
2016.11.22.12.37.07.952_DBorde_AgentInstallLog.txt
(411.28 KiB) Downloaded 468 times
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Installer forcing reboot when not necessary

Hello Mike,

This happens because during the uninstall of the oldproduct there are some files (to be uninstalled) which are held in use by another processes. You can see the following in your log file:

Code: Select all

MSI (s) (E4:F8) [12:37:39:442]: RESTART MANAGER: Will attempt to shut down and restart applications in no UI modes.
MSI (c) (D4:94) [12:37:39:442]: RESTART MANAGER: Failed to add process ID 928 resource; Windows Installer will use the built-in FilesInUse functionality. Error: 22
So, as a workaround, you can use in the setup project of your old product version our "Terminate Process" predefined custom action on uninstall. You should stop on uninstall all the processes which could keep in use the installed files.

Also, to check which files are kept in use you can run the setup with full UI and the "FilesInUse" dialog should be displayed by WIndows Installer.

If you have any questions let us know.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
MLiss@Cetrus.com
Posts: 366
Joined: Wed Dec 30, 2015 5:40 pm

Re: Installer forcing reboot when not necessary

Daniel,

I have... any other suggestions?
StopProcess.PNG
StopProcess.PNG (44.87 KiB) Viewed 8724 times

Mike
MLiss@Cetrus.com
Posts: 366
Joined: Wed Dec 30, 2015 5:40 pm

Re: Installer forcing reboot when not necessary

As to the use the full UI ... I cannot... this install HAS to be silent.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Installer forcing reboot when not necessary

Hello Mike,

Please move your detect and stop process custom actions in the "Install Execution Stage" (before or after the "Searches" group). This is the correct execution stage when they should be triggered.

Also, please keep in mind that during a silent installation only the "install Execution Stage" is executed. All the other actions are ignored.

Let us kow if this helped.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
MLiss@Cetrus.com
Posts: 366
Joined: Wed Dec 30, 2015 5:40 pm

Re: Installer forcing reboot when not necessary

Daniel,

Thank you... I will try this.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Installer forcing reboot when not necessary

You're welcome.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”