inf / bat file to remove a registry

Associate
Joined
29 Dec 2007
Posts
1,296
Location
Birmingham
Hi guys,

I don't do any coding at all but I figured this is the best place to ask for a bit of help on this subject.

I want a simple program to delete a registry key "HKEY_CURRENT_USER\Software\Classes\Software\Microsoft\XLive" is the location and the value name is called "ConnectionOverride"

Code:
[version]
signature = "$CHICAGO$"

[DefaultInstall]
DelReg = NoParasites

[NoParasites]
HKCU,"Software\Classes\Software\Microsoft\Run","ConnectionOverride"

I got told to make that into a .inf file and install but that doesn't seem to work. (I found a template that somebody had made to delete a different registry).

n6nnp.jpg


In case I missed anything ^ that's the registry I want to remove.

Thanks
 
You could just base it off the ones which come with TeknoGods ;).

Code:
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Classes\Software\Microsoft\XLive]
"ConnectionOverride"=""

Maybe?
 
A simple registry key import can delete the file, create a reg file with the following infor...

"
Windows Registry Editor Version 5.00

[-HKEY_CURRENT_USER\Software\Classes\Software\Micro soft\XLive]

"

Now create a .bat file to call the .reg, or just merge the .reg and jobs a good 'un :)

Note: this will Delete the Entrie key and Sub keys, you can target the specific key if required.
 
Last edited:
You could just base it off the ones which come with TeknoGods ;).

Code:
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Classes\Software\Microsoft\XLive]
"ConnectionOverride"=""

Maybe?

The one that comes with teknogods? Where is this, I can't seem to find it?

A simple registry key import can delete the file, create a reg file with the following infor...

"
Windows Registry Editor Version 5.00

[-HKEY_CURRENT_USER\Software\Classes\Software\Micro soft\XLive]

"

Now create a .bat file to call the .reg, or just merge the .reg and jobs a good 'un :)

Note: this will Delete the Entrie key and Sub keys, you can target the specific key if required.

I don't know how to add a subkey to what you wrote there, where would I add it?

As I said, I've never done any coding (very little VB in college a few years ago, but I've forgot all of that).

Cheers for the replies :)
 
Copy the below into a notepad, then save as a .reg...

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Classes\Microsoft\XLive]
"ConnectionOverride"=""

Make sure to Backup the registry First...
This will set the key to Blank!
 
That didn't remove the registry, it's still there.

Any other ideas?

Thanks

EDIT: It worked, but it took out "HKEY_CURRENT_USER\Software\Classes\Software\Microsoft\XLive"
 
Thats why I said to Backup the reg first... hopefully you did so...

I had corrected the above so it would not delete the entire key set, but you must have copied it before i could Ninja edit... sorry, did you backup the reg first?
 
Nope, oh well, a re-install should be able to sort it out I guess.

Windows Registry Editor Version 5.00

[-HKEY_CURRENT_USER\Software\Classes\Software\Microsoft\XLive]
"ConnectionOverride"=""

That's all that's in the registry file I made, it still managed to delete the whole thing :P
 
Yeah, the "[-HKEY" tells the .reg key to Delete the entire key and sub keys, thats why I then Edited it to remove the "-", so instead of deleting the key, it would simply Overwright it with the new value...
 
Ah alright then, well I've got the registry back now.

I'll try it without the - in this time :)

Cheers

EDIT - When you say it overrides it, what does it do, change it to a value that it doesn't understand or something? I ran the .reg this time and it's not visually done anything different. I need the actual subkey deleted, is this not possible without taking out the whole key?
 
Last edited:
Code:
Dim objShell
 
Set objShell = CreateObject("WScript.Shell")
strPath = "HKEY_CURRENT_USER\Software\Classes\Software\Micro soft\XLive\"
strValue = "ConnectionOverride"
objShell.RegDelete strKeyPath & strValue
 
Set objShell = Nothing

Pop that in a text file and save it as RegValDelete.vbs and run it.
 
Cheers for the replies but I've worked it out, it seems very simple after I looked at a it.

Code:
reg delete HKCU\Software\Classes\Software\Microsoft\Xlive /v ConnectionOverride

In a bat file and bang, it's gone.

Cheers for all the replies though :)
 
Back
Top Bottom