PDA

View Full Version : Reboot on XP in build 1666



NewsArchive
10-31-2006, 05:27 AM
Hi Friedrich,

I was installing software on a new Dell Inspiron 6400 for a client
running XP Pro SP2. At the end of the install (build with SB5.6.1666)
the install asks (appropriately) if I want to reboot. When I click
"Yes" nothing happened. The install just terminated without reboot.

At the end of the script there is something like:

System Restore Point (Me/XP): End
Display Message Box "You must restart the system to be able to run
[PRO..." -- "Reboot"
If %_SB_RETURN% Equals "$IDOK$" Then
Reboot Operating System
End

This is at the very end of the script, after the restore point is
finished. It didn't reboot. Not a big deal, I'm just wondering if
this script is ok (I haven't used it for about 14 months so it's about
a thousand builds behind<g>) or if there is some problem with the
Reboot...

Best regards,

Arnór Baldvinsson
Icetips Software
San Antonio, Texas, USA
www.icetips.com


Subscribe to information from Icetips.com:
http://www.icetips.com/subscribe.php

NewsArchive
10-31-2006, 05:27 AM
Hi Arnór,

Hmm, strange. There was a reboot fix in 5.6 build 1659. I'll check if this
breaks your code...

Friedrich

NewsArchive
10-31-2006, 10:32 AM
Hi Friedrich,

>Hmm, strange. There was a reboot fix in 5.6 build 1659. I'll check if this
>breaks your code...

I may get some time to check it out later today. Note that this was
on a fresh, new computer with nothing on it (except all the stuff that
comes with a Dell<g>).

Best regards,

Arnór Baldvinsson
Icetips Software
San Antonio, Texas, USA
www.icetips.com


Subscribe to information from Icetips.com:
http://www.icetips.com/subscribe.php

NewsArchive
10-31-2006, 10:32 AM
Hi Arnór,

Unfortunately, <g> you are correct. This is a bug in the latest
SetupBuilder build. The installer does not fire the reboot event.

Item in review!

Thanks,
Friedrich

--
Friedrich Linder
CEO, Lindersoft
www.lindersoft.com
+1.954.252.3910

"point. click. ship" - that's SetupBuilder 5

NewsArchive
10-31-2006, 10:32 AM
Hi Arnór,

Sorry, not a bug in SetupBuilder <g>.

I have used your code:

>
> If %_SB_RETURN% Equals "$IDOK$" Then
>

But I had IDYES and IDNO enabled in my message box, not IDOK.

The following works fine here on XP, x64 and Vista:

Display Message Box "Restart System?\n" -- "Restart"
If %_SB_RETURN% Equals "$IDYES$" Then
Reboot Operating System
End

I am using the MB_YESNO buttons option in the message box.

What are you using in your message box function?

Friedrich

--
Friedrich Linder
CEO, Lindersoft
www.lindersoft.com
+1.954.252.3910

"point. click. ship" - that's SetupBuilder 5

NewsArchive
11-01-2006, 03:22 AM
Hi Friedrich,

>> If %_SB_RETURN% Equals "$IDOK$" Then
>>
>
>But I had IDYES and IDNO enabled in my message box, not IDOK.

Ok, found the problem. I have MB_YESNO, but I'm checking for $IDOK$
I guess at some point I set it up to just reboot and no fuss about it,
then decided to change it to Yes/No but forgot to change the code<g>

BTW: When entering "The Value" for this, the $IDOK$ etc. do not show
up in the list of variables when you ctrl-Right click on the field.
It is in the help for "Message Box" but it would be really nice if the
IDE could allow you to just pick it from a dropdown or something.

Best regards,

Arnór Baldvinsson
Icetips Software
San Antonio, Texas, USA
www.icetips.com


Subscribe to information from Icetips.com:
http://www.icetips.com/subscribe.php