Makes a lot more sense now, thank you.
From: Jim Williams [mailto:[EMAIL PROTECTED]
Sent: 22 April 2008 17:35
To: Ryan O'Neill; wix-users@lists.sourceforge.net
Subject: RE: [WiX-users] Question about variables
The dollar sign ($) on the front of the component name MyVbsCa means to use
the value of action state of the component, that is, what is going to be
done to the component. ">.2" means to check if the action state is
greater than 2, where 2 means "not present or installed" or being
uninstalled. There are values 3 (install locally) and 4 (install from
source) for a component, so > 2 would mean "install locally" or "install
from source". So essentially, they are just checking to see if the
component is going to be installed. See
http://msdn2.microsoft.com/en-us/library/aa368012(VS.85).aspx
Jim
_____
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ryan O'Neill
Sent: Tuesday, April 22, 2008 8:24 AM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Question about variables
I'm decoding someone else's setup and it has the following custom action
definition;
<CustomAction Id="CA_ActionId" FileKey="MyVbsCa.vbs" VBScriptCall=""
Execute="deferred" />
...
<Component Id="MyVbsCa" Guid="GUID_GOES_HERE">
<File Id="MyVbsCa.vbs" Name="MyVbsCa.vbs" KeyPath="yes" Vital="yes"
Source="MyVbsCa.vbs" />
</Component>
...
<ComponentRef Id="MyVbsCa" />
Plus the following scheduling of that action.
<Custom Action="CA_ActionId" Sequence="5904">(CTL_SetDefault = 1) AND
$MyVbsCa>2</Custom>
>From what I understand, $MyVbsCa is a variable but it is not used anywhere
other than those lines above. I can't see that it gets set, so all I can
think of is that it gets set somewhere as a side effect.
Am I missing something or does the above not work correctly?
Regards
Ryan
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users