This information is correct for the condition syntax; however, if used in a
formatted field, $ means the installation directory of the component (if
$component is enclosed in square brackets []). ? has no meaning in a
formatted field.

 

For more see "Formatted" in the Windows Installer SDK at
http://msdn2.microsoft.com/en-us/library/aa368609.aspx and "Conditional
Statement Syntax" at http://msdn2.microsoft.com/en-us/library/aa368012.aspx.
The WiX documentation does indicate which fields use Formatted syntax.

 

-- 

Mike Dimmick

 

  _____  

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Hugh Williams
Sent: 11 May 2007 15:23
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Getting component action/installed state

 

In the WiX tutorial (http://www.tramontana.co.hu/wix/lesson5.php#5.3) it
says that a component's action state and installed state can be obtained by
prepending a $ or ? (respectively) to a component name. 

If the component is installed on the local computer, the installed state
should be 3. If it is being installed, the action state should be 3.

Consider this component:

<Component
    Id="appExeConfig" 
    Guid="CDCC4140-6895-4FB0-8D0F-0D18ECAD4102">
    <File
        Id="app.exe.config"
        LongName="app.exe.config"
        Name="app.cfg"
        DiskId="1" 
        KeyPath="yes"/>
</Component>

When I patch this component, I would expect $appExeConfig to be 3 and
?appExeConfig to be 3.

However, what I'm seeing is that $appExeConfig is the path to the
installation folder (ie. "C:\Program Files\Product Manufacturer\Product\")
and ?appExeConfig is an empty string. 

What am I doing wrong?

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

Reply via email to