Changing /norestart to /forcerestart during installation - Advanced Installer Community

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!

SubZero
Posts: 63
Joined: Mon Mar 14, 2011 10:29 am

Changing /norestart to /forcerestart during installation

Hi,
lets say someone starts our installation with the parameter /norestart -> installation.exe /norestart
Is it somehow possible to override that parameter with /forcerestart in advanced installer, so that always /forcerestart is called and NEVER /norestart?
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Changing /norestart to /forcerestart during installation

Hello,

In order to achieve this you can set the REBOOT property to Force. Go to "Custom Actions" page and add a "Set installer property" custom action with sequence, scheduled after "Wizard Dialogs Stage -> Searches" and after "Install Execution Stage -> Searches" action groups, like this:
  • Property: REBOOT
    Formatted: Force
Let us know if this helped.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
SubZero
Posts: 63
Joined: Mon Mar 14, 2011 10:29 am

Re: Changing /norestart to /forcerestart during installation

works fine, thanks!
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Changing /norestart to /forcerestart during installation

You're welcome. Glad to help.

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

Return to “Common Problems”