Simply use [%Environment_Variable] as a Property. See ->
http://msdn.microsoft.com/en-us/library/aa368609.aspx

Palbinder Sandher 
Software Deployment & IT Administrator
T: +44 (0) 141 945 8500 
F: +44 (0) 141 945 8501 

http://www.iesve.com 
**Design, Simulate + Innovate with the <Virtual Environment>**
Integrated Environmental Solutions Limited. Registered in Scotland No.
SC151456 
Registered Office - Helix Building, West Of Scotland Science Park,
Glasgow G20 0SP
Email Disclaimer

-----Original Message-----
From: Lobo, Lionel [mailto:lionel.l...@daon.com] 
Sent: 11 August 2010 16:29
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Environment variables into a WIX property

Hi,

 

Is there a way to get an environment variable into a WIX property?

 

I'm trying to get the USERPROFILE with:

 

<Property Id="UserFolder"  Value="$(env.USERPROFILE)\MyApp\MyFolder"/>

 

But this only picks up the USERPROFILE of the build machine, where the
installer is built.

 

I want it to use the USERPROFILE of the machine where the app is being
installed. 

 

Would I need to write an extension to do this?

 

Any suggestions would be appreciated.

 

Thanks,

Lionel

 

------------------------------------------------------------------------
------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users



------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to