cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Remove Registry Key

I am trying to remove HKLM\Software\Oracle prior to the installation of my new Oracle Client (Clean-up for a bad ZenWorks script).

I tried the RemoveRegisty Table with no luck.
RemoveRegistry = RemoveRegistry1
Root = 2
Key = SOFTWARE\Oracle
Name =
Compontent = AllOtherFiles


I also tried a VBS Custom Action. But I keep getting a 1702 error.
Dim WshShell
Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.RegDelete "HKLM\Software\ORACLE\"


Anybody got an idea on this one???
(3) Replies
😞 Figured it out finally. Stared at the stinkin help file for an hour before it finally got through my thick skull.

Incase anyone else spends a great deal of time with this one here is the solution.

RemoveRegistry = RemoveRegistry1
Root = 2
Key = SOFTWARE\Oracle
Name = - :rolleyes:
Component = AllOtherFiles
no WScript.

the script runs in the context of MSIs space not the WSH or other environments

Your default object is the Session object

looeee
In fact, for using wscript.shell, you must use the command

Set WshShell = CreateObject("WScript.Shell")

instead of

Set WshShell = WScript.CreateObject("WScript.Shell")

You cannot use the Wscript. ...

Like that It works perfectly...


Dim WshShell
Set WshShell = CreateObject("WScript.Shell")
WshShell.RegDelete "HKLM\Software\ORACLE\"