Share via


Conditions for different types of installation

Content

  • Detecting the installation state
  • Detecting the type of the maintenace installation

 

Detecting the installation state

Use Installed property to determine if product is installed per-machine or for the current user.  Keep in mind that the product can be installed for a different user.

Conditions

Condition Description
Installed Product is already installed either per-machine or for the current user. Current install is the maintenance install.
Not Installed Product is not installed per-machine or for the current user. It is possible that the product is installed for a different user.  Current install is a new install.
ProductState=-1 Product is not installed or advertised neither per-machine nor for any user on the target system.  Current install is a new install.
Installed And ProductState=2 The product is installed for a different user. This is a new install either per machine or for the current user.
Installed And ProductState=5 The product is installed and the current installation is a maintenance installation.

Comments

  • Anonymous
    August 06, 2009
    Alex, Could u brief the sample examples of how to set conditions for a RegistrySearch property. Thanks in advance. Regards, Vinod K

  • Anonymous
    August 06, 2009
    RegistrySearch is part of the AppSearch standard action (WiX representation of RegLocator table). AppSearch does not allow conditions on Locator tables (see http://msdn.microsoft.com/en-us/library/aa367579(VS.85).aspx for more details).