Scott, Is your product using conditional Features? One way that components can get "orphaned" is if they belong to a Feature whose Level is 0 at time of uninstall. Usually this happens when the intent is to install the feature only if a certain prerequisite software is present, and if the prerequisite is uninstalled before the product. I've found it's best to follow this pattern:
<Feature ... Level="0"> <Condition Level="1"><![CDATA[REMOVE OR (...My Condition...)]]></Condition> ... </Feature> The "orphaning" happens if you forget to include the "REMOVE OR " part. (There are other alternatives that involve checking whether the feature is currently installed, but this is the simplest way.) Otherwise, it's possible that the Component GUID-based reference counts are out of whack, which could happen from "orphaning" in the past. It looks like this tracking might be stored in the following registry path, but I definitely would not advise editing or deleting anything unless you really know what you are doing and have made a full system backup first: HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\{YourSID}\Components\ And I think the keys under this are encoded in a way that is not as simple as just removing the braces and dashes from the GUID, so I would suggest searching for the target path instead. Then you'll at least know whether leftover reference counts are the problem. Just make sure that they don't legitimately belong to another product that is installed. =) Regards, Mike Scott Moyer wrote > I do not see anything suspect in the install log. > > Components that get removed say 'Action: Absent' in the uninstall log. > > Components not getting removed have 'Action: Null' in the uninstall log. > > > Also Registry entries are not being removed ('Action: Null'), even when > using > <RegistryKey ... ForceDeleteOnUninstall="yes"> > > SharedDllRefCounts are all 0. > > I am using Guid="*" for all components. > > I am using the same model/code for all files so why some files getting > removed and some not? The files not getting removed are exes and dlls. > > > I am running as Administrator. > > What could be making it so some files and all registry entries do not get > removed on uninstall? > > > Could there be some sort of registration stuck from a prior install? If so > how do I remove that? > > Thanks. -- View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Some-but-not-all-files-being-removed-on-uninstall-tp7593743p7593777.html Sent from the wix-users mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. Written by three acclaimed leaders in the field, this first edition is now available. Download your free book today! http://p.sf.net/sfu/13534_NeoTech _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users