Reboot after deployment

  • Thread starter Thread starter Urs Vogel
  • Start date Start date
U

Urs Vogel

Hi

I deploy a Windows Service which requires a reboot after setup. The setup
project, however, does not automatically recognize this requirement.How do I
force a reboot (or set a reboot property) in the setup project (VS 2003)?
Any hints are appreciated.

Thanks, Urs
 
I dont know how to do it using a native framework technique, but here is a
tip: An ExitWindowsEx API call can be used to shutdown, logoff, restart,
power off ...
 
Hi,

You need orca.exe to edit the setup msi. Open the msi with orca.
Go to the properties table and right click in the table and select add
new
row. Add the property REBOOT and set its value to FORCE. Set the
property
folderForm_allusers to all if you want to install for everyone instead
of
me. Orca is part of the windows installer sdk.

http://www.microsoft.com/msdownload/platformsdk/sdkupdate/

or see
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/setup/forcereboot_action.asp
 
Thanks. I'll download the SDK then.

scorpion53061 said:
Hi,

You need orca.exe to edit the setup msi. Open the msi with orca.
Go to the properties table and right click in the table and select add new
row. Add the property REBOOT and set its value to FORCE. Set the
property
folderForm_allusers to all if you want to install for everyone instead of
me. Orca is part of the windows installer sdk.

http://www.microsoft.com/msdownload/platformsdk/sdkupdate/

or see
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/setup/forcereboot_action.asp
 
Depends on what your using for an OS but if it is xp or 2003 you can shell
out the command to reboot


Shutdown /r
There are lots more options
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top