Support for Restart Manager
Restarting the system after an installation is inconvenient for end
users. One of the Windows Vista Logo Program requirements is that all
installations must contain an option that enables end users to automatically
close applications and attempt to restart them after the installation is
complete.
To support this quality guideline, an MsiRMFilesInUse dialog
is available in all Basic MSI projects. The installation displays this
dialog if one or more files that need to be updated are currently in use
during the installation. The dialog contains two options to allow end users
to specify how to proceed:
End users can choose to have the
installation close the applications that are using those files and then
attempt to restart the applications after the installation is complete.
End users can avoid closing the applications. A reboot will be required at
the end of the installation.
In addition, InstallShield integrates new
capabilities for more elegant application shutdown when required by an
installation—minimizing reboots and simplifying and improving the overall
installation experience.
The new SdRMFilesInUse function in
InstallShield displays a dialog that includes a list box containing a list
of the applications that are open and are locking files. The dialog also
includes two radio buttons that allow end users to specify whether the
installation should attempt to use the Restart Manager to shut down the
applications that are locking files or overwrite the locked files (which
most likely results in the need for a reboot to complete the installation).
For InstallScript MSI projects, the new OnRMFilesInUse event handler
displays the new SdRMFilesInUse dialog. This event handler is called when
the Restart Manager is enabled and Windows Installer sends an
INSTALLMESSAGE_RMFILESINUSE message to the installation.
