Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo
On windows 2008 r2, put the NppShell64.dll in the c:\program files (x86)\notepad++ folder. Started administrative command prompt and changed to notepad++ folder. Tried regsvr32 nppshell64.dll (no /u) also tried regsvr32 c:\program files (x86)\notepad++\nppshell64.dll. Keep getting failed to load, specified module could not be found (see attachment).
On windows 7 64-bit, the current 6.2.2 installer works fine as long as I don't install as administrator so the current 6.2.2 installer adds the "edit with notepad++" right click for me okay. Just not windows 2008 r2. Hope this helps and makes sense.
Where did my last post go? Damn Sourceforge forum is doing it again....
Anyway, this SxS business is really annoying. I've spent hours reading about it, and I still have no idea what went wrong. So, the best solution is to simply link statically.
Static linking adds mere 26kb to release dll. There is no need to waste anymore time on this thing if 26kb of added stuff can solve the issue.
Here is static MT dll, both 32 and 64 bit version:
As soon as someone who can reproduce the issue confirms that these work well, I will commit changes to main brach.
How to test?
You must have Microsoft Visual C++ 2008 Redistributable Package installed.
If standard Notepad++ installer fails to add "Edit with Notepad++" entry to windows explorer right-click menu, you can reproduce the issue.
In this case, go to N++ installation directory, say:
C:\Program Files (x86)\Notepad++
Open command prompt with administrative privileges.
Unzip here NppShell.zip archive, and try to manually register dll.
// for 64 bit
If this creates right click context menu, you are done.
Please, report here if you were successful (or not).
Thank you and best regards,
The standard Notepad++ installer (6.22) failed to add "Edit with Notepad++" entry to windows explorer right-click menu. I followed the above download of NppShell64.dll and did the Admin enabled command prompt for the regsvr32 command and it completed successfully but DID NOT affect the context menu. I right clicked several different file types to attempt verification and none showed Notepad++ in the context menu. I have Win7 x64 Ultimate with Microsoft Visual C++ 2010 Redistributable Package.
thanks for your help.
I have few questions.
1. I trust you tried regsvr32 command from Npp installation dir
(notepad++.exe must be in the same directory)
2. Can you try the same procedure with UAC disabled (just to see if that helps)
Try Start --> msconfig --> tools --> Change UAC settings --> Launch --> Never notify
3. Open registry (start --> regedit.exe)
Go to this folder:
There should be a key in there called:
Can you see it?
Thank you and best regards,
I had pretty much the same issue as Dwight running Windows 8x64.
The dll you provided solved my issue but the menu entry only appeared after I rebooted.
1: ran regsvr32 from install dir.
2: UAC was turned off prior to running regsvr32
3: ANote++64 exists in the location noted.
I hope this helps with getting this working again
ANote++64 should read ANotepad++64 in prior message
Hi Dwight and Robert,
thanks a lot for your help. We are slowly moving in right direction.
If you can see ANotepad++64 entry, than NppShell.dll is working as expected.
Now we need to figure out why is context menu blocked from displaying "Edit with Notepad++"
Can you guys export content of registry folder:
and attach the file here.
This is where right context menu entries are located in registry.
If you don't want to display such information publicly, send me an e-mail at:
udlv20 at _ googlemail dot _ com
I'm having the same problem. I just wanted to subscribe to the topic but couldn't see a way of doing it without making a post. Hope this does it.
I Actuall have 2 Entries in there:
But I don't have 2 "Edit with notepad++ entries" (which makes sense since it's the same GUID).
Another little thing. My system language is german but the Text still says "Edit with Notpead++" I honestly can't say if this text was ever localized but I thought I should mention it.
Hi Robert (and everybody who can reproduce the problem),
can you find that same GUID in:
And check that it has this content:
Windows Registry Editor Version 5.00
"Title"="Edit with &Notepad++"
"Path"="C:\Program Files (x86)\Notepad++\notepad++.exe"
32-bit GUID is:
Ok, Dwigth notified me that new NppShell.dll is working for him in Windows Explorer, but not in XYplorer program.
So, if anyone else is having the same problem, please verify that context menu is present in Windows explorer, not any other replacement shell or file manager.
Also, if no more users post on this thread, I will send new statically linked dll to Don, and close this issue as solved.
After few more e-mail with Dwight, we managed to make Context menu working for XYplorer too.
Apparently, XYplorer is a 32-bit only application, and as such it did not work with 64-bit version of NppShell.dll. Solution was to manually install 32-bit version of NppShell.dll.
I just checked NSI installer code, and it will install only 64-bit version of NppShell.dll on 64-bit windows. This is makes perfect sense, because NppShell.dll expects to work with 64-bit file managers on 64-bit Windows.
So, if you are having a similar problem, you must manually download and register 32-bit version of NppShell.dll.
Open command prompt as administrator and execute:
Bit of added info (or not), Notepad++ 6.2.3 on a Windows 8 Pro 64 bit (new) install, no open with context entry for Notepad++ is showing up.
I could repair my context entry under Windows 8 Pro 64 bit by doing the following steps:
Works for me: win8/64 fr_FR, N++ 6.3
But the NppShell_05.dll was working all right, and I didn't have this item mising.
Did you upgrade to Windows 8 or was it a fresh install?
I did an upgrade and needed to repair it like described in my last post.
On a brand new computer with Win8, I installed N++ v6.3.
What happens migrating from Win7 could be different... can't help you there.
I'm using 6.3.1, under Windows 8 Single Language 64 bits. Context menu works fine for me. Nothing special need to be done after normal installation. Just restarting the computer will make context menu appear.
I am also having a problem with the context menu. For me, the context menu works in all of these os in NPP 6.1.3
In all later versions of NPP the context menu is present in:
Windows XP 32 bit
Windows Server 2003 R2 32 bit
Windows 7 32 bit
Windows 7 64 bit
and there is no context menu in:
Windows XP 64 bit
Windows Server 2008 R2 64 bit
I haven't tried Windows 8.
Still no "Edit with Notepad++" for 6.3.2 on 2008R2x64 :(
Tried the regsrv and still get the "...\NppShell_05.dll" failed to load
This works (2008R2x64):
----------------save as OpenWithNPP.reg and merge------------------
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT*\shell\Open with Notepad++]
[HKEY_CLASSES_ROOT*\shell\Open with Notepad++\command]
@="C:\Program Files (x86)\Notepad++\notepad++.exe %1"
It doesn't use the "preferred" approach of loading the .dll, nor does it get loaded into the same part of the registry, but at least it works. I'd call it a quick hack until the installer/dll gets fixed.
I have two 2008R2 instances. Context menu works on one and not the other.
regsvr32 "C:\Program Files (x86)\Notepad++\NppShell_05.dll" fails on one but is ok on the other server. The server that is ok, registered fine by itself.
The versions of both servers are the same:
OS Name: Microsoft Windows Server 2008 R2 Enterprise
Version: 6.1.7601 Service Pack 1 Build 7601
It appears that there is some dependency that is impacted by the installation of some other software.
Please let me know how I can help narrow in on this using the preferred approach of using regsvr32.
Be sure to close Windows Explorer after step 3 andto reopen it before step 4.
You Run Fix In Registry.