- Open Regedit and go to: "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options"
- Create a key with the name of the executable you want to redirect. ex: notepad.exe
- Create a String value in the newly created key with any name and the value specifying the pathname of the executable (debugger) you want to launch instead. ex: String name: Calc String value: C:\Windows\System32\calc.exe
Now launch notepad :)