InstallAware equivalent of msiexec's \"/forcerestart\"

Got a problem you cannot solve? Try here.
Post Reply
jsmith
Posts: 178
Joined: Tue Nov 04, 2008 10:47 am

InstallAware equivalent of msiexec's \"/forcerestart\"

Post by jsmith »

If I silently install a normal MSI file, I can force the system to reboot after the installation completes by specifying "/forcerestart" as a command-line parameter to msiexect, E.g.:

Code: Select all

msiexec /i MyInstaller.msi /quiet /forcerestart
I can't find any documentation for the same behavior when running InstallAware-built installers silently. I have tried

Code: Select all

MyInstaller.exe /s REBOOTNOW=OK
and

Code: Select all

MyInstaller.exe /s REBOOTCOMPUTER=TRUE
But neither seem to work. Is this functionality available out of the box, or must I alter my MSICode with something like this to make it work and tell users to call the installer with REBOOTCOMPUTER=TRUE in silent mode:

Code: Select all

if Variable SILENT Equals TRUE
    if Varaiable REBOOTCOMPUTER Equals TRUE
        Reboot Computer
    end
end
CandiceJones
Posts: 904
Joined: Thu Dec 22, 2005 7:03 pm
Contact:

Post by CandiceJones »

I would just add a custom command line flag to my installer, and if that flag is set, force a reboot. For instance:

Code: Select all

setup.exe /alwaysreboot
And then in MSIcode:

Code: Select all

if variable CMDLINE contains /alwaysreboot (ignore case) then
  Reboot Computer
end
Something like that...
Candice Jones
Install[b]Aware[/b]
[i]Home of The Next Generation MSI Installer[/i]
Get your free copy today - http://www.installaware.com/
Post Reply