Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save msvamp/99359376d501d02d6c3f90ed2054cb7e to your computer and use it in GitHub Desktop.
Save msvamp/99359376d501d02d6c3f90ed2054cb7e to your computer and use it in GitHub Desktop.
This will allow you to restore the text-editing capabilities of the classic system Notepad, which is available as an optional Feature-on-Demand package in newer versions of Windows 10 and 11. This is typically useful, if you do not want to use the new notepad UWP package, and stick to the old notepad.
Windows Registry Editor Version 5.00
; You must ensure that the "Microsoft-Windows-Notepad-System-FoD-Package"
; optional package is installed and the notepad executable is present at
; its usual location, i.e. at "C:\Windows\System32\notepad.exe"
;
; This will interfere with the text-editing capabilities of the UWP Notepad
; app: https://www.microsoft.com/en-us/p/windows-notepad/9msmlrh6lzf3
; So, it is recommended to remove the UWP app, and have ONLY the optional
; FoD package installed, before you import this file into the registry.
;
; Source of registry entries used in this file: An old Windows 10 ISO
; Register the notepad application
[HKEY_LOCAL_MACHINE\SOFTWARE\RegisteredApplications]
"Notepad"="Software\\Microsoft\\Windows\\Notepad\\Capabilities"
; Edit and open capabilities for notepad
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Applications\notepad.exe\shell]
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Applications\notepad.exe\shell\edit]
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Applications\notepad.exe\shell\edit\command]
@=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\
00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,4e,00,4f,00,\
54,00,45,00,50,00,41,00,44,00,2e,00,45,00,58,00,45,00,20,00,25,00,31,00,00,\
00
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Applications\notepad.exe\shell\open]
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Applications\notepad.exe\shell\open\command]
@=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\
00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,4e,00,4f,00,\
54,00,45,00,50,00,41,00,44,00,2e,00,45,00,58,00,45,00,20,00,25,00,31,00,00,\
00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Notepad]
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Notepad\Capabilities]
"ApplicationDescription"=hex(2):40,00,25,00,53,00,79,00,73,00,74,00,65,00,6d,\
00,52,00,6f,00,6f,00,74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,\
33,00,32,00,5c,00,4e,00,4f,00,54,00,45,00,50,00,41,00,44,00,2e,00,45,00,58,\
00,45,00,2c,00,2d,00,39,00,00,00
"ApplicationName"=hex(2):40,00,25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,\
6f,00,6f,00,74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,\
00,5c,00,4e,00,4f,00,54,00,45,00,50,00,41,00,44,00,2e,00,45,00,58,00,45,00,\
2c,00,2d,00,39,00,00,00
; Default file type associations for notepad
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Notepad\Capabilities\FileAssociations]
".ini"="inifile"
".log"="logfile"
".scp"="scpfile"
".txt"="txtfile"
".wtx"="wtxfile"
; Make notepad visible in "Open With" dialog in "More Apps"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Applications\notepad.exe]
"NoOpenWith"=-
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\*\OpenWithList\notepad.exe]
@=""
; Restore the explorer shell commands for some important file types (Not necessary?)
;[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\SystemFileAssociations\text]
;[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\SystemFileAssociations\text\OpenWithList]
;[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\SystemFileAssociations\text\OpenWithList\Notepad.exe]
;@=""
;
;[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\SystemFileAssociations\text\shell]
;[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\SystemFileAssociations\text\shell\edit]
;[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\SystemFileAssociations\text\shell\edit\command]
;@=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\
; 00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,4e,00,4f,00,\
; 54,00,45,00,50,00,41,00,44,00,2e,00,45,00,58,00,45,00,20,00,25,00,31,00,00,\
; 00
;
;[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\SystemFileAssociations\text\shell\open]
;[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\SystemFileAssociations\text\shell\open\command]
;@=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\
; 00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,4e,00,4f,00,\
; 54,00,45,00,50,00,41,00,44,00,2e,00,45,00,58,00,45,00,20,00,25,00,31,00,00,\
; 00
;
;[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\txtfile]
;@="Text Document"
;"FriendlyTypeName"=hex(2):40,00,25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,\
; 00,6f,00,6f,00,74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,\
; 32,00,5c,00,6e,00,6f,00,74,00,65,00,70,00,61,00,64,00,2e,00,65,00,78,00,65,\
; 00,2c,00,2d,00,34,00,36,00,39,00,00,00
;
;[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\txtfile\shell]
;[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\txtfile\shell\open]
;[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\txtfile\shell\open\command]
;@=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\
; 00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,4e,00,4f,00,\
; 54,00,45,00,50,00,41,00,44,00,2e,00,45,00,58,00,45,00,20,00,25,00,31,00,00,\
; 00
;
;[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\txtfile\shell\print]
;[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\txtfile\shell\print\command]
;@=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\
; 00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,4e,00,4f,00,\
; 54,00,45,00,50,00,41,00,44,00,2e,00,45,00,58,00,45,00,20,00,2f,00,70,00,20,\
; 00,25,00,31,00,00,00
;
;[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\txtfile\shell\printto]
;[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\txtfile\shell\printto\command]
;@=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\
; 00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,6e,00,6f,00,\
; 74,00,65,00,70,00,61,00,64,00,2e,00,65,00,78,00,65,00,20,00,2f,00,70,00,74,\
; 00,20,00,22,00,25,00,31,00,22,00,20,00,22,00,25,00,32,00,22,00,20,00,22,00,\
; 25,00,33,00,22,00,20,00,22,00,25,00,34,00,22,00,00,00
;
;[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.txt\ShellNew]
;"ItemName"=hex(2):40,00,25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,\
; 6f,00,74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,\
; 00,6e,00,6f,00,74,00,65,00,70,00,61,00,64,00,2e,00,65,00,78,00,65,00,2c,00,\
; 2d,00,34,00,37,00,30,00,00,00
;
;[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\batfile]
;[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\batfile\shell]
;[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\batfile\shell\edit]
;[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\batfile\shell\edit\command]
;@=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\
; 00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,4e,00,4f,00,\
; 54,00,45,00,50,00,41,00,44,00,2e,00,45,00,58,00,45,00,20,00,25,00,31,00,00,\
; 00
;
;[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\batfile\shell\print]
;[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\batfile\shell\print\command]
;@=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\
; 00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,4e,00,4f,00,\
; 54,00,45,00,50,00,41,00,44,00,2e,00,45,00,58,00,45,00,20,00,2f,00,70,00,20,\
; 00,25,00,31,00,00,00
;
;[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\cmdfile]
;[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\cmdfile\shell]
;[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\cmdfile\shell\edit]
;[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\cmdfile\shell\edit\command]
;@=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\
; 00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,4e,00,4f,00,\
; 54,00,45,00,50,00,41,00,44,00,2e,00,45,00,58,00,45,00,20,00,25,00,31,00,00,\
; 00
;
;[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\cmdfile\shell\print]
;[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\cmdfile\shell\print\command]
;@=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\
; 00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,4e,00,4f,00,\
; 54,00,45,00,50,00,41,00,44,00,2e,00,45,00,58,00,45,00,20,00,2f,00,70,00,20,\
; 00,25,00,31,00,00,00
;
;[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\inffile]
;[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\inffile\shell]
;[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\inffile\shell\edit]
;[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\inffile\shell\edit\command]
;@=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\
; 00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,4e,00,4f,00,\
; 54,00,45,00,50,00,41,00,44,00,2e,00,45,00,58,00,45,00,20,00,25,00,31,00,00,\
; 00
;
;[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\inffile\shell\print]
;[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\inffile\shell\print\command]
;@=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\
; 00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,4e,00,4f,00,\
; 54,00,45,00,50,00,41,00,44,00,2e,00,45,00,58,00,45,00,20,00,2f,00,70,00,20,\
; 00,25,00,31,00,00,00
;
;[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\inifile]
;[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\inifile\shell]
;[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\inifile\shell\edit]
;[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\inifile\shell\edit\command]
;@=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\
; 00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,4e,00,4f,00,\
; 54,00,45,00,50,00,41,00,44,00,2e,00,45,00,58,00,45,00,20,00,25,00,31,00,00,\
; 00
;
;[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\inifile\shell\print]
;[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\inifile\shell\print\command]
;@=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\
; 00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,4e,00,4f,00,\
; 54,00,45,00,50,00,41,00,44,00,2e,00,45,00,58,00,45,00,20,00,2f,00,70,00,20,\
; 00,25,00,31,00,00,00
;
;[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\regfile]
;[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\regfile\shell]
;[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\regfile\shell\edit]
;[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\regfile\shell\edit\command]
;@=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\
; 00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,4e,00,4f,00,\
; 54,00,45,00,50,00,41,00,44,00,2e,00,45,00,58,00,45,00,20,00,25,00,31,00,00,\
; 00
;
;[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\regfile\shell\print]
;[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\regfile\shell\print\command]
;@=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\
; 00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,4e,00,4f,00,\
; 54,00,45,00,50,00,41,00,44,00,2e,00,45,00,58,00,45,00,20,00,2f,00,70,00,20,\
; 00,25,00,31,00,00,00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment