That's not valid XML. You need to either put the condition in a CDATA block or 
use the ">" entity.

Dave



________________________________
 From: Bill Pierce <bpie...@beyondtrust.com>
To: "wix-users@lists.sourceforge.net" <wix-users@lists.sourceforge.net> 
Sent: Tuesday, June 26, 2012 9:50 AM
Subject: [WiX-users] Trying to get a custom action to install only for Windows 8
 
Hi All,

I'm trying to get .Net 3.5 to install for Windows 8 only, It will install fine 
without the condition but as soon as I put in the line with "VersionNT>=602" it 
doesn't install. I also tried VersionNT64 and putting the condition in any 
other place I could find to stick it. Here's the code I have.

<Property Id="QtExecDeferredExample" Value='"Dism" /online /enable-feature 
/featurename:NetFx3 /All /Source:x:\sources\sxs /LimitAccess'/>
    <CustomAction Id="QtExecDeferredExample" BinaryKey="WixCA" 
DllEntry="CAQuietExec"
                  Execute="deferred" Return="check" Impersonate="no"/>

    <InstallExecuteSequence>
      <Custom Action="QtExecDeferredExample"  After="InstallInitialize">
       VersionNT>=602
      </Custom>
    </InstallExecuteSequence>
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to