sbates
Posts: 8
Joined: Thu Mar 13, 2014 6:29 pm

Upgrader displays reboot prompt twice

Hi,

When upgrading our product via the installer, the user receives two prompts stating "The setup must update files or services that cannot be updated while the system is running. If you choose to continue, a reboot will be required to complete the setup". This is displayed during the "Validating install" stage (twice, in quick succession). Please note that we have set the Reboot Behavior to "Suppress all Reboots and Reboot prompts" in Advanced Installer and we're still getting this problem.

I enabled verbose logging for the upgrade, and the only item of interest is -

Code: Select all

MSI (s) (A0:9C) [09:24:49:957]: RESTART MANAGER: Did detect that a critical application holds file[s] in use, so a reboot will be necessary.
Unfortunately, there are no messages regarding the specific files that are in use.

Any help is much appreciated!
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Upgrader displays reboot prompt twice

Hello and welcome to Advanced Installer forums,

Please note that this dialog ("FilesInUse" on XP and "MsiRMFilesInUse" on Vista) is shown automatically by Windows Installer during the InstallValidate standard action when the installer checks if any file (which will be affected by the installation process) is in use and if so, it displays that dialog.

This dialog can be avoided by running a Detect and Stop custom actions before the install/uninstall process which stops the processes which use the files.
Please take a look on the Detect or stop a process How-to article which may be useful to you.

Also, you can take a look on our How is Files in Use determined - can it be overridden? forum thread which debates a similar subject.

Please let us know if that helped, otherwise give us more details about your specific scenario.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
sbates
Posts: 8
Joined: Thu Mar 13, 2014 6:29 pm

Re: Upgrader displays reboot prompt twice

Thanks for your assistance. I stopped the service at the very beginning of the installation phase and now there are no reboot prompts.
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Upgrader displays reboot prompt twice

You're welcome,

I'm glad you got this working. If there is anything else I can help with, please let me know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”