HKCU overwrites HKLM
Hi..i created an update for alreday existing package.This update is just few registry entries pointing to new server location.
My package works fine but in few systems, HKCU entries are overwriting HKLM entries, so users do not see updated registries.They
still see the old server entry in registries.I do not understand why HKCU is overwriting HKLM.
Another thing is I created active setup to delete HKCU\Software\(MyApplication) entries from the registry.Active setup does run but
it does not delete the HKCU entries.However, when I do it using vb script it works.Is there any reason why it works with VB Script and why not with the msi.
Community Chosen Answer
HKCU always take presidence over HKLM because it is a users choice over machine choice in customization.
VBScript gets the details of the user through shell while the active setup is run and others do not. So VBScript always works.