Alex Shevchuk

Always listen to experts. They’ll tell you what can’t be done, and why. Then do it. - Lazarus Long

Conditions for different types of installation

Conditions for different types of installation

  • Comments 2
  • Likes

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
  • Alex,

    Could u brief the sample examples of how to set conditions for a RegistrySearch property.

    Thanks in advance.

    Regards,

    Vinod K

  • 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).

Your comment has been posted.   Close
Thank you, your comment requires moderation so it may take a while to appear.   Close
Leave a Comment