-
Start an elevated or administrator Command Prompt.
-
Copy the following command and paste it in the Command Prompt window:
reg add "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\notepad.exe" /v "Debugger" /t REG_SZ /d "\"%ProgramFiles%\Notepad++\notepad++.exe\" -notepadStyleCmdline -z" /f
To undo (reverse) the replacement, use the following command:
reg delete "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\notepad.exe" /v "Debugger" /f
- Close Command Prompt.
be carefull with env...
%ProgramFiles% on a 64bits OS but 32 bits installer, it's installed on %ProgramFiles(x86)%