Is there a way to set a YesNoType value based on the checked status of a 
checkbox control?

For example, I'd like to be able to set a WebAddress's Secure property (which 
is a YesNoType) based on a checkbox that writes to a property 'WEBSECURE'. The 
following doesn't work because a YesNoType can't be connected to a property 
value:

<iis:WebAddress Id="WebAddress" IP="*" Port="888" Secure="[WEBSECURE]" />

Is the only way to achieve this effect to create 2 nearly-identical components 
with different "Secure" settings and give each component conditions, such as:

<Component Id="WebComponentSecure" Guid="YOUR-GUID-HERE">
<Condition>WEBSECURE = 1</Condition>
<iis:WebSite Id="WebSite" Directory="INSTALLLOCATION" Description="Server">
<iis:WebAddress Id="SomeWebAddress" IP="*" Port="888" Secure="yes" />
</Component>

<Component Id="WebComponent" Guid="YOUR-GUID-HERE" >
<Condition>WEBSECURE <> 1</Condition>
<iis:WebSite Id="WebSite" Directory="INSTALLLOCATION" Description="Server">
<iis:WebAddress Id=" SomeWebAddress" IP="*" Port="888" Secure="no" />
</Component>

Thanks!

John

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to