Skip to content
⌘ NSIS Forum Archive

Restart the computer

3 posts

Guest#

Restart the computer

Hi there,

I am new user of NSIS. I want to add a window at the end of my installation, which ask the user whether he want to restart the computer or not. If the answer is yes then the computer will restart automatically. Anybody knows how to do that?

Your help will be highly appreciate,

Amy
deguix#
Do you use Modern UI and !insertmacro MUI_PAGE_FINISH? If yes, use the "SetRebootFlag" instruction on your section. The finish page will automatically ask the user to reboot the computer.
onad#
Please note that people do not like to restart their PC after an installation. Make REALLY sure there is no other way.