This would place MyTool on the fixed drive with the largest free space at
the time of installation (see
http://blogs.msdn.com/heaths/archive/2007/07/12/installing-to-targetdir.aspx
).

Since http://msdn.microsoft.com/library/aa372817.aspx says to not use
WindowsVolume in the directory table, what you can do is add the following
to the Directory elements that Ilya suggests:

<SetProperty Id="TARGETDIR" Value="[WindowsVolume]" Before="AppSearch"/>

-----Original Message-----
From: Ilya [mailto:iser...@shtrih-m.ru] 
Sent: Monday, May 24, 2010 12:27 AM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Some beginner's questions about WIX

1. You can try code like this:

<Directory Id="TARGETDIR" Name="SourceDir" >
<Directory Id="INSTALL_LOCATION" Name="MyTool" FileSource="." >
             ....
</Directory>
</Directory>

<Property Id="WIXUI_INSTALLDIR" Value="INSTALL_LOCATION" />
<UIRef Id="WixUI_PaymentSystem" />

Actually I'm not sure whether this code will refer to MyTool on drive C: 
or on another drive.



------------------------------------------------------------------------------

_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to