Menu

Vista File Associations

2007-05-27
2012-11-13
  • Nobody/Anonymous

    Hi, because Vista has a different (and imho better) interface for managing file associations I wrote a litte reg-file that integrates Notepad++ into the "Default Programs" menu.
    Maybe someone would like that too so I thought I post it here...

    It only contains the extensions I use, so if you like it to support something else you have to add it by hand.

    Have Fun :)

    P.S: make sure the three path entries match your installation

    ------------------------- CUT HERE ----------------------------

    Windows Registry Editor Version 5.00

    [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Notepad++.AssocFile]
    @="Notepad++ Document"
    "FriendlyTypeName"="Notepad++ Document"

    [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Notepad++.AssocFile\DefaultIcon]
    @="C:\\Program Files\\Notepad++\\notepad++.exe,0"

    [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Notepad++.AssocFile\shell]

    [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Notepad++.AssocFile\shell\open]

    [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Notepad++.AssocFile\shell\open\command]
    @="\"C:\\Program Files\\Notepad++\\notepad++.exe\" \"%1\""

    [HKEY_LOCAL_MACHINE\SOFTWARE\Notepad++]

    [HKEY_LOCAL_MACHINE\SOFTWARE\Notepad++\Capabilites]
    "ApplicationDescription"="Notepad++ is a free source code editor (and Notepad replacement), which supports several programming languages, running under the MS Windows environment."
    "ApplicationName"="Notepad++"
    "ApplicationIcon"="C:\\Program Files\\Notepad++\\notepad++.exe,0"

    [HKEY_LOCAL_MACHINE\SOFTWARE\Notepad++\Capabilites\FileAssociations]
    ".txt"="Notepad++.AssocFile"
    ".log"="Notepad++.AssocFile"
    ".ini"="Notepad++.AssocFile"
    ".h"="Notepad++.AssocFile"
    ".hpp"="Notepad++.AssocFile"
    ".hxx"="Notepad++.AssocFile"
    ".c"="Notepad++.AssocFile"
    ".cpp"="Notepad++.AssocFile"
    ".cxx"="Notepad++.AssocFile"
    ".cc"="Notepad++.AssocFile"
    ".m"="Notepad++.AssocFile"
    ".css"="Notepad++.AssocFile"
    ".xml"="Notepad++.AssocFile"
    ".sh"="Notepad++.AssocFile"
    ".nfo"="Notepad++.AssocFile"
    ".conf"="Notepad++.AssocFile"

    [HKEY_LOCAL_MACHINE\SOFTWARE\RegisteredApplications]
    "Notepad++"="Software\\Notepad++\\Capabilites"

     
    • MJG

      MJG - 2007-05-27

      That's a considerate gesture!  This should be added to the FAQ. --Joel