Skip to content
⌘ NSIS Forum Archive

Reboot option after uninstall?

8 posts

trix77#

Reboot option after uninstall?

Using the new GUI options is it possible to reboot after you uninstall?

Thnks
Joost Verburg#
Rebooting after uninstallation is not really nessaccery. Not rebooting doesn't cause any probs.

If you want to ask for a reboot, add it manually. Check the reboot flag and use a message box.
virtlink#
KiCHiK, add that to the manual: you can use the reboot flag in the uninstaller to reboot after uninstall.
trix77#
Do need to reboot

I REALLY need to reboot the computer... trust me 😉

And I tried setting the SetRebootFlag true option but it don't work, I think it is because there is no FINISH page for the uninstall in which to display the "Reboot now" or "Reboot manually"...

trix
kichik#
To reboot manually use the Reboot command. The reboot flag is a flag for you, not for the uninstaller. The MUI finish page makes a use of it as an external script for the compiler itself.
trix77#
I am not quite sure what you mean.

If I set the SetRebootFlag true then when the MUI_FINISH page is displayed it will show the reboot option, correct?

What I want is that the same reboot yes/no option is shown when I uninstall the program...

I can always right my own custom page but I was wondering if it had already been done..

trix
kichik#
No, it hasn't been done. Not in the MUI macros at least... You'll have to write one yourself, or just pop up a message box.
trix77#
Thanks!

THat was the answer I was looking for 🙂

Didn't want to re-invent the wheel...

Trix