Archive: SetLogoffFlag ???


SetLogoffFlag ???
Is there a mechanism in NSIS, similar to SetRebootFlag, but one that does it for logoff?

Some types of installations do not require reboot but rather logoff/logon only.

Does NSIS support this type of prompt("logoff now" or "I will logoff later")?

Thanks!


No built-in "flag", but that's not to say you couldn't just set a variable to true/false (1/0) and act on it yourself.

Or just check the reboot flag and if set, do a logoff rather than a reboot. You'll have to make the reboot call yourself using the system plugin or by running some other EXE (like shutdown.exe -l).

In MUI/MUI2, you can customize the text used on the reboot now/later options. (Read the docs). Or you can create your own custom page.


Thank you. It would be nice to have a convenience SetLogoffFlag, just like SetRebootFlag. But for now, setting my own boolean variable and calling 'shutdown.exe -l' upon it is a great idea.