E: has the largest amount of free space, so as a result the ROOTDRIVE property is set to that drive (since you likely didn't set that property). Since TARGETDIR uses ROOTDRIVE for its default (since you likely didn't set that either) and TARGETDIR is the "top-most" directory in the directory tree, all directories under TARGETDIR that aren't under a "predefined" directory (or some other path you assign directly) will use that volume.
>From the first paragraph of this blog post by Heath (http://blogs.msdn.com/heaths/archive/2010/02/26/testing-for-components-that -install-under-targetdir.aspx): "A while back I explained how Windows Installer sets the TARGETDIR property to the root of the fixed drive with the most free space available. The problem is that even an attached USB external drive can appear as a fixed drive, and these may be later detached. If components are installed to that drive and the drive is detached, repairing, patching, or even uninstalling the product may fail because the components are not available and cannot be updated or removed. This is also one potential reason Windows Installer may trigger a repair after a failed resiliency check." It is recommended that no components use TARGETDIR or ROOTDRIVE directly (unless that is really what you are trying to do) and that all "subdirectories" of TARGETDIR are either well-known directories (such as program files) or are directories you supply paths to via AppSearch/RegistrySearch/etc. or similar custom action or a required bootstrapper. -----Original Message----- From: Lisa Gracias [mailto:lisathelugubri...@gmail.com] Sent: Monday, March 08, 2010 2:29 AM To: General discussion for Windows Installer XML toolset. Subject: [WiX-users] disk cost dialog My msi's disk cost dialog always says that space is required in E: drive, even though my Windows drive is C: and the destination folder is set to C:\Program Files. Any idea why this might be? I'm on Windows 7 Enterprise, if that helps. Here's a screenshot: http://i45.tinypic.com/2je205j.jpg I'm using the standard volume list control: <Control Id="VolumeList" Type="VolumeCostList" X="20" Y="100" Width="430" Height="120" Sunken="yes" Fixed="yes" Remote="yes" Text="!(loc.DiskCostDlgVolumeList)" /> ---------------------------------------------------------------------------- -- Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users