Best Answer Stefan Krueger , 13 January 2014 - 15:49
Maybe this is your problem:
When a key is uninstalled, all of its subkeys are also uninstalled. Therefore, if you use RegDBCreateKeyEx to create a key or keys under a key that is already logged for uninstallation, the keys that you create will be uninstalled when the higher-level key is uninstalled. This behavior occurs regardless of whether logging is enabled when the installation creates your keys and regardless of the order in which the installation creates the keys.
(from the RegDBCreateKeyEx documentation)Go to the full post