Question

Q: How can I restart the computer after installation has completed?

How can I restart the computer after installation has completed?

Answer:

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:

<project>
        ...
        <rebootRequired>1</rebootRequired>
        ...
        </project>
        

Please note this is just executed on Windows.