I believe the Environment WiX element maps to a row in the Environment
table.  The Name column only allows for a text string (which is not
further evaluated) and not a formatted string (which allows property
replacement), so I think you are hosed but I could be wrong.

Jim
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of David Reed
(MCS - HOUSTON)
Sent: Tuesday, December 04, 2007 8:46 AM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Specifying name dynamically for environment
variable doesn't seem to work.

Howdy, folks. I'm trying to accomplish the following (without success):

<Environment
     Id="Framework.Configuration.Path"
     Name="[TARGETENV]"
     Value="[TARGETDIR]Configuration\Framework.dtsconfig"
     Action="set"
     System="yes" />

This creates an environment variable named [TARGETENV] *not* an
environment variable of the name specified in the installer form's edit
field.

I can understand Id not supporting property expansion, but I'm hosed if
Name doesn't. Am I doing something wrong? Or is this just something
"thou shalt not"?

------------------------------------------------------------------------
-
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to