Skip to content
⌘ NSIS Forum Archive

Delete a few Registry Keys with the shortest command line possible for 64bit PCs

9 posts

meoit#

Delete a few Registry Keys with the shortest command line possible for 64bit PCs

I need to delete some Keys in the registry, but don't know how to use short and efficient command line for 64bit computer.
The keys I need to delete are as follows:
.

HKEY_CLASSES_ROOT\AppID\ABCD.exe\
HKEY_CLASSES_ROOT\WOW6432Node\AppID\ABCD.exe\
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\AppID\ABCD.exe\
HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Classes\AppID\ABCD.exe\

HKEY_CLASSES_ROOT\CLSID{88888888-8888-8888-ABCD-EA42D66AF0BF}\
HKEY_CLASSES_ROOT\WOW6432Node\CLSID{88888888-8888-8888-ABCD-EA42D66AF0BF}\
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID{88888888-8888-8888-ABCD-EA42D66AF0BF}\
HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Classes\CLSID{88888888-8888-8888-ABCD-EA42D66AF0BF}\

HKEY_CLASSES_ROOT\Interface{77777777-8888-8888-ABCD-EA42D66AF0BF}\
HKEY_CLASSES_ROOT\WOW6432Node\Interface{77777777-8888-8888-ABCD-EA42D66AF0BF}\
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Interface{77777777-8888-8888-ABCD-EA42D66AF0BF}\
HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Classes\Interface{77777777-8888-8888-ABCD-EA42D66AF0BF}\​
Do I have to use SetRegView or SHELL_CONTEXT for the shortest command ?

Please help me.
Thanks.​
Anders#
RequestExecutionLevel Admin
Function RegDeleteMyStuff
RegDeleteKey HKLM "Software\Classes\AppID\ABCD.exe​"
RegDeleteKey HKLM "Software\Classes\CLSID​\{88888888-8888-8888-ABCD-EA42D66AF0BF}​"
RegDeleteKey HKLM "Software\Classes\Interface\{77777777-8888-8888-ABCD-EA42D66AF0BF}​"​
FunctionEnd
Section
SetRegView 64​
Call RegDeleteMyStuff
SetRegView 32
Call RegDeleteMyStuff
SectionEnd 
meoit#
Originally Posted by Anders View Post
RequestExecutionLevel Admin
... 
Thanks you.
I don't see your description for CLSID
meoit#
Originally Posted by Anders View Post
A typo, fixed it.
Did you get that damn covid vaccine? This is a potion manipulated by bigpharma. They destroy nerve cells and prevent blood from circulating. Over the past 1 year, have you noticed a decline in your brain memory?.
Anders#
Maybe you can provide the real names of the keys you want to delete?

Use Process Monitor to see why it fails. If you get some kind of access denied error then you need to change the ACL before you can delete (The AccessControl plug-in).
meoit#
Originally Posted by Anders View Post
Maybe you can provide the real names of the keys you want to delete?

Use Process Monitor to see why it fails. If you get some kind of access denied error then you need to change the ACL before you can delete (The AccessControl plug-in).
I am switch to nsExec:Exec 'reg delete ....' . It's working fine 🙂

Thank you Anders .