Colin Fox wrote: > But TARGETDIR and SourceDir are not explained. There is no explanation as to > where they are initially set, or why the ID of the directory is "TARGETDIR" >
Because that's what MSI needs, for better or for worse. In general, WiX is not an abstraction on top of MSI, so its rules for directories, for example, need to be followed. The MSI SDK describes the need for a top-level TARGETDIR/SourceDir pair. See also http://blogs.msdn.com/robmen/archive/2005/06/21/431294.aspx for the start of Rob's series about directories. > Can anyone explain this, or show how you would install files into a location > specified by a registry entry? > The WiX setup does that, for Visual Studio templates. It uses PropertyRef to pull in the templates directory registry search from WixVSExtension, then creates directories using that property: <Directory Id="VS90_ITEMTEMPLATES_DIR"> <Directory Id="VsItemTemplatesWixDir$(var.VsVersion2008)" Name="WiX" /> </Directory> -- sig://boB http://joyofsetup.com/ ------------------------------------------------------------------------------ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users