If you wish to have the option of setting WINDOWSVOLUME yourself (via the command-line or elsewhere) make just one small change to the below:
<SetProperty Id="WINDOWSVOLUME" Value="[WindowsVolume]" Before="CostInitialize">NOT WINDOWSVOLUME</SetProperty> -----Original Message----- From: Blair [mailto:os...@live.com] Sent: Wednesday, October 28, 2009 8:24 AM To: 'General discussion for Windows Installer XML toolset.' Subject: Re: [WiX-users] TARGETDIR <SetProperty Id="WINDOWSVOLUME" Value="[WindowsVolume]" Before="CostInitialize"/> <Directory Id="TARGETDIR" Name="SourceDir"> <Directory Id="WINDOWSVOLUME" Name="WinVol"> <Directory Id="INETPUB" Name="Inetpub"> <Directory Id="WEBDIR" Name="wwwroot"> <Directory Id="Web1Dir" Name="Web1" /> <Directory Id="Web2Dir" Name="Web2" /> <Directory Id="Web3Dir" Name="Web3" /> </Directory> </Directory> </Directory> <Directory Id="ProgramFilesFolder" Name="PFiles"> <Directory Id="INSTALLDIR" Name="CompanyName"> <Directory Id="ProgApp1Dir" Name="ProgApp1" /> <Directory Id="ProgApp2Dir" Name="ProgApp2" /> </Directory> </Directory> </Directory> -----Original Message----- From: Lough, Norman [mailto:norman.lo...@imass.co.uk] Sent: Wednesday, October 28, 2009 7:32 AM To: wix-users@lists.sourceforge.net Subject: [WiX-users] TARGETDIR <Directory Id="TARGETDIR" Name="SourceDir"> <Directory Id="INETPUB" Name="Inetpub"> <Directory Id="WEBDIR" Name="wwwroot"> <Directory Id="Web1Dir" Name="Web1" /> <Directory Id="Web2Dir" Name="Web2" /> <Directory Id="Web3Dir" Name="Web3" /> </Directory> </Directory> <Directory Id="ProgramFilesFolder" Name="PFiles"> <Directory Id="INSTALLDIR" Name="CompanyName"> <Directory Id="ProgApp1Dir" Name="ProgApp1" /> <Directory Id="ProgApp2Dir" Name="ProgApp2" /> </Directory> </Directory> </Directory> I've used the above folder structure - the installer was used and it appears that on one particular machine web directories appeared under the D drive and the progApp directories appeared under the C drive. Having looked into it I found the following on the web at http://blogs.msdn.com/heaths/archive/2007/07/12/installing-to-targetdir. aspx When TARGETDIR is not set, however, Windows Installer sets TARGETDIR to ROOTDRIVE <http://msdn2.microsoft.com/library/aa371372.aspx> , which is set to fixed drive with the most free space available. This may not be the drive where other files are installed, likely resulting in incorrect application behavior I simply wanted to install both (INETPUB and Program Files) under the default drive for the machine. Any suggestions? Norman Lough Developer Tel: +44 (0)191 213 5555 DDI: +44 (0)191 2028360 Email: norman.lo...@imass.co.uk Imass Ltd, Northumbria House, Regent Centre, Gosforth, Newcastle upon Tyne, NE3 3PX. http://www.imass.co.uk <http://www.imass.co.uk/> Imass Limited is an Infoterra company, part of EADS Astrium Registered in England and Wales No. 2379476 - Disclaimer - The information contained in this e-mail and its attachments is confidential and intended only for the use of the individual or entity named above. If you are not the intended recipient, please do not read, copy, use or disclose this message or its attachments. If you have received this message in error, please notify the sender immediately and delete or destroy all copies of this message and attachments in all media. Any views expressed in this e-mail that do not relate to Imass' official business may not reflect the views of the company. ---------------------------------------------------------------------------- -- 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