Sounds like you are doing this in a merge module.   Just add

<Property Id="CommonFiles64Folder" SuppressModularization="yes"/>

It'll teach the compiler to not do that but also not create a row in the 
property table since you didn't give it any value.
 
Christopher Painter, Author of Deployment Engineering Blog
Have a hot tip, know a secret or read a really good thread that deserves 
attention? E-Mail Me



----- Original Message ----
From: John Fry <j...@ifeats.com>
To: General discussion for Windows Installer XML toolset. 
<wix-users@lists.sourceforge.net>
Sent: Wed, September 29, 2010 6:47:11 PM
Subject: Re: [WiX-users] Square brackets in variable value

Okay, thanks, it seems like the built-in MSI variables might be the
way to go rather than grabbing it from the environment variables.

When I try using the MSI variables, however, the value that ends up in
the MSI is:

[CommonFiles64Folder.2312FADD_90E2_487F_B4BC_5B3F1489FB3C]\path\to\folder;[CommonFilesFolder.2312FADD_90E2_487F_B4BC_5B3F1489FB3C]\path\to\folder;[~]


Wix seems to be appending our Package ID to the variable name in an
attempt to make it globally unique (i.e. seems to be thinking it's
referring to a variable we've set elsewhere in the Wix files rather
than a global MSI variable), do you know if there's any way to stop
Wix from appending the GUID? I looked around to see if there was an
escape sequence I could use but didn't find anything.

Thanks for your help!
John


On Tue, Sep 28, 2010 at 9:30 AM, Bob Arnson <b...@joyofsetup.com> wrote:
>  On 27-Sep-10 12:55, John Fry wrote:
>> The value that gets inserted into the MSI when we get the error is:
>>
>>[%CommonProgramFiles]\path\to\folder;[%CommonProgramFiles(x86)]\path\to\folder;[~]
>>]
>
> Which is correct -- it looks like MSI doesn't like the parentheses.
>
>> And you're saying that an equivalent statement would be:
>>
>> [CommonFiles64Folder]\path\to\folder;[CommonFilesFolder]\path\to\folder;[~]
>
> Yes.
>
> --
> sig://boB
> http://joyofsetup.com/
>
>
> ------------------------------------------------------------------------------
> Start uncovering the many advantages of virtual appliances
> and start using them to simplify application deployment and
> accelerate your shift to cloud computing.
> http://p.sf.net/sfu/novell-sfdev2dev
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>

------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users



      

------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to