[wix-devs] Fw: Applying a condition in Component

Rob Mensching rob at firegiant.com
Fri Jan 20 09:28:34 PST 2017


Wrong mailing list. Try wix-users.

-----Original Message-----
From: wix-devs [mailto:wix-devs-bounces at lists.wixtoolset.org] On Behalf Of Laique Abbas
Sent: Friday, January 20, 2017 5:21 AM
To: WiX Toolset Developer Mailing List <wix-devs at lists.wixtoolset.org>
Subject: [wix-devs] Fw: Applying a condition in Component




 Hi,  I need to skip a component when the setup is executed in"Repair Mode". I am using "REINSTALLMODE" Property toidentify if the setup is executing in Repair Mode. Below is the code snippetfor the Component.  <Component Id='UpdateConfig' Guid='EDA4F128-BCC1-4C0A-B8AC-588FCF3B64EB' KeyPath='yes'>           <Condition>             <![CDATA[REINSTALLMODE<>"ecmus"]]>           </Condition><util:XmlFile Id='IP' Action="setValue" ElementPath="//configuration/appSettings/add[\[]@key='IP'[\]]/@value" File="[INSTALLLOCATION]Service.exe.config" Value="[SERVERIP]" /></Component>  I can get the property value REINSTALLMODE="ecmus"from the log file but the condition in component is not working. I have triedNOT operator as well but it is not working.  Can you please help me identify the issue here.  Thanks  Regards,Mufaddal


More information about the wix-devs mailing list