I have a WiX install package. I use the TARGETDIR property to do some stuff in my uninstall custom actions. The TARGETDIR used to work fine, but then I made a change (I don't remember which one), and now I always have TARGETDIR = "C:\" , while other folder path properties have correct values on uninstall. I don't set it anywhere in the code or in the WiX install file, so I think it got corrupt because I've added some new files or directories to the installation package. Note that on install the TARGETDIR property contains a correct value. Any ideas why the TARGETDIR property could get corrupt?
If the TARGETDIR directory has no files inside of it in the install package, then the property is evaluated incorrectly. It took an hour for me to figure it out. Creating install packages is very painful.