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 - New Free Runtime and 30 Day Trial > Check out the new simplified licensign option that enables unlimited > royalty-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 ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensign option that enables unlimited royalty-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