Off the top of my head, so no guarantees given ... You could do it if you were prepared to pass (or write a program to pass) public directory properties on the command line. Something like this:
<Directory Id="TARGETDIR" Name="SourceDir"> <Directory Id="ProgramFilesFolder"> <Directory Id="INSTALLDIR" Name="ApplicationX"> <Directory Id="LEVEL1" Name="SomeSubDir"> <Directory Id="LEVEL2" Name="MmmmSubs"> And then pass the same directory path in the INSTALLDIR, LEVEL1 and LEVEL2 properties. You'd have to be careful you don't have the same components or resources occurring at multiple levels or you'd get files overwriting each other and uninstall problems. -----Original Message----- From: Brad Lemings [mailto:b...@rebit.com] Sent: 05 July 2011 17:32 To: General discussion for Windows Installer XML toolset. Subject: [WiX-users] Install Directory Structures Hi, I was wondering if there were techniques, methods for accommodating both single-level and multi-level install directory structures using the same set of Wix XML source files? If I'm not mistaken, the directory structure is currently reflected directly in the XML code. Example: <Directory Id="CompanyInstallDir" Name="MyCompany" ... > <Directory Id="ProductInstallDir" Name= "MyProduct" ...> <!-- features, components, etc... --> </Directory> </Directory> Thanks, Eric. ----------------------------------------------------------------------------- - All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2d-c2 _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users SDL PLC confidential, all rights reserved. If you are not the intended recipient of this mail SDL requests and requires that you delete it without acting upon or copying any of its contents, and we further request that you advise us. SDL PLC is a public limited company registered in England and Wales. Registered number: 02675207. Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire SL6 7DY, UK. ------------------------------------------------------------------------------ All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2d-c2 _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users