This will not work (in Wix 3, at least.) I believe the CHECKBOXPROPERTY
is an 'empty' vs 'nonempty' kinda thing. You have to eliminate the value
altogether:

 

<Property Id="CHECKBOXPROPERTY" />

 

This gives a compilation warneng, but it's the only way I've gotten it
to work.

 

 

-Matt

 

  _____  

From: Levi Wilson [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 10, 2007 5:24 AM
To: Frank Tse; wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] How to specify checkbox control with unchecked
bydefault

 

You should be able to set CHECKBOXPROPERTY to 0 in your wxs file.  That
would initialize it to 0.

<Property Id="CHECKBOXPROPERTY" Value="0" />

On 1/10/07, Frank Tse <[EMAIL PROTECTED]> wrote:

Hi,

 

I am showing a simple checkbox control in a dialog:

       <Control Id="CheckBox1 " Type= "CheckBox" X="25 " Y=" 120" Width
="210 " Height= "17" Property='CHECKBOXPROPERTY ' CheckBoxValue= '1'> 

 

Currently when the dialog is shown, the checkbox is checked by default.
All I want is to have the checkbox unchecked by default.  I have looked
at the Control element schema and there doesn't seem to have an
attribute to set this.  Is there a way to show the checkbox unchecked by
default?  Any help would be really appreciated.

 

Thanks,

Frank


------------------------------------------------------------------------
-
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=DEVDE
V

_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users 



 

-------------------------------------------------------------------------
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