How can I restart the computer after installation has completed?

asked 12 Sep '11, 07:51

Jake's gravatar image

Jake ♦♦
796222226235
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:

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

Please note this is just executed on Windows.

link

answered 12 Sep '11, 07:52

Jake's gravatar image

Jake ♦♦
796222226235
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?

link

answered 18 Jan, 06:09

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

Filip Matiovský
612
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

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "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

Tags:

×3

Asked: 12 Sep '11, 07:51

Seen: 1,886 times

Last updated: 18 Jan, 06:09