Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\notepad.exe]
"Debugger"="C:\\Program Files (x86)\\Notepad Replacer\\NotepadReplacer.exe"
My questions:
1. Where does NR store the replacement editor path (NP++, for instance)? It is persistent and the program remembers the last path selected and set.
2. Why doesn't NR plainly set the 'Debugger' key to directly point to the replacement editor program, like in the following example? It would load more quickly, deprecating the need of a helper app and the need to read additional config info. Also, any security concerns about running an external program each time notepad.exe is run would be unnecessary.
Good question! We wrote Notepad Replacer many years ago and for whatever reason chose to have it be a helper app that launches the selected Notepad app, but we could probably change it to make it just have the installer modify the registry key instead.
One interesting hitch though is that in newer Windows 10 versions, Notepad Replacer doesn't work at all because it appears Notepad is a UWP app. When we look for a way to fix that, we'll look into changing this as well
It is still, yep! Sorry for the confusion, we had put the note about looking into running it directly without the helper app in with the ticket to fix it for the Windows Store version, so we fixed that part, but haven't checked into the helper app yet.
Does setting the Debugger registry value directly actually work for you? I've tested it in Windows 10 and 11, and in both cases, it doesn't work as expected.
Notepad++ opens, but it also opens Notepad.exe as a text file. And trying to open a text file with spaces in the name from File Explorer fails as well, it tries to open Notepad++ with each word in the file name as separate files.