I have created two MSIs(mypkg1.0.0 & mypkg2.0.0) with different product codes and versions. The two MSIs are creating below registry entries respectively during installation. The component codes of two MSIs which are creating registry keys are same.
mypkg1.0.0
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\{companyname}\1.0
mypkg2.0.0
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\{companyname}\2.0
I have installed two MSIs successfully and above registry entries got created. If I uninstall any of the two installed MSIs , the respective registry key is not getting removed. The registry key is getting removed only for the last uninstalled MSI.
Scenario: 1
mypkg2.0.0 uninstall, HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node{companyname}\2.0 => Not removed
mypkg1.0.0 uninstall, HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node{companyname}\1.0 => Removed
Scenario: 2
mypkg1.0.0 uninstall, HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node{companyname}\1.0 => Not removed
mypkg2.0.0 uninstall, HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node{companyname}\2.0 => Removed
Why the registry key is not removed if two packages are installed. Do we need to change the component code though product code and version are different?
Edited by reddygopu, 05 February 2016 - 11:08.