Hello, the following code should prevent IISApplication from execution when the checkbox is not checked. Then IISApplicationVDir is executed. Vice versa, when the checkbox is checked, IISApplication isn't executed and IISApplication is done.
the problem is, that it seems IISApplication is executed in both cases. Which value is stored in VDIRENABLE if its checked / not checked ? Which condition let get me the described behaviour? Thanks in advance! The code: <Component Id="IISApplication" Guid="FFA12D9C-5AEC-45F8-AA7D-5C4CEC7FA466" KeyPath="yes"> <Condition><![CDATA[NOT VDIRENABLE]]></Condition> <Iis:WebSite Id="WebSite" Description="[WEBSITE_DESCRIPTION]" Directory="INSTALLLOCATION" ConfigureIfExists="yes"> <Iis:WebAddress Id="WebAdress" Port="[WEBSITE_PORT]" Header="[WEBSITE_HEADER]" IP="[WEBSITE_IP]" /> <Iis:WebDirProperties Id="WebVirtualDirProperties" Execute="yes" Script="yes" Read="yes" WindowsAuthentication="no" AnonymousAccess="yes" IIsControlledPassword="yes" /> <Iis:WebApplication Id="WebApp" Name="[VDIR]" WebAppPool="AppPool" /> </Iis:WebSite> </Component> <Component Id="IISApplicationVDir" Guid="BFA12D9C-5AEC-45F8-AA7D-5C4CEC7FA466" KeyPath="yes"> <Condition><![CDATA[VDIRENABLE = 1]]></Condition> <Iis:WebSite Id="WebSiteVDir" Description="[WEBSITE_DESCRIPTION]" Directory="INSTALLLOCATION" ConfigureIfExists="yes"> <Iis:WebAddress Id="WebAdressVDIR" Port="[WEBSITE_PORT]" Header="[WEBSITE_HEADER]" IP="[WEBSITE_IP]" /> </Iis:WebSite> <Iis:WebVirtualDir Id="WebVirtualVDir" Alias="[WEBSITE_DESCRIPTION]" Directory="INSTALLLOCATION" WebSite="WebSiteVDir"> <Iis:WebApplication Id="WebAppVDir" Name="[VDIR]" WebAppPool="AppPool" /> <Iis:WebDirProperties Id="WebVirtualDirPropertiesVDIR" Execute="yes" Script="yes" Read="yes" WindowsAuthentication="no" AnonymousAccess="yes" IIsControlledPassword="yes" /> </Iis:WebVirtualDir> </Component> And the checkbox: <Control Id="VDirEnable" Type="CheckBox" X="25" Y="65" Width="320" Height="10" Text="!(loc.IisSettingsDlgEnableVDir)" CheckBoxValue="1" Property="VDIRENABLE" /> ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users