Specifying a Per-User or Per-Machine Installation

[This documentation is preliminary and is subject to change.]

The Windows Installer performs a Per-User Installation or Per-Machine Installation depending on the access privileges of the user, the value of the ALLUSERS property, the value of the MSIINSTALLPERUSER property and the version of the operating system.

**Windows 7:  **If the ALLUSERS property is set to 2 and the MSIINSTALLPERUSER property is set to an empty string (""), the Windows Installer requests a per-machine installation. If the ALLUSERS property is set to 2 and MSIINSTALLPERUSER is set to 1, the Windows Installer requests a per-user installation. The MSIINSTALLPERUSER property requires Windows Installer 5.0. Windows Installer ignores the value of the MSIINSTALLPERUSER property in the package or on the command line during the repair of an installed package. If ALLUSERS=2, the installer always resets the ALLUSERS property to an empty string ("") or 1 based on whether it determines to do a Per-User Installation or a Per-Machine Installation.

**Windows XP:  **If the user has user access privileges, and ALLUSERS=2, Windows Installer performs a per-user installation and uses the folders in the user's profile.

**Windows Vista:  **Windows Installer version 4.0 complies with User Account Control (UAC). If the user has user access privileges, and ALLUSERS=2, the installer performs a per-machine installation only if Admin credentials are provided to the UAC dialog box. If UAC is enabled and the correct Admin credentials are not provided, the installation fails with an error stating that administrator privileges are required. If UAC is disabled by the registry key, group policy, or the control panel, the UAC dialog box is not displayed and the installation fails with an error stating that administrator privileges are required.

**Windows XP:  **If the user has user access privileges, and ALLUSERS=2, Windows Installer performs a per-user installation and uses the folders in the user's profile.

**Windows 2000:  **The Windows Installer performs a per-user or per-machine installation depending on the value of the ALLUSERS property. If the ALLUSERS property is not set, the Installer does a per-user installation. If the ALLUSERS property is set to 1, the Installer attempts a per-machine installation. The per-machine installation succeeds only if the user has administrative access privileges on the computer. If the ALLUSERS property is set to 2, the Installer first attempts a per-machine installation. In this case, the per-machine installation succeeds only if the user has administrative access privileges on the computer. Otherwise, the Installer does a per-user installation.

If the ALLUSERS property is set to 2, the Installer always resets the ALLUSERS property to an empty string ("") or 1 based on whether it determines to do a per-user or a per-machine installation.

Send comments about this topic to Microsoft

Build date: 3/9/2009