This allows you to replace the execution of one application with another (e.g. replace Notepad with Notepad++).
Download ApplicationReplacer from the releases page and
extract it to C:\Program Files\ApplicationReplacer
.
Then, to replace Notepad with Notepad++ execute (as Administrator) the following PowerShell script:
New-Item -Force -Path 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\notepad.exe' `
| Set-ItemProperty `
-Name Debugger `
-Value '"C:\Program Files\ApplicationReplacer\ApplicationReplacer.exe" -- "C:\Program Files\Notepad++\notepad++.exe"'