MSI Factory

Launch Conditions

This dialog lets you specify launch conditions for your installer that must be met in order for the install to continue.

Operating System

Select operating systems that are allowed and disallowed for your product. If an operating system is unchecked it will cause the launch conditions to fail if the user does not have that operating system.

System Checks

Mimimum RAM:

The minimum amount of physical RAM that the user must have on their system to use your product in megabytes. Set to 0 to not require any specific amount of RAM. This setting forms a condition that checks against the PhysicalMemory property.

Screen width:

The minimum screen width of the user's screen in pixels. Set to 0 to not require any specific screen width. This setting forms a condition that checks against the ScreenX property.

Screen height:

The minimum screen height of the user's screen in pixels. Set to 0 to not require any specific screen height. This setting forms a condition that checks against the ScreenY property.

Color depth:

The minimum color depth that the user's system must support to continue with the installation in bits-per-pixel. Use 8 for 256 colors, 16 for "Highcolor" (65,536 colors), 24 for Truecolor (16.7 million colors) or 32 for Truecolor + Alpha channel. This setting forms a condition that checks against the ColorBits property.

Windows installer version:

The minimum Windows Installer version required for the installer to continue. Leave empty to not require any specific Windows Installer version in launch conditions. Usually the Windows Installer version is checked for by the bootstrapper or in the Package tab of the Project Settings dialog.

Note: All of the Operating System and System Checks launch conditions will be run every time that the installer is run whether it is an install, repair or remove. If you only want to execute a launch condition during install, create a custom condition and append "OR Installed" to your conditional expression. This will ensure that the condition is skipped if the software is already installed.

Custom

A list of custom conditions that you can create to handle situations not covered above. Click the Add button to open the Launch Condition Properties dialog and create a new custom launch condition. See the Property Reference topic in the MSDN Online documentation for a full list of properties that are built into Windows Installer.

Note: You cannot guarantee the order in which launch conditions will be evaluated during installation. If you need to control the order of launch conditions consider using a Terminate Installation custom action with the appropriate condition assigned to it.

More Information

MSDN Online: ColorBits Property

MSDN Online: LaunchConditions Action

MSDN Online: LaunchCondition Table

MSDN Online: PhysicalMemory Property

MSDN Online: Property Reference

MSDN Online: ScreenX Property

MSDN Online: ScreenY Property

MSDN Online: Conditional Statement Syntax

WiX Help File: Condition Element