To add to what Rob said, if putting files in the main MSI's feature INSTALLDIR, you will need to use a Directory tag to specify components/files are placed in the root TARGETDIR.
<Directory Id='TARGETDIR' Name='SourceDir'> <Directory Id='RootFiles'> 'leave Name attribute empty for MSI "." appearance <Component/File...> 'Actually placed in target directory </Directory> <Directory Id='SystemFolder' Name='System'> <Component/File...> </Directory> </Directory> The following merge module fragment will NOT work as expected: <Directory Id='TARGETDIR' Name='SourceDir'> <Component/File ...> 'goes into drive root! <Directory Id='SystemFolder' Name='System'> <Component/File ...> </Directory> </Directory> Bill Miller -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Rob Mensching Sent: Tuesday, July 25, 2006 2:59 AM To: 'Colin Burn'; wix-users@lists.sourceforge.net Subject: Re: [WiX-users] Shortcut in a merge module Merge Modules can have their TARGETDIR retargeted. So you can have your Shortcut point at the directory nested just under TARGETDIR then inform the consumers of your Merge Module that they can put the Merge element under different Directory elements to get the Shortcut installed in different directories (or point to different directories, depending on your design need). ________________________________________ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Colin Burn Sent: Thursday, July 20, 2006 7:32 AM To: wix-users@lists.sourceforge.net Subject: [WiX-users] Shortcut in a merge module Hi, I'm trying to write a merge module that installs a shortcut to the start menu in the same folder as the MSI installs its shortcuts i.e. I need a way to pass a folder name to a merge module. Is this possible? Thanks Colin ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users