Sorry, forgot to post the URL:
http://msdn.microsoft.com/en-us/library/aa372064.aspx.

On Sat, Apr 25, 2009 at 8:26 AM, Heath Stewart <clubs...@gmail.com> wrote:

> That's actually Windows Installer behavior. Windows Installer always sets
> TARGETDIR to the root of the fixed drive with the most free space. See <>.
>
> You should never install to TARGETDIR unless you schedule a type 51 custom
> action to set it always: <CustomAction Id="SetTARGETDIR"
> Property="TARGETDIR"
> Value="[ProgramFilesFolder][Manufacturer]\[ProductName]"/>. Schedule it
> before CostFinalize.
>
> Why you must always author this, ideally you always install your components
> into a fixed directory structure like so:
>
> <Directory Id="TARGETDIR" Name="SourceDir">
>   <Directory Id="ProgramFilesFolder" Name="Program Files">
>     <Directory Id="ManufacturerDir" Name="*manufacturer*">
>       <Directory Id="InstallDir" Name="*product name*">
>         <!-- insert components here -->
>       </Directory>
>     </Directory>
>   </Directory>
> </Directory>
>
>
> On Sat, Apr 25, 2009 at 12:59 AM, Riyaz Mogharabin 
> <moghara...@gmail.com>wrote:
>
>> Dear Friends,
>>
>> It seems that in WiX 3, the TARGETDIR is set to the local drive which has
>> the most free space on the system.
>> I need to hardcode this so the user will always see "C:\MyProgram\" as the
>> default install path.
>> For this, I've done the following:
>>
>>    <Property Id='TARGETDIR' Value='C:\'/>
>>
>> And this is working properly. Yet, there is a warning:
>>
>> Warning LGHT1076 : ICE48: Directory 'TARGETDIR' appears to be hardcoded in
>> the property table to a local drive.
>>
>> Does anybody has an idea if this is going to have any harm on my
>> installer?
>>
>> Regards,
>>
>> Riyaz
>>
>>
>> ------------------------------------------------------------------------------
>> Crystal Reports &#45; New Free Runtime and 30 Day Trial
>> Check out the new simplified licensign option that enables unlimited
>> royalty&#45;free distribution of the report engine for externally facing
>> server and web deployment.
>> http://p.sf.net/sfu/businessobjects
>> _______________________________________________
>> WiX-users mailing list
>> WiX-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/wix-users
>>
>
>
>
> --
> Heath Stewart
> Deployment Technologies Team, Microsoft
> http://blogs.msdn.com/heaths
>



-- 
Heath Stewart
Deployment Technologies Team, Microsoft
http://blogs.msdn.com/heaths
------------------------------------------------------------------------------
Crystal Reports &#45; New Free Runtime and 30 Day Trial
Check out the new simplified licensign option that enables unlimited
royalty&#45;free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to