View Full Version : Debug This system must be restarted... message
NewsArchive
08-17-2016, 08:16 AM
Hi Friedrich,
I'm getting the "This system must be restarted to complete the installation"
message after making some changes to the script, but can't figure out why
it's wanting to reboot after install. Is there a mechanism to debug what's
causing it to require a reboot, as the changes I require are not related to
creating/overriding existing files?
Thanks very much
Geoff
NewsArchive
08-17-2016, 08:16 AM
Maybe you could interrogate $SB_RESTARTFLAG$ in various parts of your
script to see when it gets set.
Jeff Slarve
www.jssoftware.com
Twitter free since Jan 11, 2016
I'll search help files & Google for you.
Grammar troll's, are the worse.
NewsArchive
08-17-2016, 08:17 AM
Hi Geoff,
> I'm getting the "This system must be restarted to complete the
> installation" message after making some changes to the script, but can't
> figure out why it's wanting to reboot after install. Is there a mechanism
> to debug what's causing it to require a reboot, as the changes I require
> are not related to creating/overriding existing files?
Just check the "PendingFileRenameOperations" registry value and there you'll
find the name(s) of the file(s). IMO, it's an "in-use" file issue.
http://www.lindersoft.com/forums/showthread.php?47141-How-to-detect-that-a-re-boot-is-required&p=86391#post86391
Does this help?
Friedrich
NewsArchive
08-18-2016, 01:45 PM
Thanks Jeff.
> Maybe you could interrogate $SB_RESTARTFLAG$ in various parts of your
I found this did the trick. The good ol' stops until it changes. Reminds me
of the old days before debugview was invented.
Geoff
NewsArchive
08-18-2016, 01:46 PM
:)
Jeff Slarve
www.jssoftware.com
Twitter free since Jan 11, 2016
I'll search help files & Google for you.
Grammar troll's, are the worse.
NewsArchive
08-18-2016, 01:47 PM
btw, SB does have a simple way to outputdebugstring under "Debug
Functions". I think your project needs to be compiled in debug mode
for that, though.
Would be nice if SB had that under the regular functions too.
Jeff Slarve
www.jssoftware.com
Twitter free since Jan 11, 2016
I'll search help files & Google for you.
Grammar troll's, are the worse.
NewsArchive
08-18-2016, 01:47 PM
Hi Geoff,
> I found this did the trick. The good ol' stops until it changes. Reminds
> me of the old days before debugview was invented.
The days of mutual suffering<g>
Best regards,
--
Arnor Baldvinsson
Icetips Alta LLC
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.