
The user inserts an Office 2000 CD-ROM into their computer. How Setup.exe Bootstraps the Windows Installer when Installing Office 2000 The following section describes how the Office 2000 setup application, named Setup.exe, qualifies the user and their computer, constructs a command line and installs Windows Installer using the Msiexec.exe application. When a user inserts an Office 2000 CD-ROM into their computer, Setup.exe attempts to launch the maintenance mode, the setup application, or does nothing at all, according to the user's needs. This example is specifically written to install Office 2000 and should be used as a general reference only. The following example demonstrates how the setup application which installs Microsoft Office 2000 checks the user's system and configures the Windows Installer installation. For more information, see Determining the Windows Installer Version

Once the installation of Windows Installer has initiated, the bootstrapping application must handle return codes from the Instmsi.exe application and handle any reboot that is incurred during the Windows Installer installation. If Windows Installer is not currently installed, the bootstrapping application must query the operating system to determine which version of the Instmsi.exe is required.

Applications can get the version of Windows Installer currently installed by using DllGetVersion. The bootstrapping application must first check to see whether Windows Installer is currently installed. However, a bootstrapping application must manage this installation.

A setup application Instmsi.exe is available with the Windows Installer SDK that contains all logic and functionality to install Windows Installer. Currently every installation that attempts to use the Windows Installer begins by checking whether the installer is present on the user's computer, and if it is not present, whether the user and computer are ready to install Windows Installer.
