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");
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");
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.
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