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.
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)
Please log in to answer
Posted by:
anonymous_9363
16 years ago
Posted by:
sanhivi
16 years ago
Posted by:
anonymous_9363
16 years ago
ORIGINAL: sanhiviYou 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)
i am doing this uninstallation in admin account so it has all the privileges.
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
16 years ago
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\"
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.
so that the conversation will remain readable.