notepad replacer broken in win 11

infinity

Member
Local time
3:33 AM
Posts
42
OS
Win 11
I'm using Notepad++ as my default app to edit all my coding files (js/ahk etc) and have always used Notepad Replacer to fix the linkage. However in Win 11, it defaults back to regular notepad instead.

Note I cannot just set default file associations because sometimes they need to be RUN instead of being edited in notepad++.
How do I fix that?
 

My Computer

System One

  • OS
    Win 11
    Computer type
    PC/Desktop
    CPU
    Ryzen 3600
    Motherboard
    MSI B450 Tomahawk Max
    Memory
    GSkill RipJawz 16Gbx2
    Graphics Card(s)
    GTX960
    Screen Resolution
    2560x1440
    Hard Drives
    WD750 SSD 1TB
    PSU
    650w FSP

tomdsr

Fighting Cancer :(
VIP
Local time
11:33 AM
Posts
63
Location
Little Island Near Seattle
OS
Windows 11
Right click the file you want to open with notepad++
Follow the order of the pics.
Make sure to leave the "Always use this app to open .*** files" Checked.
1.jpg
2.jpg
3.jpg 4.jpg 5.jpg
 

My Computer

System One

  • OS
    Windows 11
    Computer type
    PC/Desktop
    Manufacturer/Model
    Self Built
    CPU
    Ryzen 5 3600
    Motherboard
    ASUS Prime X570-P
    Memory
    32gb DDR4 - 3200Mhz
    Graphics Card(s)
    EVGA 2060 Super KO 6GB PCIE 3.0
    Sound Card
    Realtek S1200A
    Monitor(s) Displays
    1. LG 34UM68-P 34-Inch 21:9 UltraWide IPS 2. ONN 24-Inch LCD
    Screen Resolution
    1. 2560 x 1080 2. 1920 x 1080 (side by side 4480 x 1080)
    Hard Drives
    Samsung 860 EVO 1TB SATA III SSD (OS)
    WD BLUE 2TB SATA III (DATA)
    WD BLUE 2TB SATA III (DATA)
    WD BLUE 1TB SATA III (DATA)
    PSU
    Thermaltake Toughpower PF1 750W
    Case
    Coolermaster HAF XB EVO
    Cooling
    Corsair 240mm AIO + 4x 120mm case fans
    Keyboard
    Standard Logitech
    Mouse
    Logitech M535
    Internet Speed
    Gigabit (Cable)
    Browser
    Firefox, Chrome, Edge
    Antivirus
    Defender

infinity

Member
Thread Starter
Local time
3:33 AM
Posts
42
OS
Win 11
Hi, please see my original quote here:
Note I cannot just set default file associations because sometimes they need to be RUN instead of being edited in notepad++.
How do I fix that?

Doing this will always open in notepad. I only want Editing associations, not Open associations.
 

My Computer

System One

  • OS
    Win 11
    Computer type
    PC/Desktop
    CPU
    Ryzen 3600
    Motherboard
    MSI B450 Tomahawk Max
    Memory
    GSkill RipJawz 16Gbx2
    Graphics Card(s)
    GTX960
    Screen Resolution
    2560x1440
    Hard Drives
    WD750 SSD 1TB
    PSU
    650w FSP

Wisewiz

Speaks Ancient Geek
Power User
VIP
Local time
2:33 PM
Posts
809
Location
Ontario, Canada
OS
11 Pro 21H2 (22000.318)
Can't you set the RUN association and let the Edit function reside (natively) in the right-click menu?

"By default the Notepad++ installer comes with a Shell extension. This is not really part of the Notepad++ program but very useful. If you choose to install it, then any file you rightclick on will show an entry named “Edit with Notepad++” with the Notepad++ icon.

Please note that to install or remove the extension, it sometimes is required to restart the Explorer process. For this you can reboot, logout and log back in or use the task manager to kill explorer (Windows NT and up) and restart it again. You can do this by hitting Ctrl+Alt+Shift+Del.

If the Shell extension is already installed, the Notepad++ installer cannot update or overwrite it, you first have to uninstall it and restart Explorer.

If you issue the install command for the dll, which is regsvr32 /i NppShell_01.dll, a dialog box will pop up from which various details of the behaviour of the extension can be tweaked. The trailing number will increase as versions go.
 

My Computers

System One System Two

  • OS
    11 Pro 21H2 (22000.318)
    Computer type
    PC/Desktop
    Manufacturer/Model
    Lenovo ThinkCentre M920S SFF
    CPU
    i5-8400 @ 2.80MHz
    Motherboard
    Lenovo
    Memory
    16GB DDR4 @ 2666MHz
    Graphics Card(s)
    Intel HD 630 Graphics onboard
    Sound Card
    Realtek HD Audio
    Monitor(s) Displays
    LG E2442
    Screen Resolution
    1920x1080
    Hard Drives
    2 x Samsung 870 EVO SSD
    Case
    Lenovo SFF
    Keyboard
    Microsoft Wired 600
    Mouse
    LogiTech M510 wireless
    Internet Speed
    Fast (for satellite!)
    Browser
    Chrome
    Antivirus
    Malwarebytes Premium & Defender (working together beautifully!)
  • Operating System
    11 Pro 21H2 (22000.318)
    Computer type
    PC/Desktop
    Manufacturer/Model
    Lenovo ThinkCentre M910S SFF
    CPU
    i7-7700 @ 3.60MHz
    Motherboard
    Lenovo
    Memory
    16GB DDR4 @ 2400MHz
    Graphics card(s)
    Intel HD 630 Graphics onboard
    Sound Card
    Realtek High Definition Audio onboard
    Monitor(s) Displays
    LG FULL HD (1920x1080@59Hz)
    Screen Resolution
    1920 x 1080
    Hard Drives
    2 x Samsung 870 EVO SSD
    Mouse
    LogiTech M510 wireless
    Keyboard
    Microsoft 600 wired
    Internet Speed
    Fast (for satellite!)
    Browser
    Chrome
    Antivirus
    Malwarebytes Premium and MS Defender

tomdsr

Fighting Cancer :(
VIP
Local time
11:33 AM
Posts
63
Location
Little Island Near Seattle
OS
Windows 11
Can't you set the RUN association and let the Edit function reside (natively) in the right-click menu?

"By default the Notepad++ installer comes with a Shell extension. This is not really part of the Notepad++ program but very useful. If you choose to install it, then any file you rightclick on will show an entry named “Edit with Notepad++” with the Notepad++ icon.

Please note that to install or remove the extension, it sometimes is required to restart the Explorer process. For this you can reboot, logout and log back in or use the task manager to kill explorer (Windows NT and up) and restart it again. You can do this by hitting Ctrl+Alt+Shift+Del.

If the Shell extension is already installed, the Notepad++ installer cannot update or overwrite it, you first have to uninstall it and restart Explorer.

If you issue the install command for the dll, which is regsvr32 /i NppShell_01.dll, a dialog box will pop up from which various details of the behaviour of the extension can be tweaked. The trailing number will increase as versions go.
totally forgot it had its own extension, im getting old
 

My Computer

System One

  • OS
    Windows 11
    Computer type
    PC/Desktop
    Manufacturer/Model
    Self Built
    CPU
    Ryzen 5 3600
    Motherboard
    ASUS Prime X570-P
    Memory
    32gb DDR4 - 3200Mhz
    Graphics Card(s)
    EVGA 2060 Super KO 6GB PCIE 3.0
    Sound Card
    Realtek S1200A
    Monitor(s) Displays
    1. LG 34UM68-P 34-Inch 21:9 UltraWide IPS 2. ONN 24-Inch LCD
    Screen Resolution
    1. 2560 x 1080 2. 1920 x 1080 (side by side 4480 x 1080)
    Hard Drives
    Samsung 860 EVO 1TB SATA III SSD (OS)
    WD BLUE 2TB SATA III (DATA)
    WD BLUE 2TB SATA III (DATA)
    WD BLUE 1TB SATA III (DATA)
    PSU
    Thermaltake Toughpower PF1 750W
    Case
    Coolermaster HAF XB EVO
    Cooling
    Corsair 240mm AIO + 4x 120mm case fans
    Keyboard
    Standard Logitech
    Mouse
    Logitech M535
    Internet Speed
    Gigabit (Cable)
    Browser
    Firefox, Chrome, Edge
    Antivirus
    Defender

Wisewiz

Speaks Ancient Geek
Power User
VIP
Local time
2:33 PM
Posts
809
Location
Ontario, Canada
OS
11 Pro 21H2 (22000.318)
Bofus, my friend. 'S okay.
 

My Computers

System One System Two

  • OS
    11 Pro 21H2 (22000.318)
    Computer type
    PC/Desktop
    Manufacturer/Model
    Lenovo ThinkCentre M920S SFF
    CPU
    i5-8400 @ 2.80MHz
    Motherboard
    Lenovo
    Memory
    16GB DDR4 @ 2666MHz
    Graphics Card(s)
    Intel HD 630 Graphics onboard
    Sound Card
    Realtek HD Audio
    Monitor(s) Displays
    LG E2442
    Screen Resolution
    1920x1080
    Hard Drives
    2 x Samsung 870 EVO SSD
    Case
    Lenovo SFF
    Keyboard
    Microsoft Wired 600
    Mouse
    LogiTech M510 wireless
    Internet Speed
    Fast (for satellite!)
    Browser
    Chrome
    Antivirus
    Malwarebytes Premium & Defender (working together beautifully!)
  • Operating System
    11 Pro 21H2 (22000.318)
    Computer type
    PC/Desktop
    Manufacturer/Model
    Lenovo ThinkCentre M910S SFF
    CPU
    i7-7700 @ 3.60MHz
    Motherboard
    Lenovo
    Memory
    16GB DDR4 @ 2400MHz
    Graphics card(s)
    Intel HD 630 Graphics onboard
    Sound Card
    Realtek High Definition Audio onboard
    Monitor(s) Displays
    LG FULL HD (1920x1080@59Hz)
    Screen Resolution
    1920 x 1080
    Hard Drives
    2 x Samsung 870 EVO SSD
    Mouse
    LogiTech M510 wireless
    Keyboard
    Microsoft 600 wired
    Internet Speed
    Fast (for satellite!)
    Browser
    Chrome
    Antivirus
    Malwarebytes Premium and MS Defender

infinity

Member
Thread Starter
Local time
3:33 AM
Posts
42
OS
Win 11
Can't you set the RUN association and let the Edit function reside (natively) in the right-click menu?

"By default the Notepad++ installer comes with a Shell extension. This is not really part of the Notepad++ program but very useful. If you choose to install it, then any file you rightclick on will show an entry named “Edit with Notepad++” with the Notepad++ icon.

Please note that to install or remove the extension, it sometimes is required to restart the Explorer process. For this you can reboot, logout and log back in or use the task manager to kill explorer (Windows NT and up) and restart it again. You can do this by hitting Ctrl+Alt+Shift+Del.

If the Shell extension is already installed, the Notepad++ installer cannot update or overwrite it, you first have to uninstall it and restart Explorer.

If you issue the install command for the dll, which is regsvr32 /i NppShell_01.dll, a dialog box will pop up from which various details of the behaviour of the extension can be tweaked. The trailing number will increase as versions go.
I know it exists, but that is still different from completely replacing notepad with notepad++. Which means when "notepad" is being used, I will always default to notepad++.
 

My Computer

System One

  • OS
    Win 11
    Computer type
    PC/Desktop
    CPU
    Ryzen 3600
    Motherboard
    MSI B450 Tomahawk Max
    Memory
    GSkill RipJawz 16Gbx2
    Graphics Card(s)
    GTX960
    Screen Resolution
    2560x1440
    Hard Drives
    WD750 SSD 1TB
    PSU
    650w FSP

Wisewiz

Speaks Ancient Geek
Power User
VIP
Local time
2:33 PM
Posts
809
Location
Ontario, Canada
OS
11 Pro 21H2 (22000.318)
I seem to recall that way back when, we replaced the original notepad.exe with the Notepad++ executable somehow. That ring any bells? I don't suppose that's possible now. Dunno.
 

My Computers

System One System Two

  • OS
    11 Pro 21H2 (22000.318)
    Computer type
    PC/Desktop
    Manufacturer/Model
    Lenovo ThinkCentre M920S SFF
    CPU
    i5-8400 @ 2.80MHz
    Motherboard
    Lenovo
    Memory
    16GB DDR4 @ 2666MHz
    Graphics Card(s)
    Intel HD 630 Graphics onboard
    Sound Card
    Realtek HD Audio
    Monitor(s) Displays
    LG E2442
    Screen Resolution
    1920x1080
    Hard Drives
    2 x Samsung 870 EVO SSD
    Case
    Lenovo SFF
    Keyboard
    Microsoft Wired 600
    Mouse
    LogiTech M510 wireless
    Internet Speed
    Fast (for satellite!)
    Browser
    Chrome
    Antivirus
    Malwarebytes Premium & Defender (working together beautifully!)
  • Operating System
    11 Pro 21H2 (22000.318)
    Computer type
    PC/Desktop
    Manufacturer/Model
    Lenovo ThinkCentre M910S SFF
    CPU
    i7-7700 @ 3.60MHz
    Motherboard
    Lenovo
    Memory
    16GB DDR4 @ 2400MHz
    Graphics card(s)
    Intel HD 630 Graphics onboard
    Sound Card
    Realtek High Definition Audio onboard
    Monitor(s) Displays
    LG FULL HD (1920x1080@59Hz)
    Screen Resolution
    1920 x 1080
    Hard Drives
    2 x Samsung 870 EVO SSD
    Mouse
    LogiTech M510 wireless
    Keyboard
    Microsoft 600 wired
    Internet Speed
    Fast (for satellite!)
    Browser
    Chrome
    Antivirus
    Malwarebytes Premium and MS Defender

johnlgalt

Antidisestablishmentarianistentarianist
Power User
VIP
Local time
2:33 PM
Posts
1,942
Location
3rd Rock
OS
Windows 10 Pro X64
It used to be easy to edit the registry to have an Open command using one app and a separate Edit command for editing the same file type in a different app.

It's gotten a lot harder to do so, but this link Changing Default File Associations in Windows 10 via GPO | Windows OS Hub has some really, really good information that might be helpful.

Make sure you make a backup before trying it, as it was written for Windows 10 and there is no real guarantee that it will work without errors in Windows 11. Alternately, the article also provides methods using group policy as well as using the registry, too, if you prefer to go that route.

Best of all, he also provides a method that allows you to reset it all in case something breaks.

This may or may not work for you - becuase it sounds like you've tried something similar (to at least one of hte methods outlined in the article) via the Notepad++ replacer utility, but WIndows 11 keeps reverting it to default. Instead of using the Notepad++ replacer utility, this will allow you to do it manually, which may allow you to have the settings actually stick in Windows 11.
 

My Computers

System One System Two

  • OS
    Windows 10 Pro X64
    Computer type
    PC/Desktop
    Manufacturer/Model
    HomeBrew
    CPU
    AMD Ryzen 9 3950X
    Motherboard
    MSI MEG X570 GODLIKE
    Memory
    4 * Corsair Vengeance 32 GB 3600 MHz
    Graphics Card(s)
    eVGA GeForce GTX 970 SSC ACX 2.0 (04G-P4-3979-KB)
    Sound Card
    Realtek® ALC1220 Codec
    Monitor(s) Displays
    2 * Lenovo LT2323pwA Widescreeen
    Screen Resolution
    2* 1920*1080
    Hard Drives
    3x Sabrent Rocket PCIe Gen4 NVMe M.2 1 TB SSD (SB-ROCKET-NVMe4-1TB)
    SanDisk Ultra SDSSDHII-960G-G25 960 GB SATA III SSD
    Crucial MX100 CT256MX100SSD1 256GB SATA III SSD
    2 * Seagate Barracuda 7200.12 ST31000528AS 1TB 7200 RPM --> RAID1
    PSU
    PC Power & Cooling’s Silencer Series 1050 Watt, 80 Plus Platinum
    Case
    Fractal Design Define 7 XL Dark ATX Full Tower Case
  • Operating System
    Windows 10 x64 Pro build 21H1
    Computer type
    Laptop
    Manufacturer/Model
    Dell Latitude E5470
    CPU
    Intel(R) Core(TM) i5-6300U CPU @ 2.40GHz, 2501 Mhz, 2 Core(s), 4 Logical Processor(s)
    Motherboard
    Dell
    Memory
    16 GB
    Graphics card(s)
    Intel(R) HD Graphics 520
    Sound Card
    Intel(R) HD Graphics 520 + RealTek Audio
    Monitor(s) Displays
    Dell laptop display 15"
    Screen Resolution
    1920 * 1080
    Hard Drives
    Toshiba 128GB M.2 22300 drive
    INTEL Cherryvill 520 Series SSDSC2CW180A 180 GB SATA III SSD
    PSU
    Dell
    Case
    Dell
    Cooling
    Dell
    Mouse
    Logitech MX Master (shared) | Dell TouchPad
    Keyboard
    Dell
    Internet Speed
    AT&T LightSpeed Gigabit Duplex
    Browser
    Edge Chromium | Chrome | Firefox Nightly | Brave
    Antivirus
    Defender + MB4

Edwin

♦ ♦
Power User
VIP
Local time
2:33 PM
Posts
2,023
OS
Windows 11
It's going to be way too complicated to filter all file associations, just create your own entries in the root shell.

000154.png
 

My Computer

System One

  • OS
    Windows 11

infinity

Member
Thread Starter
Local time
3:33 AM
Posts
42
OS
Win 11
It used to be easy to edit the registry to have an Open command using one app and a separate Edit command for editing the same file type in a different app.

It's gotten a lot harder to do so, but this link Changing Default File Associations in Windows 10 via GPO | Windows OS Hub has some really, really good information that might be helpful.

Make sure you make a backup before trying it, as it was written for Windows 10 and there is no real guarantee that it will work without errors in Windows 11. Alternately, the article also provides methods using group policy as well as using the registry, too, if you prefer to go that route.

Best of all, he also provides a method that allows you to reset it all in case something breaks.

This may or may not work for you - becuase it sounds like you've tried something similar (to at least one of hte methods outlined in the article) via the Notepad++ replacer utility, but WIndows 11 keeps reverting it to default. Instead of using the Notepad++ replacer utility, this will allow you to do it manually, which may allow you to have the settings actually stick in Windows 11.
As I'm really afraid of breaking it, is there any 3ʳᵈ party utility (free or paid, doesn't matter) that can do this?
 

My Computer

System One

  • OS
    Win 11
    Computer type
    PC/Desktop
    CPU
    Ryzen 3600
    Motherboard
    MSI B450 Tomahawk Max
    Memory
    GSkill RipJawz 16Gbx2
    Graphics Card(s)
    GTX960
    Screen Resolution
    2560x1440
    Hard Drives
    WD750 SSD 1TB
    PSU
    650w FSP
Top Bottom