views:

94

answers:

3

As title says, How do I tell the user via installer that the machine needs to be restarted and have the installer restart it ?

Please note that I'd like to avoid having a custom action with

MessageBox.Show("Restart your machine");
A: 

Not the answer, but this is the very last thing you should be causing to be required - any subservient component that really requires this should already be setting the 'reboot required' state.

Ruben Bartelink
I'm installing a win32 service, and it doesn't say it requires it.
Maciek
Can't you simply start the service as part of your installation process?
Lasse V. Karlsen
Nope, it needs to be restarted
Maciek
+2  A: 

You'll need to modify the MSI with Orca to get this working. This isn't possible in C# even though it is in C++. You have to add in the Property Table: name=REBOOT, value=Force

Jan Jongboom
Ok I got the Orca, how do I find that property? I can't seem to find it.
Maciek
I believe you had to add a row in 'Property'
Jan Jongboom
I've added a row in the "Property" table : NeedReboot = TRUE. However there seems to be no effect. Is that a correct row name?
Maciek
Ok. You have to add in Property table, name=REBOOT, value=force.
Jan Jongboom
Yup, just found it myself as well. Thank you for your input Jan
Maciek
A: 

i suggest you assemble your installer with RebootCheck.exe You get this RebootCheck.exe from VWD 2008 EE setup explore setup disk & go to VWDExpress\WCU

Then check your setup he worked fine. For more information try it online