The Value attribute's value goes to the Value column in the Environment table (http://msdn2.microsoft.com/en-us/library/aa368369(VS.85).aspx). The type of this column is "Formatted" and it has some extra modifiers which affect the environment variable during install/uninstall. See the explanation on the Value column for more details. To set the value of your environment variable, use [INSTALLDIR] as the value.
Alex -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mark Visser Sent: Wednesday, March 05, 2008 5:52 PM To: wix-users@lists.sourceforge.net Subject: [WiX-users] adding environment variable that references install directory My software requires adding an environment variable that points to it's installed location: <Environment Id="HoudiniPath" Action="set" Name="HOUDINI_PATH" Part="last" Permanent="no" Value="INSTALLDIR" /> Obviously INSTALLDIR isn't expanded here, since it isn't known until the installer is run. How can I have the environment variable set like this? thanks, -Mark ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users