Basically I'm just looking at this:
http://msdn2.microsoft.com/en-us/library/aa368012.aspx
where it says when &FeatureName is safe to use.
But yes, the Wix schema is right - CostFinalize is sequenced before the
first Dialog in the UI sequence (for a first-time install) so that the
&Feature is available as you enter the dialogs, but can't be used as a
LaunchCondition. Unfortunately I think that means we're back wondering
why the expression doesn't work in your dialog. I'm wondering if
something in the feature selection tree is being reset by (speculative
example) a CostInitialize call because it's changing what's being
installed.
Phil Wilson
________________________________
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Scott
Parker
Sent: Thursday, April 26, 2007 5:12 PM
To: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] WiX-users Digest, Vol 11, Issue 198
Thanks for the response Phil.
I'm a bit confused by it however. The WiX Schema states "...The
CostFinalize action must be executed before starting any user interface
sequence which allows the user to view or modify Feature table
selections or directories."
So I would assume the default WiX Schema would indeed have finished
before the Customization Dialog is ever reached. Is a Publish action on
a control evaluated before the UI sequence starts, or is there some
other way to reconcile the Schema text with what you said?
Thanks,
-Scott
On 4/26/07, Phil Wilson wrote:
It doesn't evaluate correctly until after the CostFinalize
action.
Phil Wilson
________________________________
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Scott
Parker
Sent: Thursday, April 26, 2007 2:37 PM
To: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] Check for at least one required
feature?
So then is it correct to say that &FEATURE doesn't evaluate to
anything
during the UI Sequence? Or do I have my Publish actions below
screwy?
Here's an example: In my main Installer .wxs file I have...
<Feature Id="FEATUREAAA" Level="1" >
Then in a secondary file dialogs.wxs on a Next button I have
<Publish Event="NewDialog"
Value="AAADialog"><![CDATA[&FEATUREAAA =
3]]></Publish>
<Publish Event="NewDialog" Vaue="NormalDialog">1</Publish>
It ALWAYS goes to NormalDialog regardless of whether or not I
select
FEATUREAAA in the customization step earlier in the UI sequence.
Any thoughts or help? Thanks,
-Scott
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users