How can I restart the computer after installation has completed?

asked 12 Sep '11, 07:51

Jake's gravatar image

Jake ♦♦
accept rate: 98%

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.


answered 12 Sep '11, 07:52

Jake's gravatar image

Jake ♦♦
accept rate: 98%

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?


answered 18 Jan, 06:09

Filip%20Matiovsk%C3%BD's gravatar image

Filip Matiovský
accept rate: 0%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: 12 Sep '11, 07:51

Seen: 1,986 times

Last updated: 18 Jan, 06:09