HOWTO: Install Windows Installer with Visual Studio Installer Packages

Article translations Article translations
Article ID: 283168 - View products that this article applies to.
This article was previously published under Q283168
Expand all | Collapse all


It may be necessary to include the Windows Installer redistributable with the package that is created with Visual Studio Installer because Windows Installer may not be present on the operating system on which you are installing your product.


Microsoft Windows 95, Microsoft Windows 98, and Microsoft Windows NT 4.0 do not include the Windows Installer as part of the operating system. You may receive an error message indicating that the package has no file extension associated with it when you try to install. On the preceding operating systems, you need to install Windows Installer prior to launching your Visual Studio Installer Package.

To include the Windows Installer installation for all operating systems with your Microsoft Visual Studio package, follow these steps:
  1. Open your package in Visual Studio Installer.
  2. On the Project menu, select [My Project] Properties.
  3. In the Properties windows, select the Build tab.
  4. Change the Build Type to Installer with Windows Installer Loader.
  5. Build your project to create an Installer package file with a Windows Installer bootstrap loader (setup.exe file).
The bootstrap loader checks to see if the Windows Installer is already on the target computer. If not, the bootstrap loader installs the correct Installer for the operating system of the target computer. The bootstrap loader runs the Installer package file after checking for (and, if necessary, installing) the Windows Installer.

Building an installation with the Windows Installer bootstrap loader creates the following distinct files as part of your Installer package:
  • Your .msi file.
  • Setup.exe - the file that determines whether the Windows Installer resides on the target computer. If necessary, the file installs the Windows Installer.
  • Setup.ini - the file that tells setup.exe the name of your .msi file to install.
  • Instmsiw.exe - the Windows Installer for Windows NT-based computers.
  • Instmsia.exe - the Windows Installer for Windows 95- and Windows 98-based computers.


For more information, see the topic "Build Tab (Project Properties Dialog Box)" in the Microsoft Developers Network (MSDN) Library.


Article ID: 283168 - Last Review: July 12, 2004 - Revision: 2.1
  • Microsoft Visual Studio Installer 1.0
  • Microsoft Visual Studio Installer 1.1
kbappsetup kbhowto KB283168
Retired KB Content Disclaimer
This article was written about products for which Microsoft no longer offers support. Therefore, this article is offered "as is" and will no longer be updated.

Give Feedback


Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from