Something like this: <Directory Id='TARGETDIR' Name='SourceDir'> <Directory Id='ProgramFilesFolder' Name='PFiles'> <Directory Id='DivisionProgFiles' Name='MyCompany'> <Directory Id='INSTALLDIR' Name='MyApp' LongName='My New Application'> <Directory Id='MYSUBFOLDER' Name='NewFolder' /> </Directory> <Directory Id='SHAREDFOLDER' Name='Shared' /> </Directory> </Directory> </Directory>
In this example, I have created two additional folders: One (SHAREDFOLDER) is a sibling to INSTALLDIR and the other (MYSUBFOLDER) is the sub-folder that your original question referred to. Then you simply place your components as necessary. I personally have my WXS files broken up, so my structure looks similar to the above (in my "main.wxs" file), and then in my other WXS files, I simply add the appropriate <DirectoryRef> tag and list my components like so: <DirectoryRef Id='MYSUBFOLDER'> <Component Id='MYEXE' DiskId='1' Guid='INSERT GUID'> <File Id='THEEXE' Name='mynewapp.exe' src='Binary\myapp.exe' /> </Component> </DirectoryRef> Hope this helps (and I hope someone else proofs this in case I've stated something incorrect :) Chris -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Chris Sutcliffe Sent: Saturday, June 03, 2006 9:08 AM To: wix-users@lists.sourceforge.net Subject: [WiX-users] subdirectories under INSTALLDIR Hey All, I'm new to WiX, so please forgive me if this is a stupid question, but I've searched the help file and the mailing list to no avail... I have my .wxs file setup so that the user can specify the INSTALLDIR (via WixUI_Mondo). I need to be able for force some files to be installed in specific directories under INSTALLDIR (i.e. the user cannot choose their location). Is this possible? If so, how do I go about doing it? Thanx! Chris -- Chris Sutcliffe http://ir0nh34d.blogspot.com http://emergedesktop.org _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users