Archive: Restart the computer


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


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.


Please note that people do not like to restart their PC after an installation. Make REALLY sure there is no other way.