Welcome to TechNet Blogs Sign in | Join | Help

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.

 

 

Published Sunday, March 09, 2008 11:41 AM by Alex Shevchuk
Filed under: , ,

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

Thursday, August 06, 2009 9:11 AM by vinodk

# re: Conditions for different types of installation

Alex,

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

Thanks in advance.

Regards,

Vinod K

Thursday, August 06, 2009 4:03 PM by Alex Shevchuk

# re: Conditions for different types of installation

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

Leave a Comment

(required) 
required 
(required) 

  
Enter Code Here: Required
 
Page view tracker