Does it make sense to have it otherwise, if other packages, say product add-ons maintain registry entries under your products 'Software\MyApp' they are indicating a dependency on your product, therefore if your product in uninstalled they are no longer functional anyway, if that's not the case and the package can be shared by multiple products it should use it's own key, it wouldn't be a good design choice to do otherwise.
If you really want to to this you could manage removal of keys manually, however to clean-up properly all other installers would have to be aware of the need to remove the base key (Software\MyApp) if it no longer has content, you wouldn't get a particularly clean solution and as such I would encourage you to review your design. hongping wrote: > > Hi, I am creating an installer and writing to the registry. Third-party > installers might also be writing to the same location as my installer for > sharing information. However, what I am seeing is that upon uninstall, > even keys written by other installers are removed, not just the ones my > installer installs. > > This is what I am trying out now: > <RegistryKey Root='HKLM' Key='Software\MyApp' > Action='createAndRemoveOnUninstall'> > <RegistryValue Action='write' Type='string' Name='MyRegistry' > Value='MyValue'/> > <RegistryKey Key='MyAppSub' Action='createAndRemoveOnUninstall'> > <RegistryValue Action='write' Type='string' Name='MySubRegistry' > Value='MyValue'/> > </RegistryKey> > </RegistryKey> > > Suppose another installer creates another key, say > "Software\MyApp\AnotherSubKey". When my installer uninstalls, the entire > node Software\MyApp gets removed. > > How do I make sure that upon uninstall, only the values that are written > by my installer get removed, and not those written by others? > > Thanks. > -- View this message in context: http://www.nabble.com/Uninstall-removes-registry-keys-not-written-by-installer-tp15567828p15578604.html Sent from the wix-users mailing list archive at Nabble.com. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users