Thanks Craig, I've tried this before and the compiler doesn't seem to like the ".."
My code somehow like this <Directory Id="TARGETDIR" Name="SourceDir"> <Directory Id ="INSTALLDIR"> <Directory Id="MYDIR" Name="[INSTALLDIR]..\MyInstallDir" /> </Directory> </Directory> Here is the error: ----------- error CNDL0027: The Directory/@Name attribute's value, '[INSTALLDIR]..\MyInstallDir', is not a valid long name because it contains illegal characters. Legal long names contain no more than 260 characters and must contain at least one non-period character. Any character except for the follow may be used: \ ? | > < : / * ". ---------------------------- On Thu, Oct 22, 2009 at 3:08 PM, Craig Miller <craig.mil...@spatialminds.com > wrote: > Try "[INSTALLDIR]..\siblingdir\" > > > > > -----Original Message----- > > From: Hoang Le [mailto:hoangle2...@gmail.com] > > Sent: Thursday, October 22, 2009 3:02 PM > > To: General discussion for Windows Installer XML toolset. > > Subject: [WiX-users] Modify INSTALLDIR using custom action? > > > > Hi, > > > > My merge module receives an INSTALLDIR value passed in by a parent > project > > (which I have no control over), and the requirement is that I have to > > install my files to a directory under "the parent" of INSTALLDIR (a > sibling > > of INSTALLDIR). > > > > My initial thought was to get the value of [INSTALLDIR], locate its > parent, > > then create my dir structure from there. This sounds very simple but > quite > > hard to achieve. > > > > Any helpful idea is greatly appreciated. > > > > Thanks. > > > > ---------------------------------------------------------------------------- > -- > > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > > is the only developer event you need to attend this year. Jumpstart your > > developing skills, take BlackBerry mobile applications to market and stay > > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > > http://p.sf.net/sfu/devconference > > _______________________________________________ > > WiX-users mailing list > > WiX-users@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/wix-users > > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users