cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Old_Skool
Level 3

Suppress "reboot" request in pure InstallScript projects

Hello,

Can anyone point me to a way to suppress "reboot" dialog request during installs and/or updates in a pure InstallScript project?

I've tried forcing the "BATCH_INSTALL" property to zero during the "OnEnd" event handler but that doesn't seem to do the trick.

Also, is there a way to find out which event handler is displaying the "reboot required" dialog, if so is there a way to override the event handler?

Any advice would be GREATLY appreciated.

Best Regards,
Labels (1)
0 Kudos
(1) Reply
Earthshine
Level 4

You cannot set BATCH_INSTALL

in the UIAfter events for setup.rul make sure to do the following:


[PHP]

if ( BATCH_INSTALL ) then
SdFinishReboot ( szTitle , szMsg1 , SYS_BOOTMACHINE , szMsg2 , 0 );
else
SdFinish ( szTitle , szMsg1 , szMsg2 , szOpt1 , szOpt2 , bvOpt1 , bvOpt2 );
endif;
RecordInLogFile(SD_NAME, "OnFirstUIAfter()");

[/PHP]

do that at the bottom of each UIAfter event and you should be good.

this will do what you want, i am pretty sure. i just set the finish dialog to not set the option to reboot now. notice the parameters for SdFinishReboot and you will be all set.
0 Kudos