Replace Notepad using "Image File Execution Option"
Posted: Mon Jul 11, 2011 3:05 am
Hello,
I didn't use AkelPad's installer to replace Notepad. I used the following method (on Win7 x64):
Under the registry key:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options
I created a sub-key: "notepad.exe".
Inside that new sub-key, I created a string value:"Debugger". The data of this value points to AkelPad.exe.
Now, every time when Notepad is intended to run, it's AkelPad which is executed instead. Great! I successfully repalced Notepad with AkelPad.
But there is a problem.
When AkelPad is executed in place of Notepad, AkelPad will think that the executable file of Notepad itself is a file to be opened. So, the following message appears:
"C:\Windows\Notepad.exe" is a binary file. Continue?
How can I solve this problem?
I didn't use AkelPad's installer to replace Notepad. I used the following method (on Win7 x64):
Under the registry key:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options
I created a sub-key: "notepad.exe".
Inside that new sub-key, I created a string value:"Debugger". The data of this value points to AkelPad.exe.
Now, every time when Notepad is intended to run, it's AkelPad which is executed instead. Great! I successfully repalced Notepad with AkelPad.
But there is a problem.
When AkelPad is executed in place of Notepad, AkelPad will think that the executable file of Notepad itself is a file to be opened. So, the following message appears:
"C:\Windows\Notepad.exe" is a binary file. Continue?
How can I solve this problem?