Installed state

While Windows Installer uses action state to determine if a feature or component should be installed, it uses the installed state to see if a feature or component has already been installed by a previous installation. In other words, does it currently exist on the computer?

Unlike the action state, the value of installed state can be used in feature and component conditions. For features, you'll prefix the feature's Id attribute with an exclamation mark (!), as shown:

!MainFeature = 3

For components, you'll use a question mark (?):

?ComponentA = 3

This allows you to include features and components based on whether they were installed before. You can also use them in custom actions and UI control conditions, such as to change which dialogs ...

Get WiX 3.6: A Developer's Guide to Windows Installer XML now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.