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

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

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

Postby jsmith » Mon Dec 15, 2008 3:35 pm

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:

Postby CandiceJones » Mon Dec 15, 2008 4:39 pm

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
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 88 guests