Hi, > In a merge module, I'm trying to create an environment variable that > contains the path to where the product is being installed to. My merge > module uses the code below to do it, but it's not working quite right. > When the product gets installed to "c:\program files\mycompany\myapp", > [TARGETDIR] in the merge module only puts "C:\" into the environment > variable even though the product does install to the full path. Is there > a different way to handle this? > Have you tried using INSTALLDIR instead of TARGETDIR?
It should match the configurable directory of your application: <Feature Id='Complete' Title='Example' Description='Description' Display='expand' Level='1' ConfigurableDirectory='INSTALLDIR'> Because that is the property that gets sets when the user chooses a folder to install the application in. - Kim -- *Kim Gybels Software Developer * kim.gyb...@metris.com <mailto:kim.gyb...@metris.com> Tel: +32 16 74 01 01 Fax: +32 16 74 01 02 * Metris Europe * Interleuvenlaan 86 3001 Leuven Belgium www.metris.com <http://www.metris.com/> ------------------------------------------------------------------------------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users