If the property doesnt exist in the first place, the checkbox is set to
unchecked.
If you check the checkbox, the property is actually created by MSI.

I think the checkbox value is linked to the existence or non existence of
the property.


fregate wrote:
> 
> Thanks for aswer. It works.
> 
> And next question:
> How to set CheckBox value? CheckBox, when displayed have checked
> state. How to set it in non-checked state in initialization?
> 
> Thanks,
> Anton.
> 
> 
> 
> On 9/7/06, Dana Gutride <[EMAIL PROTECTED]> wrote:
>> Anton:
>>
>> Instead of using StartServer = "0"  try NOT StartServer for the condition
>> that disables the second checkbox.  It is a little counterintuitive, but
>> if
>> you take a look at the MSI log, you should see that unchecking a checkbox
>> doesn't set the value of the property to "0", it deletes it altogether.
>>
>> Dana
>>
>>
>> On 9/7/06, Anton Filippov <[EMAIL PROTECTED]> wrote:
>> >
>> Hello all.
>> I have some checkboxes in dialog:
>>
>>
>> <Control Id="LaunchServer" Type="CheckBox" Property="StartServer"
>> CheckBoxValue="1">
>>   <Text>Launch [ProductName]</Text>
>> </Control>
>> <Control Id="LaunchServerAsService" Type="CheckBox"
>> Property="StartServerAsService">
>>   <Text>as service</Text>
>>   <Condition Action="disable">StartServer = "0"</Condition>
>>   <Condition Action="enable">StartServer = "1"</Condition>
>> </Control>
>>
>> <Property Id="StartServer">0</Property>
>>
>> When it show on dialog, I have:
>> LaunchServer - checked
>> LaunchserverAsService - disabled, checked
>>
>> When I press LaunchServer and check it again
>> LaunchServerAsService - checked, enabled
>>
>> But If I check LaunchServer again - LaunchserverAsService not change it
>> state.
>>
>> What wrong?
>>
>> Thanks,
>> Anton
>>
>> -------------------------------------------------------------------------
>> Using Tomcat but need to do more? Need to support web services, security?
>> Get stuff done quickly with pre-integrated technology to make your job
>> easier
>> Download IBM WebSphere Application Server v.1.0.1 based on Apache
>> Geronimo
>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>> _______________________________________________
>> WiX-users mailing list
>> WiX-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/wix-users
>>
>>
>> -------------------------------------------------------------------------
>> Using Tomcat but need to do more? Need to support web services, security?
>> Get stuff done quickly with pre-integrated technology to make your job
>> easier
>> Download IBM WebSphere Application Server v.1.0.1 based on Apache
>> Geronimo
>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>>
>> _______________________________________________
>> WiX-users mailing list
>> WiX-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/wix-users
>>
>>
>>
> 
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job
> easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Need-help-with-checkboxes-tf2232038.html#a6720021
Sent from the wix-users mailing list archive at Nabble.com.


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to