Mike Dimmick wrote:

Also, I still fail to understand why people use their own INSTALLDIR property rather than using TARGETDIR properly -- setting it to a location under ProgramFilesFolder, for example. I've just observed that if you don't do anything to the contrary, ROOTDRIVE is initialised to the /local disk with the most free space/ and TARGETDIR is initialised to ROOTDRIVE. It seems a much better idea to place your files directly in TARGETDIR and use a type 51 custom action to set TARGETDIR to [ProgramFilesFolder]\MyProductNameHere, if TARGETDIR is not already set.


TARGETDIR is the top of the hierarchy so if you want to avoid a type-51 CA and still have a default under ProgramFilesFolder, INSTALLDIR (or some such) is the next-best way. It also comes in handy (i.e., is required) if you want to take advantage of WiX v3's "predictable GUIDs" feature.

--
sig://boB
http://joyofsetup.com/

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to