Hi Folks, I am trying to pass selected features to a executable in custom action for vaalidation. the following condition doesnt get evaluated TRUE when feature selected.
*(&Feature_AccessControl=3 OR !Feature_AccessControl=3)* The SetProperty custom action works fine if I take out the above condition. here code snippet: <Feature Id="MainTree" Title="NetSense SNMP Manager" ConfigurableDirectory="INSTALLLOCATION" Absent="disallow" AllowAdvertise="no" TypicalDefault="install" InstallDefault="local" Level="1"> <Feature Id="Feature_SNMP" Title="SNMP Service" Description="SNMP Service of the NetSense, this is a core part of the application." Absent="disallow" Display="expand" InstallDefault="local" TypicalDefault="install" ConfigurableDirectory="SNMP" Level="1" AllowAdvertise="no"> <ComponentRef Id="compSNMP"/> </Feature> <Feature Id="Feature_Polling" Title="Polling Service" Description="Polling service of the NetSense, this is a core part of the application." Absent="disallow" Display="expand" InstallDefault="local" TypicalDefault="install" ConfigurableDirectory="POLLING" Level="1" AllowAdvertise="no"> <ComponentRef Id="compPolling"/> </Feature> <Feature Id="Feature_AccessControl" Title="Access Control Service" Description="Access control service of the NetSense, this is a optional part of the application." Absent="allow" Display="expand" InstallDefault="local" Level="1000" ConfigurableDirectory="ACCESSCONTROL" AllowAdvertise="no"> <ComponentRef Id="compAccessControl"/> </Feature> <Feature Id="Feature_Video" Title="Video Surveillance Service" Description="Video surveillance service of the NetSense, this is a optional part of the application." Absent="allow" Display="expand" InstallDefault="local" ConfigurableDirectory="VIDEO" Level="1000" AllowAdvertise="no"> <ComponentRef Id="compVideo"/> </Feature> <ComponentRef Id ="Empty"/> </Feature> <Binary Id="ValidationWizardCA" SourceFile="$(var.Net Sense Validation Wizard.TargetPath)"/> <CustomAction Id="Validate" BinaryKey="ValidationWizardCA" ExeCommand="[PROPACESSESSCONTROL]" Execute="immediate" Return="check" HideTarget="yes" Impersonate="yes" /> <!-- the parameter to pass into the executaable --> <Property Id="PROPACESSESSCONTROL" Value="false"/> <SetProperty Sequence="execute" Before="Validate" Id="PROPACESSESSCONTROL" Value="true"> (&Feature_AccessControl=3 OR !Feature_AccessControl=3) </SetProperty> <InstallExecuteSequence> <Custom Action='IsPrivileged' Before='AppSearch'> Not Privileged </Custom> <Custom Action="Validate" After="IsPrivileged" > NOT REMOVE </Custom> </InstallExecuteSequence> Thanks, Regards, Asiri Wanigarathne ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users