This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Suppress "reboot" request in pure InstallScript projects
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Nov 02, 2011
09:05 PM
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,
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,
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Nov 07, 2011
10:15 AM
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.
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.