How can I restart the computer after installation has completed?




  • Avatar

    You can add <rebootRequired>1</rebootRequired> to the project XML file and at the end of installation, the installer will ask the user if they want to restart. If they select "yes", the computer will be restarted:


    Please note this is just executed on Windows.

  • Avatar
    Filip Matiovský

    Hi, it looks like this option is common for installer and uninstaller. I would like to have this separated for installer and uninstaller. Is there a way how to ask for restart just in installer?

Please sign in to leave a comment.