Context menu Edit with Notepad++ missing

2. Help
Fetgusten
2012-08-24
2014-03-08
<< < 1 2 (Page 2 of 2)
  • armyants808
    armyants808
    2012-11-23

    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.

     
    Last edit: armyants808 2012-11-23
    Attachments
  • Loreia2
    Loreia2
    2012-11-24

    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:
    https://docs.google.com/open?id=0B0lMdiEG3L5COWVFRl9URnN0dWs

    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.
    http://www.microsoft.com/en-us/download/details.aspx?id=29
    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.

    regsvr32 NppShell.dll
    // for 64 bit
    regsvr32 NppShell64.dll
    

    If this creates right click context menu, you are done.
    Please, report here if you were successful (or not).

    Thank you and best regards,
    Loreia

     
  • Dwight
    Dwight
    2012-11-28

    Hi Loreia.

    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.

     
  • Loreia2
    Loreia2
    2012-11-28

    Hi Dwight,

    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:
    HKEY_CLASSES_ROOT*\shellex\ContextMenuHandlers
    There should be a key in there called:
    ANotepad++64
    Can you see it?

    Thank you and best regards,
    Loreia

     
  • Robert
    Robert
    2012-11-29

    Hi Loreia,

    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.

    Kind regards,
    Robert

     
  • Dwight
    Dwight
    2012-11-29

    Hi Loreia,

    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

    Dwight

     
  • Dwight
    Dwight
    2012-11-29

    ANote++64 should read ANotepad++64 in prior message

     
  • Loreia2
    Loreia2
    2012-11-29

    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:
    HKEY_CLASSES_ROOT*\shellex\ContextMenuHandlers

    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

    Thank you and best regards,
    Loreia

     
  • Closed Office
    Closed Office
    2012-12-01

    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.

     
  • Robert
    Robert
    2012-12-03

    I Actuall have 2 Entries in there:
    ANotepad++64:
    [HKEY_CLASSES_ROOT*\shellex\ContextMenuHandlers\ANotepad++64]
    @="{B298D29A-A6ED-11DE-BA8C-A68E55D89593}"

    and Notepad++64:
    [HKEY_CLASSES_ROOT*\shellex\ContextMenuHandlers\Notepad++64]
    @="{B298D29A-A6ED-11DE-BA8C-A68E55D89593}"

    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.

     
  • Loreia2
    Loreia2
    2012-12-04

    Hi Robert (and everybody who can reproduce the problem),

    can you find that same GUID in:
    HKEY_CLASSES_ROOT\CLSID{B298D29A-A6ED-11DE-BA8C-A68E55D89593}

    And check that it has this content:

    Windows Registry Editor Version 5.00

    [HKEY_CLASSES_ROOT\CLSID{B298D29A-A6ED-11DE-BA8C-A68E55D89593}\Settings]
    "Title"="Edit with &Notepad++"
    "Path"="C:\Program Files (x86)\Notepad++\notepad++.exe"
    "Custom"=""
    "ShowIcon"=dword:00000001
    "Dynamic"=dword:00000001
    "Maxtext"=dword:00000019

    BR
    Loreia

    P.S.
    32-bit GUID is:
    {00F3C2EC-A6EE-11DE-A03A-EF8F55D89593}

     
  • Loreia2
    Loreia2
    2012-12-07

    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.

    BR,
    Loreia

     
  • Loreia2
    Loreia2
    2012-12-11

    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:

    regsvr32 NppShell.dll
    

    BR,
    Loreia

     
  • pwjone1
    pwjone1
    2013-01-09

    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.

     
  • japi
    japi
    2013-02-09

    I could repair my context entry under Windows 8 Pro 64 bit by doing the following steps:

    1. Uninstall / Reinstall Notepad++ (maybe not necessary)
    2. Start Powershell / CMD with Administrator privileges
    3. regsvr32 /u "C:\Program Files (x86)\Notepad++\NppShell_05.dll" (maybe not necessary)
    4. regsvr32 "C:\Program Files (x86)\Notepad++\NppShell_05.dll"
    5. Close all explorer windows / reboot.

    Best Regards,
    japi

     
  • cchris
    cchris
    2013-02-09

    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.

    CChris

     
    • japi
      japi
      2013-02-09

      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.

       
  • cchris
    cchris
    2013-02-17

    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.

    CChris

     
  • yccheok
    yccheok
    2013-03-26

    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.

     
  • bob3248
    bob3248
    2013-04-02

    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.

     
  • SamwiseGamgee
    SamwiseGamgee
    2013-04-11

    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.

     
    Last edit: SamwiseGamgee 2013-04-12
  • JavaScriptDude
    JavaScriptDude
    2013-10-16

    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.

     
  • cchris
    cchris
    2013-11-22

    Be sure to close Windows Explorer after step 3 andto reopen it before step 4.

    CChris

     
  • pvs5011
    pvs5011
    2014-03-08

    You Run Fix In Registry.
    http://adf.ly/enaa3

     
<< < 1 2 (Page 2 of 2)