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.
Answers (3)
What do you mean "HKCU is overwriting HKLM"?
Have you tried running manually the msi to see if it works as intended before placing in Active Setup? You can also log the msi temporarily for troubleshooting purpose.
Comments:
-
whatever was the registry entries for the previous install of the application, it remains the same, though it should change for my patch as it puts new regsitry entries...this means it is taking old entries from HKCU...no manually also not deleting...it only works with script - deepali 10 years ago
-
If manual install doesn't work then Active setup also doesn't. You would have to fix the msi first or you can also use your vb script in Active setup. Just ensure that it tries to update only hkcu entries. It could also be that your original package to update hklm entries doesn't run properly on few systems you're having problem with. - SnowLyric 10 years ago
-
I came to know that "Prevent access to registry editing tools policy" is set for the users.I came to know that the wxp version of regedt.exe does not
check the policy settings so it works for XP machines.However, in Vista, it checkes this policy and as editing is disabled, my msi fails.
But the script to delete HKCU entries from the registry is running fine.
If registry is disabled, how is my script able to do it. - deepali 10 years ago-
That's interesting. What command does the script use to modify registry? - SnowLyric 10 years ago
How did you call the VBScript in Active Setup. You have to use the commad: wscript.exe script.vbs or csript.exe script.vbs.
Comments:
-
yes...i Did the same and it is working...but my question was how is it working with vb script and not if i directly write the delete command in StubPath...i think Piyush answerd my question :) - deepali 10 years ago