Many thanks, this worked perfectly! Regards, Lionel
-----Original Message----- From: Blair [mailto:os...@live.com] Sent: 11 August 2010 17:14 To: 'General discussion for Windows Installer XML toolset.' Subject: Re: [WiX-users] Environment variables into a WIX property <SetProperty Id="UserFolder" Value="[%USERPROFILE]\MyApp\MyFolder" Sequence="ui" Before="AppSearch"/> Change the Sequence and Before values as appropriate for your needs. To use one property's value in another you need to use an action (since entries in the property table aren't parsed). This will create that action. -----Original Message----- From: Lobo, Lionel [mailto:lionel.l...@daon.com] Sent: Wednesday, August 11, 2010 8:55 AM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Environment variables into a WIX property I had tried that, the installer fails with the message: "The specified path [%USERPROFILE] is unavailable." I should add that this property is being used to initialize a custom folder selector screen with DirectoryCombo/DirectoryList/PathEdit controls. This would allow the user to have the default of creating a custom folder in the USERPROFILE, or to select a different one. The selected folder, as reflected in the property, is then created by the installer. Thanks, Lionel -----Original Message----- From: Pally Sandher [mailto:pally.sand...@iesve.com] Sent: 11 August 2010 16:36 To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Environment variables into a WIX property 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 ------------------------------------------------------------------------ ---- -- 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 ------------------------------------------------------------------------------ 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