/build/static/layout/Breadcrumb_cap_w.png

Script needed to delete registry key value

I have 3 registry keys. I want to delete these 3 registry keys. I have written one script to delete these 3 registry keys. Manually it is working fine for me. But after adding this script in my package it is not working.
My registry keys are
HKCR\ * \ shellex \ contextmenuhandler \ ultra edit
HKCR\ Clsid \ {0000002F-0000-0000-C000-000000000046}
HKCR\ Clsid \ {0000002F-0000-0000-C000-000000034344}
Above first two keys are there in my package. I tried by putting *(Created empty key during install and remove during uninstall), - (Remove sub keys during uninstall) in the registry. But still it is not removing. I have written script to delete these registry keys. I kept this script in both Execute Immediate and Execute Differ mode. But still it is not removing.
Can any body help on this.

0 Comments   [ + ] Show comments

Answers (4)

Posted by: anonymous_9363 15 years ago
Red Belt
1
If using the Registry table hasn't worked, I think it's unlikely that a script would work, either. I suspect the account you're using at install time doesn't have sufficient privileges to delete the keys.

What does a verbose log show you? Or ProcMon?
Posted by: sanhivi 15 years ago
Third Degree Green Belt
1
Thank u for your reply. I want to delete these registries during uninstallation and i am doing this uninstallation in admin account so it has all the privileges.But still they are not getting deleted.
Posted by: anonymous_9363 15 years ago
Red Belt
1
ORIGINAL: sanhivi
i am doing this uninstallation in admin account so it has all the privileges.
You would *hope* that to be the case but it isn't unknown for vendor installs to walk all over ACLs (Adobe Acrobat Pro v8, anyone? LOL...what a mess)

Have you *looked* to see what permissions are present on those keys? What does a process/file/registry monitor show you when the uninstall is executing? I'm willing to bet you're getting 'ACCESS DENIED' errors...
Posted by: dannyarya 15 years ago
Senior Purple Belt
1
Hi,

If you are using right script then it should work......
Did you delete the registry key from down to up.....for example
if i want to delete a key like "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\AcroExch.Document\Shell\Open\Command\"
then I'll use this lines in my script.......

Dim WshShell
Set WshShell = CreateObject("WScript.Shell")
WshShell.RegDelete "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\AcroExch.Document\Shell\Open\Command\"
WshShell.RegDelete "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\AcroExch.Document\Shell\Open\"
WshShell.RegDelete "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\AcroExch.Document\Shell\"
WshShell.RegDelete "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\AcroExch.Document\"
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ