Edit with Notepad++ without Admin access

I got a new machine at work and promptly installed Notepad++ through the software management tool that the office provided.
Notepad++ installed fine but the right click context menu option “Edit with Notepad++” was missing. I raised a ticket with desktop support team, they tried but were unsuccessful.
Quick google search provided some options like running NppShell.dll or adding registry to HKEY_CLASSES_ROOT. However these require Administrator access that I didn’t have.
I looked around, couldn’t find any solution so crafted my own to add the “Edit with Notepad++” option to all files without admin access.

Step 1. Go to Start and type regedit.exe

Step 2. HKEY_CURRENT_USER\Software\Classes\

Step 3. Right Click on Classes and create a new Key valued *

Step 4. Right Click on Classes and create a new Key valued shell
Step 5. Right Click on shell and create a new Key valued ‘Edit with Notepad++’
Step 6. Right Click on ‘Edit with Notepad++’ and create a new Key valued command

Step 7. Change the value of Default to the path to notepad++.exe file (‘C:\Program Files\Notepad++\notepad++.exe’ in this case)

You can download the registry file here. Edit file, correct the notepad++ path, save, close. Double click, say yes. and you are all set.

Why it works?
1. Most solutions out there ask you to change the HKEY_CLASSES_ROOT which requires admin access however we are changing HKEY_CURRENT_USER. It is the current user’s profile thus admin access isn’t required
2. The keys in HKEY_CURRENT_USER\Software\Classes\ are actually extensions, we created key * meaning any extension.

Hope this helps.

Leave a Reply