On Nov 17, 2007 2:55 AM, Bill Brooks <[EMAIL PROTECTED]> wrote:
> So with the hope of helping others along, I created the following page that
> details how to accomplish the above tasks.  If it helps you, that's great.
> If you notice any errors, let me know and I'll correct them.
>
> http://www.dizzymonkeydesign.com/blog/misc/adding-and-customizing-dlgs-in-wix-3/

Excellent resource! Thank you for that.

One thing I've been struggling with is how to make checkboxes start
unchecked (but working!). I've searched all over the list and used
google, and I've found no clear cut answer.

Here are the relevant snippets so I can explain the problem clearly.
Follow the TESTY property:

-------------------------------------------------------
In my Dialog definition I have this snippet:

<Control Id="DesktopShortcut" Type="CheckBox" X="20" Y="200"
Width="120" Height="20"
CheckBoxValue="1" Text="Create desktop shortcuts" Property="TESTY" />
-------------------------------------------------------
In my Features I have this snippet:

<Feature Id="DesktopShortcuts_Feature" Level="0">
 <Condition Level="1">TESTY</Condition>
 <ComponentRef Id="DesktopShortcuts_Component" />
</Feature>
-------------------------------------------------------
And near the end of my Product definition I have the following Property:

<Property Id="TESTY" Value="1" />
-------------------------------------------------------

That works; I can check or uncheck the checkbox and it will act
accordingly. The checkbox of course (because of the Property
definition) starts checked. The consensus seems to be to omit "P" if I
wanted it unchecked, and it indeed starts unchecked if I do that, but
it won't install the feature if I check it!

How am I supposed to do it then? And Bill, the answer to this would be
a great addition to your explanation page.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to