This documentation is archived and is not being maintained.

Deployment Conditions

For conditional deployment, the Condition property of a file, folder, registry entry, custom action, or launch condition is used to evaluate one or more properties during installation. The condition can evaluate the Property property exposed by other elements in the installer (for example, the Property property for a file search), or it can evaluate properties exposed by Windows Installer (for example, operating system version).

Custom properties can be specified for launch conditions in the Launch Conditions Editor, for custom folders in the File System Editor, or for custom dialog boxes in the User Interface Editor. When specifying a custom property, the name must contain uppercase characters and the name must not conflict with any existing properties or Windows Installer property names.

Multiple properties can be evaluated using Boolean operators. For more information, see Windows Installer Conditional Statement Syntax.

The Property properties for special folders are examples of Windows Installer system folder properties (for example, ProgramMenuFolder or DesktopFolder). The following is a list of some other common Windows Installer properties that can be used in conditions.

Windows Installer Property Description
Version9X Version number for the Windows operating system.
VersionNT Version number for the Windows NT/Windows 2000 operating system.
ServicePackLevel The version number of the operating system service pack.
WindowsBuild Build number of the operating system.
SystemLanguageID Default language identifier for the system.
MsiNetAssemblySupport On systems that support common language runtime assemblies, the installer sets the value of this property to the file version of fusion.dll.
ComputerName Computer name of the current system.
LogonUser User name for the user currently logged on.
AdminUser Set on Windows NT/Windows 2000 if the user has administrator privileges.
PhysicalMemory Size of the installed RAM in megabytes.
Intel Numeric processor level if running on an Intel processor.
COMPANYNAME Organization of user performing the installation. Corresponds to the Organization entered in the Customer Information installation dialog box.
USERNAME User performing the installation. Corresponds to the Name entered in the Customer Information installation dialog box.
Note   The above properties are a partial listing and were valid as of the release of Visual Studio .NET. Additional properties are available, and new properties may be added from time to time. For an updated list of conditions, see Property Reference.

See Also

Conditional Deployment | Launch Condition Management in Deployment | Condition Property | Windows Installer Property Reference | Windows Installer Conditional Statement Syntax

Show: