This step-by-step article describes how to control system restarts in a setup project that you create by using Microsoft Visual Studio .NET. To control system restarts, you must use Orca (a Microsoft Windows Installer Development Tool) to modify the property table of the Microsoft Windows Installer file that is created when you build your project. Orca is included with Microsoft Platform Software Development Kit (SDK).
It is a good idea to restart your computer if an installation replaces any files that are in use during the installation process. You can control system restarts in your Windows Installer file by specifying the value of the REBOOT property as Force.
The MyRebooter.msi file is located in a folder that is named Debug. This Debug folder is located in the MyRebooter folder where you created your MyRebooter setup project in step 6 of the "Create a Setup Project" section of this article.
The MyRebooter.msi file is opened for editing.
In the left pane, click Property to select the property table.
On the Tables menu, click Add Row.
The Add Row dialog box appears.
In the Property text box, type REBOOT.
In the Name field, click Value.
In the Value text box, type Force.
The REBOOT property and the associated value are added to the property table.