If you don't set TARGETDIR it defaults to the root of the system drive. You should set TARGETDIR, possibly using a CustomAction to derive it from other properties (e.g. it is common to use [ProgramFilesFolder]). If you do this it is common to condition the custom action on TARGETDIR="", so that if TARGETDIR has already been set on the msiexec command line, your custom action does not override it.
IIRC you should set TARGETDIR before costing. I would recommend that you don't specify a fixed drive letter as the user may have configured C: to be a very small boot partition - there may not be enough space to install there. Your program should be able to cope with being installed anywhere. -- Mike Dimmick -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Brandon Tyler Sent: 13 November 2006 21:30 To: wix-users@lists.sourceforge.net Subject: [WiX-users] Default System Drive and Directory We would like to specify the default directory and drive. Example: <Directory Id='TARGETDIR' Name='SourceDir'> <Directory Id='COMPANY' Name='Company'> </Directory> </Directory> Problem is sometimes it installs to different drives on different computers: C:\Company sometimes it installs to: D:\Company or E:\Company How do I set this up to always have the default be C:\Company ? ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users