Default registry settings needed for Notepad in HKCR

Discussion in 'Windows 7 Help and Support' started by Exp HP, Jan 10, 2010.

  1. Exp HP

    Exp HP New Member

    Jan 9, 2010
    Likes Received:
    (Resolved) Default registry settings needed for Notepad in HKCR

    I was using a program called Default Programs Editor to associate some files and give them some custom icons I made, but one of them in specific (.BIN files) didn't work out too well. Well, all the changes I made to .BIN files are working (as in, the icon shows and they can be opened in XVI32), but at the expense of Notepad.

    It's the strangest thing ever. Let me be clear: Notepad works fine. And all files associated with it (like .txt) still open in Notepad. The problem is something else: It is no longer possible to open an unrecognized file type in Notepad because Notepad has disappeared from the Open with... dialog. I can't even add it via the Browse dialog; when I browse to system32 and choose the file notepad.exe, the item that gets added to the list is XVI32. If you don't understand, I'll whip up a few screenshots to show.

    Upon further investigation, I found that the .bin extention was associated with a filetype called "Applications\Notepad". And guess what? There is a key of the same name, "HKEY_CLASSES_ROOT\Applications\Notepad.exe", and DPE seems to have made my changes to BIN files there. For reference purposes, here's a reg file of that key.

    Windows Registry Editor Version 5.00
        ;(FriendlyTypeName is "Binary File")
    @="\"C:\\Old Computer\\Old Shared Folder\\icons\\bin.ico\" -1"
    @="Edit hex"
       ;(MuiVerb is "Edit hex")
    @="\"C:\\Downloaded Software\\XVI32\\XVI32.exe\""
    @="Edit text"
       ;(MuiVerb is "Edit text")
        ;(Default) is "notepad.exe %1")
    It would greatly please me if you would do the same and post a Reg of the same key on your computer. You know, a working version of the key, one that doesn't have all this misplaced crap that is supposed to be for

    I may request more regs in this thread later on if I find that this isn't the problem key
    #1 Exp HP, Jan 10, 2010
    Last edited: Jan 10, 2010
  2. reghakr

    reghakr Excellent Member

    Jan 26, 2009
    Likes Received:
    Are you asking for the original values so you can set you're back?

    If so, here it is:
    You'll need to save the file in Notepad and choose ANSI formatting.

    Always export the key you are changing and save a copy to the desktop.

    It's rather odd that you have a folder named C:\\Downloaded Software

    It's much better if you install programs to the Program Files directory rather than the root folder.
  3. Exp HP

    Exp HP New Member

    Jan 9, 2010
    Likes Received:
    RE: (Resolved) Default registry settings needed for Notepad in HKCR

    Yay, the forum's back up! And your settings worked! Notepad is now appearing in Open With. Thank you very much.
    I didn't even have to delete the deprecated values (like DefaultIcon or MuiVerb).

    Somewhat off-topic:
    Two things:
    1. C:\Downloaded Software actually is not for installed programs (that's where no. 2 comes in). It is for programs that run straight from the package without installation. Back in the XP days, I used to stick these in the Program Files folder along with everything else, but the first time I tried doing that in Vista, I spent hours playing a game just to later find it didn't have permission to save my progress.
    2. I have another folder, C:\Installed Software, to which I install most programs. Vista's UAC drove me crazy for two months; files displaced to VirtualStore, issues editing INI option files, discrepancies between universal and per-user settings, etc.. I couldn't stand it any more. Nowadays, the only programs I install to Program Files are those that have a high degree of integration into Windows (antivirus, web browsers, microsoft software, windows extensions).

    In other words, ever since UAC, I've pretty much avoided Program Files like the plague. The added security it provides just isn't worth the trouble.

    Nitpick: The path actually is C:\Downloaded Software, with one slash; it only appeared with two slashes in my REG because it was encapsulated in quotes. But I'm sure you already understood that.

    Completely off-topic: I'm a little annoyed that I can't seem to find a way to change the topic icon (as it appears on the forum page). I picked thumbs down by accident, and, contrary to what I would expect, changing the Post Icon of the first post doesn't make a difference on the forum page.
    #3 Exp HP, Jan 10, 2010
    Last edited: Jan 10, 2010

Share This Page