/bundles/itninjaweb/img/Breadcrumb_cap_w.png
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   [ - ] Hide Comments

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
Answer this question or Comment on this question for clarity

Answers

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?
Answered 11/26/2008 by: VBScab
Red Belt

Please log in to comment
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.
Answered 11/26/2008 by: sanhivi
Third Degree Green Belt

Please log in to comment
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...
Answered 11/26/2008 by: VBScab
Red Belt

Please log in to comment
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\"
Answered 11/28/2008 by: dannyarya
Purple Belt

Please log in to comment