PDA

View Full Version : getting reboot dialog and not calling for one



NewsArchive
03-11-2014, 11:49 AM
SB 8.1 4227

I am getting a reboot computer dialog after my SB installer runs and nowhere
in my script am I calling the reboot dialog. I am, however, stopping some
services and this is the only thing I can think of that would cause this. In
silent mode, the computer automatically reboots.

I do not want a reboot, regardless of stopping services or not. How do I
suppress the reboot dialog?

regards,

Chuck

NewsArchive
03-11-2014, 11:49 AM
Chuck,

> I am getting a reboot computer dialog after my SB installer runs and
> nowhere in my script am I calling the reboot dialog. I am, however,
> stopping some services and this is the only thing I can think of that
> would cause this. In silent mode, the computer automatically reboots.

If Windows needs a reboot then you have replaced "in-use" (locked) files.
Perhaps your services need some more time to shut-down? You can check this
in a simple LOOP with a timer.

http://www.lindersoft.com/forums/showthread.php?p=62131#post62131
http://www.lindersoft.com/forums/showthread.php?p=21583#post21583
http://www.lindersoft.com/forums/showthread.php?p=23982#post23982

> I do not want a reboot, regardless of stopping services or not. How do I
> suppress the reboot dialog?

You can use the "Set Installer Flag..." script function in combination with
$SB_RESTARTFLAG$ to disable a pending reboot.

Set Installer Flag $SB_RESTARTFLAG$ to "0"

But please note that this will result in an incomplete install. In your
scenario (you replaced locked file) Windows needs a reboot to complete the
install.

IMO, it's your service that needs a few more seconds to terminate. If I
were you, I would use the "Check Service..." function in a LOOP (with some
kind of timer) to make sure the dependency files are not locked.

Hope this helps.

Friedrich

NewsArchive
03-12-2014, 06:16 AM
Friedrich,

Thanks - I was killing my services in the installer rather than letting them
gracefully stop themselves.

regards,

Chuck