> 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.
That did it! I had tried INSTALLDIR before, but it was always set to nothing. It was the ConfigurableDirectory that did the trick! Thanks --- Bradford Younie Senior Software Engineer Chase Paymentech Solutions 4 NE Blvd Salem, NH 03079-1952 Fax: 603-896-813 bradford.you...@chasepaymentech.com ---------- Learn more about Chase Paymentech Solutions,LLC payment processing services at www.chasepaymentech.com. THIS MESSAGE IS CONFIDENTIAL. This e-mail message and any attachments are proprietary and confidential information intended only for the use of the recipient(s) named above. If you are not the intended recipient, you may not print, distribute, or copy this message or any attachments. If you have received this communication in error, please notify the sender by return e-mail and delete this message and any attachments from your computer. ------------------------------------------------------------------------------ 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