If you look in the SDK you will see that ROOTDRIVE means exactly the drive with the most space. If you want to install to a folder off the system drive you need a custom action e.g.
<Directory Id="TARGETDIR" Name="SourceDir"> <Directory Id="DATALOCATION" Name="My data folder" /> </Directory> <CustomAction Id="SetDataLocationDefault" Property="DATALOCATION" Value="[WindowsVolume]My data folder" /> <InstallExecuteSequence> <Custom Action="SetDataLocationDefault" After="CostInitialize" /> </InstallExecuteSequence> <InstallUISequence> <Custom Action="SetDataLocationDefault" After="CostInitialize" /> </InstallUISequence> This will normally set DATALOCATION to "C:\My data folder". Hope this helps. Neil -----Original Message----- From: Rafael Rivera [mailto:raf...@withinwindows.com] Sent: 24 June 2009 17:25 To: General discussion for Windows Installer XML toolset. Subject: [WiX-users] Taming ROOTDRIVE, Windows volume Howdy! With ROOTDRIVE behaving more like DRIVEWITHMOSTSPACE, what's the recommended approach to installing to the Windows volume? I noticed there is environmental variable support... $(.) is evaluated at compile time, !(.) at link... but what about at runtime? I found an old post suggesting the use of [%...] but this syntax doesn't appear to work (anymore?). An example would be immensely appreciated. - Rafael ------------------------------------------------------------------------ ------ _______________________________________________ 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