Installer not rebooting after installing pre-requisite - Advanced Installer Community
kempus
Posts: 1
Joined: Tue Nov 19, 2019 4:17 pm

Installer not rebooting after installing pre-requisite

Hi,

Our install installs .NET 4.7.2 with the /q and /norestart command line switches. This installer requires a reboot. We assumed that the return code from the .NET installer would trigger advanced installer to reboot at the end of the installation, but it doesn't.

We don't have the option to reboot after installing the pre-requisite set.

We have a Finish action on the ExitDialog to Launch our application.

We don't have any logs as a lot of systems already have .NET 4.7.2 installed (including our test systems)

This is causing issues for some of our customers as the installer runs and then our installed app won't start correctly as .NET 4.7.2 is not installed correctly until after a reboot.

Thanks
Tim
Catalin
Posts: 7852
Joined: Wed Jun 13, 2018 7:49 am

Re: Installer not rebooting after installing pre-requisite

Hello Tim and welcome to our forums,

I think that this is happening due to the fact that you use the "/norestart" and the "/q" command line switches.

/norestart - If the operation requires a reboot to complete, Setup should neither prompt nor cause a reboot.

/q - Quiet mode, no user input required or output shown.

If you want the setup to prompt a restart, you can use the following command line switches:

Code: Select all

setup.exe /passive /promptrestart
where:

/passive - Shows progress bar advancing but requires no user interaction.

/promptrestart - If the operation requires a reboot to complete, Setup should prompt, and trigger it if the user agrees.

This way, the user will be prompted to restart. After the restart takes place, the installation will continue normally, letting the user install the main product.

Hope this helps.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”