Zsolt Kollarits
Posts: 409
Joined: Fri May 29, 2015 10:36 am

PC is rebooting without any confirmation after an update is installed by Auto Updater

Dear Advanced Installer Support Team,

Many of our customers reported an issue of your Auto Updater feature: if a new update pack is installed in a silent way (by using the "qn" argument), a reboot might happen at the end of the installation without any confirmation.

I found other customers of yours already complained about it - for example: http://www.advancedinstaller.com/forums ... =5&t=33835 -, but the answers I see there
"The recommended approach to avoid this situation will be to close your application (or the all the processes which could keep in use your product files) during installation."
are not acceptable for our customers.

Since the update installation happens in the background, they´d like to continue working on their PCs, but they might lose their progress due to the automatic reboot. Until this problem is not solved, we can´t recommend them to use Auto Updater feature.

The desired solution would be showing a small confirmation dialog in case the PC is going to reboot. Could you please advise us something how to modify the update config file, or the update executable in order to force a confirmation before reboot?

Thanks in advance! Could you please handle this ticket with high importance due to the possible data loss might be caused on the customer side?

Best regards,
Zsolt
Zsolt Kollarits
Posts: 409
Joined: Fri May 29, 2015 10:36 am

Re: PC is rebooting without any confirmation after an update is installed by Auto Updater

Dear Advanced Installer Support Team,

Do you have any news on this issue? More and more customers of ours are complaining because of the unexpected reboot, thus it´s getting more and more urgent for us to fix it - reboot may cause data loss on our customer´s side.

Best regards,
Zsolt
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: PC is rebooting without any confirmation after an update is installed by Auto Updater

Hi Zsolt,

I apologize for the delayed reply.

Wouldn't it help if you set the "Reboot behavior" combobox to "Prompt for Reboot when required" or to "Suppress all Reboots and Reboot prompts" options in the "Install Parameters" page of your project?

In order to check if a reboot is required you can try to check if the "MsiSystemRebootPending" is set to "1" or verify the content of the "REBOOT" property.

You can also try to use the solutions described in the "How to Check if a Server Needs a Reboot" article.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Zsolt Kollarits
Posts: 409
Joined: Fri May 29, 2015 10:36 am

Re: PC is rebooting without any confirmation after an update is installed by Auto Updater

Dear Eusebiu,

Let me summarize what I think the problem is, please correct me if I´m wrong.

If an executable is installed via Auto Updater, there is a let say bridge between our EXE file and Windows Installer. Double clicking on the EXE would directly start the installation by using Windows Installer, but in case of installing the same EXE by you Auto Updater is a bit different:

our EXE file -> Auto Updater -> Windows Installer

Auto Updater tells Windows Installer how the EXE should be installed, e.g. it can be a silent installation, this case /qn flag is forwarded to Windows Installer.

In your Updater project - which creates our update config file - there are 2 places where we can gain some control over Windows Installer:
1. NoGUICommandLineSwitch =
2. CommandLine =

The default value of is NoGUICommandLineSwitch is "/exenoui /qn" in case of silent updates. This is what we would like to customize, because our customers are complaining about the lack of information coming back from the Auto Updater dialog. Once they start an installation by clicking on the Install button of your Auto Updater dialog, Auto Updater takes over the control and installs the update without any notification.
They would like to see
- a notification if the installation has finished instead of just getting the Auto Updater dialog closed
- a dialog when the system requires a reboot instead of just triggering a reboot (we don´t want to suppress the reboot in our main .aip project, we tested it: some of our old files are stuck until the next reboot, so our installation is not complete)

We understand that /qn means a complete silent installation, that´s why I tried to use other conventional Windows Installer flags, like /qn+, which should at least show a notification dialog when the installation is done. Changing /qn to /qn+ in the NoGUICommandLineSwitch line of the update config file makes no difference. We would need a flag which is working fine and installs the EXE silently but let important messages (e.g. installation is done, reboot is needed) through from Windows Installer to the customer. I tried out the following combinations in our update config file, but no matter what I did, Auto Updater always installs the given EXE in a totally silent way, no info is coming back to the customer.

Combination 1:
NoGUICommandLineSwitch = /exenoui /qn+
Combination 2:
NoGUICommandLineSwitch = /exenoui /qb
Combination 3:
NoGUICommandLineSwitch = /exenoui /qb+
Combination 4:
NoGUICommandLineSwitch = /qn+
Combination 5:
NoGUICommandLineSwitch = /qb
Combination 6:
NoGUICommandLineSwitch = /qb+
Combination 7:
NoGUICommandLineSwitch = aiemptyfield
CommandLine = /qn+
Combination 8:
NoGUICommandLineSwitch = aiemptyfield
CommandLine = /qb
Combination 9:
NoGUICommandLineSwitch = aiemptyfield
CommandLine = /qb+

Why these flags are not working in your Updates Configuration project? We´d need to show important Windows Installer messages (installation is done, reboot is needed) to our customers, please advise us a good combination what we should set in your Updates Configuration project.

Anything we do in our main .aip project - for example operating by Custom actions - is somehow useless, because Auto Updater takes control of our EXE file. If /qn flan is used in the Updates Configuration project (NoGUICommandLineSwitch), no matter what dialog we would like to show for our customers from the main .aip project, Auto Updater won´t let it displayed. How could we use MsiSystemRebootPending?

My feeling is that your Auto Updater should be improved to be able to accept flags like /qn+. By passing /qn+ your Auto Updater dialog should either show a small notification box at the end of the installation or remain on screen with a message something like "Installation is finished". Also if /qn+ is used in the Updates Configuration project and Windows Installer comes back to Auto Updater with a reboot request, it should be shown on the screen for the users.

Sorry for the long email. Please let me know if something is still unclear.

Best regards,
Zsolt
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: PC is rebooting without any confirmation after an update is installed by Auto Updater

Hi Zsolt,

When updates are installed without elevation, the updater service that runs under the SYSTEM account handles them, however the SYSTEM account does not display any user interface. This why there is no difference between the different command lines that you specified in the updates configuration file.

For example, if a message box is spawned by an application that runs under the SYSTEM account, that application is blocked in the background waiting for that message box to be closed. That is why, as mentioned in the "REBOOT" article, "if there is no user interface, the system automatically restarts at the end of the installation" when a restart of the machine is required.

A solution that I can think of, it to suppress all the reboots for your package, launch the main application through the updater at the end of the upgrade and check through it if a restart is pending or required, then inform the user to do this manually. I'm afraid that the "MsiSystemRebootPending" property cannot help you very much.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Zsolt Kollarits
Posts: 409
Joined: Fri May 29, 2015 10:36 am

Re: PC is rebooting without any confirmation after an update is installed by Auto Updater

Dear Advanced Installer,

We completely understand that our setup EXE - which is getting installed by your Auto Updater feature - are not able put anything on screen due to the fact that you run the installation under SYSTEM account. This is clear. However we are wondering that you can put a dialog on screen, for example you are showing your progress dialog while the updater service installs our EXE.

Furthermore you have more info about the status of the installation, for instance you are aware of when the updater service is done with the installation, thus you remove your progress dialog. In the same way how you remove the progress dialog, you could show a small message/dialog about the result of the installation.

Currently you show an error on your Auto Updater dialog in case an error occured, why you can´t show something in case of successful installations? MAny of our customers are complaining because they don´t get a notification when the installation is ready. In addition since you know when the installation is done, you could easily check the registry and the Windows Installer return codes to recognize if a reboot is needed and you can put a small YES-NO dialog to the screen instead asking the user if he wants a reboot or not. This is something we can´t do.

Please correct me if I´m wrong, but you have all the tools in your hand to put some more dialogs on the screen after your progress dialog is gone. The missing success notification and the unexpected reboots are really problems for many of our customers.

Could you please do a little bit of more research about what you could enhance?

Best regards,
Zsolt
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: PC is rebooting without any confirmation after an update is installed by Auto Updater

Hi Zsolt,

Yes, we can check if a machine reboot is required and display a message box, but I'm not sure if we will be able to suppress that reboot or allow it based on the user's choose.

I added this on our TODO list, so we will investigate the possibilities and display a message box in case a reboot is required and also a confirmation after a successful installation. Thank you for your suggestions.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Zsolt Kollarits
Posts: 409
Joined: Fri May 29, 2015 10:36 am

Re: PC is rebooting without any confirmation after an update is installed by Auto Updater

Hi Eusebiu,

Thanks for investigating this for us. May I ask you to increase the severity of this item on your TODO list? Or customers are heavily complaining because of the reboot, also our discussion in this forum ticket took quite a while, so it´d be really appreciated to get a reboot confirmation dialog or success dialog at the end of the installation done by Auto Updater.

Best regards,
Zsolt
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: PC is rebooting without any confirmation after an update is installed by Auto Updater

You're welcome Zsolt.

I increased the priority of the issue, but I'm afraid that I cannot give you an ETA when this will be available. However we will try to implement it soon and we will update this thread when it will be done.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: PC is rebooting without any confirmation after an update is installed by Auto Updater

Hello Zsolt,

Our development team has further investigated this scenario, but unfortunately there is really no programmatic way to stop or prevent a system reboot operation triggered by the Windows Installer service. During a silent installation Windows Installer reboots the system without any notification and there is no event to listen to so we can either prevent the forcefully reboot or delay it until the user is ready to go with a system reboot.

I'm afraid we cannot take the control over the Windows Installer service (msiexec).

To have a better view of what happens here is a list of actions:

1. our Updater download and launch the updates setup package

2. the setup package is launched silently; the installation process is completely handled by the Windows Installer service; during a silent installation Windows Installer triggers the system reboot without any UI warning

The recommended way to avoid this undesired behavior will be to launch the Updater process from your application code. For instance, you can launch the Updater when your application is initialized. Here is a possible implementation:

1. configure your updates configuration project to always restart your application after a successfull updates installation

2. when your application is launched call from your application code the Updater to check for updates (i.e. using /justcheck command)

3. if updates are found inform the user to save its work and afterwards close your application and launch the Updater to install the updates and relaunch your current app (i.e. using "-restartapp" switch) in case of an update installation error

4. in case of an updates installation error the current installed app will be launched, otherwise the Updater will launch the new installed version of your app

Also, you can try to design another similar Updater call scenario from your application code by reviewing the rest of command line options of our Updater tool.

If there is anything else we could assist you with just let us know.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Zsolt Kollarits
Posts: 409
Joined: Fri May 29, 2015 10:36 am

Re: PC is rebooting without any confirmation after an update is installed by Auto Updater

Hi Daniel,

Thanks for your detailed description, let us consider all the options we could do here. I´ll come back to you if we need more info.

Best regards,
Zsolt
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: PC is rebooting without any confirmation after an update is installed by Auto Updater

You're welcome Zsolt.

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

Return to “Common Problems”