WiX <Property> element creates a record in the Property table 
(http://msdn.microsoft.com/en-us/library/aa370908(VS.85).aspx).  As you can 
see, the type of the Value column in this table is Text (not Formatted).  Also, 
Remarks section has the following:

"Note that you cannot use the Property table to set a property to the value of 
another property. The installer does nothing to the text string entered in the 
Value column before setting the property in the Property column. If 
FirstProperty is entered into the Property column and [SecondProperty] in the 
Value column, the value of FirstProperty is set to the text string 
"[SecondProperty]" and not to the value of the SecondProperty property. This is 
necessary to prevent creating circular references in the Property table. 
Instead, you can set one property to another by using a Custom Action Type 51."

I have samples on all types (including Type 51) in here:
http://blogs.technet.com/alexshev/archive/2008/02/21/from-msi-to-wix-part-5-custom-actions.aspx

Regards,
Alex Shevchuk




-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Greg Silin
Sent: Wednesday, August 06, 2008 8:44 AM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] WindowsFolder variable is not getting picked up

Hi,

I have the following Property element within my WiX source file:

    <Property Id='INSTALLUTIL_PATH' 
Value='[WindowsFolder]\Microsoft.NET\Framework\v2.0.50727\InstallUtil.exe'/>

Its parent is the Product element for the feature installed.

For some reason, the MSI gets built without error, but the installer barfs, 
with logs showing that the [WindowsFolder] string was never resolved into the 
folder.

Am I doing something wrong with the syntax?

Thanks
-greg

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to