Fatal registry modification

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
HackerTradition
Junior Member
Junior Member
Posts: 13
Joined: 2012-01-18, 10:37 UTC

Fatal registry modification

Post by *HackerTradition »

Several days ago, I wanted to replace Windows Explorer with TC, so I followed the instructions in the following thread:
http://ghisler.ch/board/viewtopic.php?t=8821

I pasted the following code into NotePad, save it, then changed the extension to .reg, and ran it using Registry Editor.

After I did this, when I double click a folder, it will neither open in TC nor in Windows Explorer...

So how can I restore my previous registry settings? Thanks a lot!



REGEDIT4

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{7007ACC7-3202-11D1-AAD2-00805FC1270E}\shell]
@=-
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{7007ACC7-3202-11D1-AAD2-00805FC1270E}\shell\open\command]
@="C:\\TOTALCMD\\TOTALCMD.EXE /O /S ::{7007ACC7-3202-11D1-AAD2-00805FC1270E}"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{BD84B380-8CA2-1069-AB1D-08000948F534}\shell]
@=-
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{BD84B380-8CA2-1069-AB1D-08000948F534}\shell\open\command]
@="C:\\TOTALCMD\\TOTALCMD.EXE /O /S ::{BD84B380-8CA2-1069-AB1D-08000948F534}"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{2227A280-3AEA-1069-A2DE-08002B30309D}\shell]
@=-
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{2227A280-3AEA-1069-A2DE-08002B30309D}\shell\open\command]
@="C:\\TOTALCMD\\TOTALCMD.EXE /O /S ::{2227A280-3AEA-1069-A2DE-08002B30309D}"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{21EC2020-3AEA-1069-A2DD-08002B30309D}\shell]
@=-
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{21EC2020-3AEA-1069-A2DD-08002B30309D}\shell\open\command]
@="C:\\TOTALCMD\\TOTALCMD.EXE /O /S ::{20D04FE0-3AEA-1069-A2D8-08002B30309D}\\::{21EC2020-3AEA-1069-A2DD-08002B30309D}"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell]
@=-
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\open\command]
@="C:\\TOTALCMD\\TOTALCMD.EXE /O /S ::{20D04FE0-3AEA-1069-A2D8-08002B30309D}"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{208D2C60-3AEA-1069-A2D7-08002B30309D}\shell]
@=-
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{208D2C60-3AEA-1069-A2D7-08002B30309D}\shell\open\command]
@="C:\\TOTALCMD\\TOTALCMD.EXE /O /S ::{208D2C60-3AEA-1069-A2D7-08002B30309D}"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{645FF040-5081-101B-9F08-00AA002F954E}\shell\open\command]
@="C:\\TOTALCMD\\TOTALCMD.EXE /O /S ::{645FF040-5081-101B-9F08-00AA002F954E}"
[HKEY_CLASSES_ROOT\Folder\shell\open\command]
@="C:\\TOTALCMD\\TOTALCMD.exe /T /S /L=\"%1\""
"DelegateExecute"=-
User avatar
Stance
Power Member
Power Member
Posts: 1079
Joined: 2005-03-29, 06:26 UTC

Post by *Stance »

It is absolutely necessary to say what operating system you are using.

http://www.ghisler.ch/board/viewtopic.php?p=239700#239700
HackerTradition wrote:I'm using TC 7.56a on Windows 7, and I want to replace Windows Explorer with TC [snip]
http://www.ghisler.ch/board/viewtopic.php?p=239756#239756
HackerTradition wrote:2. Oh yeah, I forgot to mention that I'm using TC UP (Ultima Prime), which does have the "Appearance menu"[snip]
HackerTradition wrote:Several days ago, I wanted to replace Windows Explorer with TC, so I followed the instructions in the following thread:
http://ghisler.ch/board/viewtopic.php?t=8821

I pasted the following code into NotePad, save it, then changed the extension to .reg, and ran it using Registry Editor.
No, you did not. You were using the heavy modified "Total Commander Ultima Prime" installation together with its extendend menu. You have been told here:
http://tcup.eu/forum/showthread.php?tid=1348
that this package only works for Windows XP and it is disabled in Windows 7.

Do you remember that you uploaded some pictures of it on your flicker account:
http://www.flickr.com/photos/74626162@N04/6719717997/in/photostream/
In this picture one can see a Menuitem [Appearance] with a feature: "Replace Windows Explorer" On / Off.

Even the appendix wasn't posted here in this forum:

Code: Select all

[HKEY_CLASSES_ROOT\Folder\shell\open\command] 
@="C:\\TOTALCMD\\TOTALCMD.exe /T /S /L="%1"" 
"DelegateExecute"=-
http://www.ghisler.ch/board/viewtopic.php?p=239925#239925
petermad wrote:Did you remember the first line:
REGEDIT4

Are you sure you used NotePad and not Wordpad?
http://en.wikipedia.org/wiki/Windows_Registry#.REG_files
.REG files (also known as Registration entries) are text-based human-readable files for exporting and importing portions of the registry. On Windows 2000 and later NT-based operating systems, they contain the string Windows Registry Editor Version 5.00 at the beginning and are Unicode-based. On Windows 9x and NT 4.0 systems, they contain the string REGEDIT4 and are ANSI-based.
The point is not to use "REGEDIT4" but the string above.

HackerTradition wrote:So how can I restore my previous registry settings?"
The code quoted above was changing these folders from standard to Total Commander:
Fonts
{BD84B380-8CA2-1069-AB1D-08000948F534}

Printers
{2227A280-3AEA-1069-A2DE-08002B30309D}

Control Panel
{21EC2020-3AEA-1069-A2DD-08002B30309D}

My Computer
{20D04FE0-3AEA-1069-A2D8-08002B30309D}

Network Favorites (-connections)
{208D2C60-3AEA-1069-A2D7-08002B30309D}

Recycle Bin
{645FF040-5081-101B-9F08-00AA002F954E}
It is an good old hacker tradition to create a backup first, before you edit the win-registry.
All you have to do is to reverse your changings and the problem is solved. The jokes are on you now. :P

Have you tried to use the other System-Recoveries from Win7 like "restoring points"?
Sometimes new installations like Games or grafic-drivers creates backups.
Probably you can fall back to one of these ? And remember to have a backup of your documents before you do so.

Do you have a Original Win-CD/DVD? Whenever you boot-up with a Win-Setup-Disc, and the setup-routine finds an existing version, you will be promted to repair the existing installation. You can use any DVD (from a buddy, you can even burn a iso-file) with your win-version. OEM-Version: You may find the license number on a sticker on your computer.

Even when you re-install the Win7 it will be better than to edit the registry manually again.

Edit: Typo
Last edited by Stance on 2012-02-05, 13:54 UTC, edited 1 time in total.
User avatar
petermad
Power Member
Power Member
Posts: 16157
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

The point is not to use "REGEDIT4" but the string above.
Only if the file is truely Unicode. Since the content in the first post does not contain non-ANSI characters it is unlikely that Notepad would save as Unicode by default, and then it is safer to use REGEDIT4 in stead of "Windows Registry Editor Version 5.00". REGEDIT4 is also supported by newer Windows versions.
License #524 (1994)
Danish Total Commander Translator
TC 11.55rc4 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1393a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
Stance
Power Member
Power Member
Posts: 1079
Joined: 2005-03-29, 06:26 UTC

Post by *Stance »

Thx petermad
Windows Versions may differ, times brings changes, my AntiVir will probably react different than others, win-right-management will surly begging (global changes or per-user) and some older software will run in a "compatibility modus". That's why I have posted the Link to the Wikipedia. But the code for the Reg-file for WinXP in this forum was never in question:

http://tcup.eu/forum/showthread.php?tid=1348&pid=4579#pid4579
Pawel (Moderator)

RE: Help!: Problem when trying to replace Windows Explorer

It is disabled in Windows 7. TC UP menu should not have this entries (but still has...).
It only works for Windows XP.
Dont try to click on that bat files on Windows 7, if you find them.
-Pawel
I assume, the unofficial Total Commander Ultima Prime - Power Pack is using a BAT-File to switch the Explorer-Replacement on and off.
I guess, thats is what HackerTradition had done: Searching this BAT-File in the Tcup-Installation and executed it.

Because I don't know the content of that batch-file I don't like to do support here in the official forums.

The content of that .bat-file used to be posted in the unofficial TC UP - Forum but not here.

HackerTradition
If there is any chance, use standard methods like Registry-backups, restoring points, boot with a Windows-Setup-DVD and follow the instructions, or re-install your Windows. Safe your documents before you do so.

And do not leave your threads alone...
HackerTradition
Junior Member
Junior Member
Posts: 13
Joined: 2012-01-18, 10:37 UTC

Post by *HackerTradition »

Stance wrote:Thx petermad

HackerTradition
If there is any chance, use standard methods like Registry-backups, restoring points, boot with a Windows-Setup-DVD and follow the instructions, or re-install your Windows. Safe your documents before you do so.

And do not leave your threads alone...
Very sorry for late reply!

Sadly, I have neither previous registry backup nor "system restoring point" available.

I booted from Windows 7 setup DVD, but there was only an option for fixing system-startup problems, no tool for repairing the registry.

Can you please tell me a way to manully fix my registry? After all, the change of the registry is not big, and the code which was responsible for the change is known. I'm really unfamiliar with the registry... Can you help me with that? Thanks a lot!
paraglider
Junior Member
Junior Member
Posts: 18
Joined: 2009-05-07, 11:46 UTC

Post by *paraglider »

First try just resetting the folder settings:

Code: Select all

REGEDIT4

[HKEY_CLASSES_ROOT\Folder\shell\open\command]
"DelegateExecute"="{11dbb47c-a525-400b-9e80-a54615a090c0}"
@=hex(2):25,53,79,73,74,65,6d,52,6f,6f,74,25,5c,45,78,70,6c,6f,72,65,72,2e,65,\
  78,65,00
Check in regedit after applying that
(Default)=%SystemRoot%\Explorer.exe
Last edited by paraglider on 2012-02-06, 13:21 UTC, edited 1 time in total.
paraglider
Junior Member
Junior Member
Posts: 18
Joined: 2009-05-07, 11:46 UTC

Post by *paraglider »

If that does not work then delete the open commands:

Code: Select all

REGEDIT4

[-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{7007ACC7-3202-11D1-AAD2-00805FC1270E}\shell\open]

[-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{BD84B380-8CA2-1069-AB1D-08000948F534}\shell\open]

[-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{2227A280-3AEA-1069-A2DE-08002B30309D}\shell\open]

[-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{21EC2020-3AEA-1069-A2DD-08002B30309D}\shell\open]

[-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\open]

[-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{208D2C60-3AEA-1069-A2D7-08002B30309D}\shell\open]

[-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{645FF040-5081-101B-9F08-00AA002F954E}\shell\open]

HackerTradition
Junior Member
Junior Member
Posts: 13
Joined: 2012-01-18, 10:37 UTC

Works like charm!

Post by *HackerTradition »

paraglider wrote:First try just resetting the folder settings:

Code: Select all

REGEDIT4

[HKEY_CLASSES_ROOT\Folder\shell\open\command]
"DelegateExecute"="{11dbb47c-a525-400b-9e80-a54615a090c0}"
@=hex(2):25,53,79,73,74,65,6d,52,6f,6f,74,25,5c,45,78,70,6c,6f,72,65,72,2e,65,\
  78,65,00
Check in regedit after applying that
(Default)=%SystemRoot%\Explorer.exe
Thank you very much paraglider! Windows Explorer revived - when i double clicked a folder, I was incredibly surprised that it opened up!

Thank you so much!


8)
HackerTradition
Junior Member
Junior Member
Posts: 13
Joined: 2012-01-18, 10:37 UTC

Post by *HackerTradition »

paraglider wrote:If that does not work then delete the open commands:

Code: Select all

REGEDIT4

[-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{7007ACC7-3202-11D1-AAD2-00805FC1270E}\shell\open]

[-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{BD84B380-8CA2-1069-AB1D-08000948F534}\shell\open]

[-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{2227A280-3AEA-1069-A2DE-08002B30309D}\shell\open]

[-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{21EC2020-3AEA-1069-A2DD-08002B30309D}\shell\open]

[-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\open]

[-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{208D2C60-3AEA-1069-A2D7-08002B30309D}\shell\open]

[-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{645FF040-5081-101B-9F08-00AA002F954E}\shell\open]

I didn't try this since the solution in your last post worked perfectly.
Thank you very much, you made my day, man!
HackerTradition
Junior Member
Junior Member
Posts: 13
Joined: 2012-01-18, 10:37 UTC

Post by *HackerTradition »

HackerTradition
If there is any chance, use standard methods like Registry-backups, restoring points, boot with a Windows-Setup-DVD and follow the instructions, or re-install your Windows. Safe your documents before you do so.

And do not leave your threads alone...
Problem solved at last!

Danke große ihr Helfe! (Oh sorry my german sucks...^^)
Post Reply