PDA

View Full Version : Restart does not work properly



NewsArchive
08-28-2012, 12:17 AM
Hi Friedrich,

please have a look at the attached screenshot. The Setup asks for a
reboot (as expected), but the system doesn't restart.

Of yourse: This is a small demo for a problem, that I have in my main
project.

Markus

NewsArchive
08-28-2012, 12:18 AM
Markus,

> please have a look at the attached screenshot. The Setup asks for a
> reboot (as expected), but the system doesn't restart.
>
> Of yourse: This is a small demo for a problem, that I have in my
> main project.

You have to use "Reboot/Resume..." to restart a machine.

You can use the "Set Installer Flag" function to "disable" a pending reboot
(e.g. locked file scenario), but to programmatically reboot a machine from
the script, you have to use the "Reboot/Resume..." function.

Hope this helps.

Friedrich

NewsArchive
08-28-2012, 12:18 AM
Hi Friedrich,

so the setup should not ask for a reboot. And you should throw a compile
error, if one tries to the the sb_restart-flag.

Markus

NewsArchive
08-28-2012, 12:19 AM
> so the setup should not ask for a reboot. And you should throw a
> compile error, if one tries to the the sb_restart-flag.

Yes, the installer should not reboot and it should NOT give a compile error.
It's perfectly valid to set the $SB_RESTARTFLAG$, so the compiler should not
give a error/warning here.

Friedrich

NewsArchive
08-28-2012, 12:19 AM
It's valid, that one could SET the Flag, the user will be asked, wheter
he want to reboot after the sb-engine has stopped processing the script
and the reboot is NOT executed?

Friedrich, I know, how to workaround, but let us call it, what it is: At
least inconsistent behaviour, consider calling it a bug.

Markus

NewsArchive
08-28-2012, 12:20 AM
Hi Markus,

> It's valid, that one could SET the Flag, the user will be asked, wheter he
> want to reboot after the sb-engine has stopped processing the script and
> the reboot is NOT executed?
>
> Friedrich, I know, how to workaround, but let us call it, what it is: At
> least inconsistent behaviour, consider calling it a bug.

No, sorry. You completely misunderstood this feature!

What you did should NOT reboot the machine! See my previous email. To
reboot a machine, you have to use the "Reboot/Resume..." function.

This is not a bug at all.

Friedrich

NewsArchive
08-28-2012, 12:20 AM
BTW, you only use this flag to programmatically suppress (or re-enable) a
pending reboot. You do not use it to reboot a machine.

Friedrich

NewsArchive
08-28-2012, 12:20 AM
You wrote at 16:06:

It's perfectly valid to set the $SB_RESTARTFLAG$,

Markus Zander

NewsArchive
08-28-2012, 12:21 AM
>
> It's perfectly valid to set the $SB_RESTARTFLAG$,
>

Yes, it is. But this should not trigger a reboot!!!

Friedrich

NewsArchive
08-28-2012, 12:21 AM
>> It's perfectly valid to set the $SB_RESTARTFLAG$,
>>
>
> Yes, it is. But this should not trigger a reboot!!!

---
FIX : [SB#2-08271] Installer: The "Exit Installation..." script
function does not trigger a reboot message if there is a
reboot pending.
---

Fixed. Thank you!

Friedrich

NewsArchive
08-28-2012, 12:22 AM
The inconsistent behaviour is, that the setup asks the user, wheter he
WANT to restart, but it doesn't. This happens AFTER my script and is
completely out of my control.

Markus

NewsArchive
08-28-2012, 12:22 AM
> The inconsistent behaviour is, that the setup asks the user, wheter he
> WANT to restart, but it doesn't. This happens AFTER my script and is
> completely out of my control.

Yes, I agree. This is an inconsistent behavior. We'll change it in the
next build and improve the documentation (the documentation is not clear and
confusing here).

We introduced this flag to suppress a pending reboot (e.g. caused by a
locked file scenario).

Only the "Reboot/Resume..." function should be used to programmatically
reboot a machine.

Friedrich

NewsArchive
08-28-2012, 12:23 AM
>
> This is not a bug at all.
>

The reboot message box *IS* a bug. Fixed now! It should not be displayed
if you 'Exit' an install. Thank you for bringing this to my attention.

Friedrich

NewsArchive
08-28-2012, 12:23 AM
Thank you.

Markus Zander