...I must admit I'm a bit late with this reply, but still I think the
problem persists.
To be more specific, I include some snippets here. Things go on the same way
when I try to show/hide the control or affect the initial value of it.
Here's only the show/hide part, as I'm specifically interested in that - why
can't I get it work?
First, I initialize a global property with
<Property
Id="EXITDIALOGONCLOSEACTIONAPPLYCONTROLSHOW"
Value="1"
/>
The checkbox is in my custom UI, on the exit dialog:
<Control Type="CheckBox" Width="206" Height="13" X="158" Y="214"
Id="ExitDialogOnCloseActionApplyControl"
Text="[EXITDIALOGONCLOSEAPPLYCONTROL_TEXT]" CheckBoxValue="1"
Property="EXITDIALOGONCLOSEACTIONAPPLY">
<Condition
Action="show">EXITDIALOGONCLOSEACTIONAPPLYCONTROLSHOW="1"</Condition>
<Condition Action="hide">EXITDIALOGONCLOSEACTIONAPPLYCONTROLSHOW
<>"1"</Condition>
</Control>
For the sake of a simplicity, I try to hide it with a simple custom action:
<CustomAction Id="TestAction" Script="vbscript">
Session.Property("EXITDIALOGONCLOSEACTIONAPPLYCONTROLSHOW") = ""
</CustomAction>
Sequenced as
<Custom Action="TestAction" Sequence="2" />
It does the modification (checked with MsgBox), and so on.
It still has no effect, while changing the property value in the property
element works appropriately.
Why?
2007/10/27, János Brezniczky <[EMAIL PROTECTED]>:
>
> First of all, thank you for answering.. my problem is that the checkboxsticks
> to the value provided long before the script runs, no matter what
> value I provide, and if I don't specify one, it remains unchecked because of
> the default 'empty' value of the property. It seems to be immune to whatever
> I do, but I'll retry again, and give a feedback.
>
> Thanks till that time!
>
>
> 2007/10/27, Richard <[EMAIL PROTECTED]>:
> >
> >
> > In article <[EMAIL PROTECTED]
> > >,
> > "=?ISO-8859-1?Q?J=E1nos_Brezniczky?=" <[EMAIL PROTECTED]> writes:
> >
> > > Does anyone know a way to accomplish the initialization I'm stuck
> > with?
> > > What am I overlooking?
> >
> > Check boxes toggle the property value between empty and whatever ends
> > up listed in the CheckBox table (WiX has an attribute that specifies
> > this value in the control element, IIRC). If you initialize the
> > property to some other value, I don't think the checkbox will be
> > checked properly.
> > --
> > "The Direct3D Graphics Pipeline" -- DirectX 9 draft available for
> > download
> > < http://www.xmission.com/~legalize/book/download/index.html>
> >
> > Legalize Adulthood! <http://blogs.xmission.com/legalize/>
> >
> > -------------------------------------------------------------------------
> >
> > 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
> >
>
>
-------------------------------------------------------------------------
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