Context menu Edit with Notepad++ missing

2. Help
Fetgusten
2012-08-24
2014-03-08
1 2 > >> (Page 1 of 2)
  • Fetgusten
    Fetgusten
    2012-08-24

    Hi

    I've been running version 6.0 for a while now and just decided yesterday to upgrade to 6.1.6 with the result that the context menu on right click  is missing. I've tried 6.1.5 and 6.1.4 with the same result. Just now I reinstalled 6.0 and the menu is back so it must be a problem in versions above 6.0.

    My computer is running Windows Server 2008 R2.

    Anyone else noticed this? Are there any solutions?

     
  • Loreia2
    Loreia2
    2012-08-24

    Hi,

    please copy here the content of this registry directory:
    HKEY_CLASSES_ROOT\*\shellex\ContextMenuHandlers

    Start / Run / type in "regedit" (without question marks)
    Click OK.

    In regedit, navigate to above path, right-click and export.
    Copy the content here.

    BR
    Loreia

     
  • Fetgusten
    Fetgusten
    2012-08-24

    I exported the directory with 6.0 installed and then with 6.1.6 installed. The difference is:

    @="{B298D29A-A6ED-11DE-BA8C-A68E55D89593}"

    Is missing after the 6.1.6 install. I tried to just add it by running my 6.0 export but it didn't work. Context menu is still not there.

     
  • Loreia2
    Loreia2
    2012-08-24

    Hi,

    that's strange.
    Looks like installer is having problems adding context entry. Please try to start installer with administrator priviledges. Does that help?

    Can you do it manually?

    start command prompt as administrator

    Start / type "command prompt" / right-click / select "Run as Administrator"

    Go to NPP install directory: (cd "c:\program files\notepad++") and execute:

    regsvr32  NppShell_04.dll
    

    P.S.
    In above example NppShell_XX.dll should be adjusted to version found in your install dir (I have NppShell_04.dll in mine)

    BR
    Loreia

     
  • Fetgusten
    Fetgusten
    2012-08-27

    I ran the install as admin and I double checked that "Context menu" option in the install is checked. But still no context menu.

    Started an elevated command prompt and ran regsvr32 NppShell_05.dll - in Notepad++ install folder: NppShell_05.dll is present in the folder and I get:

    RegSvr32

    The module "NppShell_05.dll" failed to load.

    Make sure the binary is stored at the specified path or debug it to check for problems with the binary or dependent .DLL files.

    The application has failed to start because its side-by-side configuration is incorrect. Please see the application event log or use the command-line sxstrace.exe tool for more detail.

    Folder content:
    Directory of C:\Program Files (x86)\Notepad++

    2012-08-27  09:02    <DIR>          .
    2012-08-27  09:02    <DIR>          ..
    2012-08-15  16:01               779 change.log
    2011-07-10  03:07             4ÿ539 config.model.xml
    2012-08-27  09:02                 0 folder.txt
    2012-03-25  03:31           110ÿ336 langs.model.xml
    2012-04-18  01:18            16ÿ810 license.txt
    2012-03-28  10:08    <DIR>          localization
    2012-08-16  02:37         1ÿ622ÿ016 notepad++.exe
    2012-06-18  17:24           222ÿ720 NppShell_05.dll
    2012-08-27  08:56    <DIR>          plugins
    2011-07-18  23:04             1ÿ543 readme.txt
    2012-06-27  21:33           876ÿ544 SciLexer.dll
    2012-08-16  02:39             2ÿ111 shortcuts.xml
    2011-07-17  20:45            95ÿ686 stylers.model.xml
    2012-08-27  08:56    <DIR>          themes
    2012-08-27  08:56           265ÿ869 uninstall.exe
    2012-08-27  08:56    <DIR>          updater
    2012-08-27  08:56    <DIR>          user.manual

     
  • Loreia2
    Loreia2
    2012-08-27

    Hi,

    can you determine which is the last version that does work?
    Please post it here.

    Also, when you do find some older version that works, backup NppShell_XX.dll before uninstalling.
    Than just copy it to the same directory after installing later version, and the repeat procedure for manual registration.

    That should do the trick for you.
    But please, post which is the last version that does work on your system.

    BR
    Loreia

     
  • Fetgusten
    Fetgusten
    2012-08-28

    Thank you for your patience Loreia :)

    I started at 6.0 and upgraded version by version up to 6.1.4 and in that version the context menu disappeared. So the latest working version for me is 6.1.3.

     
  • Bernhard Ege
    Bernhard Ege
    2012-08-28

    Just wanted to say: Me too. :-/

    I really miss the right-click menu…

    Anyone has a download to a version that works?

     
  • Bernhard Ege
    Bernhard Ege
    2012-08-28

    I found a version 5.9.8 on one of my servers and it worked just fine. Something is off with the latest release.

     
  • Loreia2
    Loreia2
    2012-08-28

    So,

    version v6.1.3 works, but v.6.1.4 doesn't.
    I am on a business trip this week, so I probably wont be able to look into the code before next week.

    I wander what might have created the problem in v.6.1.4.
    In the mean time, did you succeed to register manually dll from previous version (v6.1.3)?

    BR
    Loreia

     
  • Loreia2
    Loreia2
    2012-08-28

    Hi fetgusten galmok,

    I think this is the first version of shell plugin that was compiled with visual studio.
    Can you download "Dependency walker" program and verify that you don't have some missing dll dependency. That is what your error is saying, and it also makes sense because this version was compiled with different compiler.

    BR
    Loreia

     
  • Fetgusten
    Fetgusten
    2012-08-29

    I can confirm that nppshell_04.dll (from 6.1.3) works well with 6.1.6. I get the context menu after running regsvr32 nppshell_04.dll

    I'm not familiar with "Dependency Walker" but have given it a go, not sure what data you need from it tho so tell me if you need anything more. I get more errors with nppshell_05 than with nppshell_04.

    This is from nppshell_05:
    Error: The Side-by-Side configuration information for "c:\program files (x86)\notepad++\NPPSHELL_05.DLL" contains errors. The application has failed to start because its side-by-side configuration is incorrect. Please see the application event log or use the command-line sxstrace.exe tool for more detail (14001).
    Error: At least one required implicit or forwarded dependency was not found.
    Error: Modules with different CPU types were found.
    Warning: At least one delay-load dependency module was not found.
    Warning: At least one module has an unresolved import due to a missing export function in a delay-load dependent module.

    Missing dependencies:
    MSVCR90.DLL
    GPSVC.DLL
    IESHIMS.DLL
    MF.DLL
    MFPLAT.DLL
    MFREADWRITE.DLL
    WLANAPI.DLL

    This is from nppshell_04:
    Error: At least one module has an unresolved import due to a missing export function in an implicitly dependent module.
    Error: Modules with different CPU types were found.
    Warning: At least one delay-load dependency module was not found.
    Warning: At least one module has an unresolved import due to a missing export function in a delay-load dependent module.

    Missing dependencies:
    GPSVC.DLL
    IESHIMS.DLL
    MF.DLL
    MFPLAT.DLL
    MFREADWRITE.DLL
    WLANAPI.DLL

     
  • Loreia2
    Loreia2
    2012-08-29

    Hi fetgusten ,

    thanks a lot for your last post, you told me everything I need to know (well, almost everything :)
    Message you are getting is whining about missing "MSVCR90.DLL" file.

    Our next step is verify if you have this file on your system or not.
    Please go to C:\Windows\winsxs directory and search for file "MSVCR90.DLL" (subdirectories included, system and hidden files included too)

    If you can find it in there, than NppShell.dll needs to be recompiled with updated manifest.
    If you cannot find this file, that means that your version of windows shipped without VC 2008 redistribution package, and you need to install it manually, here is the download link:
    https://www.microsoft.com/en-us/download/details.aspx?displaylang=en&id=29

    After installing redistribution package, you will be able to run latest NPP installer normally.

    P.S.
    You can get rid of unnecessary context menu by using this shell command (with admin prividleges):

    regsvr32 /u nppshell_04.dll

    BR
    Loreia

     
  • Fetgusten
    Fetgusten
    2012-08-29

    Yay, progress :)

    I ran a dir msvcr90.dll /s > c:\temp\dir.txt in the c:\windows\winsxs folder and this is the result. I got several versions of the file:

    2009-06-10  22:31           623 440 msvcr90.dll
                   1 File(s)        623 440 bytes

    Directory of C:\Windows\winsxs\amd64_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.4940_none_08e4299fa83d7e3c

    2010-11-05  03:53           624 464 msvcr90.dll
                   1 File(s)        624 464 bytes

    Directory of C:\Windows\winsxs\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.4926_none_508ed732bcbc0e5a

    2009-06-10  23:14           652 608 msvcr90.dll
                   1 File(s)        652 608 bytes

    Directory of C:\Windows\winsxs\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.4940_none_50916076bcb9a742

    2010-11-05  03:53           653 136 msvcr90.dll
                   1 File(s)        653 136 bytes

    Directory of C:\Windows\winsxs\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.4974_none_50940634bcb759cb

    2012-08-15  09:16           653 136 msvcr90.dll
                   1 File(s)        653 136 bytes

    Directory of C:\Windows\winsxs\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.6161_none_50934f2ebcb7eb57

    2012-08-15  09:36           653 136 msvcr90.dll
                   1 File(s)        653 136 bytes

     
  • Loreia2
    Loreia2
    2012-08-29

    Hi,

    I actually hoped you wouldn't find them as that would make thing easier from designer's perspective :))
    I will look into manifest thing and propose upgrade.

    Please, subscribe on this thread so I could notify you when its time to test the new version.
    That's it for now. Thanks for your help in testing.

    BR
    Loreia

     
  • kipusoep
    kipusoep
    2012-10-05

    I'm having the same problem on Windows 8 x64. For me even the 'old' v6.1.3 doesn't add a context menu item anymore :-(

     
  • tfl
    tfl
    2012-10-18

    Same here. Using Windows 7 the context menu exists, using Windows Server 2008 R2 there is no context menu. Testet with both 6.1.8 and 6.2

     
  • tfl
    tfl
    2012-10-18

    Using Windows 3008 R2 x64 and try to register nppshell_o5.dll I get the following error:

    The applicatin has falied to start because its side-by-side configuration is incorrect. Please see the application event log or use the command-line sxtrace.exe tool for more detail.

    I installed VS2008 Redistributable and even rebooted. No luck.

     
  • tfl
    tfl
    2012-10-18

    And I installed VS2010 x64 Redistributable and rebooted: no luck.

     
  • kipusoep
    kipusoep
    2012-10-18

    For me version 6.2 brought back the context menu :-)

     

  • Anonymous
    2012-10-29

    I did an upgrade from 5 and still had NppShell_04.dll. I can use that with regsvr32 to get the menu option set up with 6. NppShell_05.dll doesn't work.

     
  • Hi all,
    Well just a short note for those who say registration of NppShell_05.dll (resgsvr32 NppShell_05.dll) doesn't work. Be sure to add the full path in the register command for example:

    regsvr32 "c:\program files\NotePad++\NppShell_05.dll"
    

    assuming Notepad++ was installed in C:\Program Files\NotePad++

    by default regsvr32 looks for the file only in windows or system32 or in "path" env variable.

    Hope this helps some (or many!).

    Best of luck!
    Inderjeet S Sodhi
    www.inderjeetsodhi.com

     
  • By the way, one might need to un-register before registring, there may already be a file registered from somewhere:

    regsvr32 /u "C:\Program Files\Notepad++\NppShell05_dll"
    

    Needless to mention, no need to include fill path if regsvr32 is being run from within the installation folder.

    Best of luck!
    Inderjeet S Sodhi
    IT/Security consultant, Web/WAP Developer and Beta Tester

     
  • Andrewzz
    Andrewzz
    2012-11-16

    As I see this hasn't been fixed yet, here is a work around.

    1. Launch registry editor using regedit command.
    2. Browse to HKEY_CLASSES_ROOT*\shell registry tree.
    3. Create a new key under shell and name it Notepad++
    4. Under this key, create a new registry entry (or edit Default one) of type REG_SZ and enter Notepad++ as data for this registry key. (The data entry will appear as it is in context menu. You can also enter ‘Open with Notepad++’ if that’s what you want to appear in context menu.)
    5. Create another key entry under Notepad++ and name it command.
    6. Create a new registry entry of type REG_SZ and add C:\Program Files (x86)\Notepad++\Notepad++.exe %1 as data. If you installed Notepad++ at different location that default, modify the path in command accordingly.
    7. That’s it, you can close the registry editor and you should have Notepad++ in context menu for all file types.

    Here are some a screenshots.

    http://grab.by/hAkq
    http://grab.by/hAkg

    Regards.

     
  • Loreia2
    Loreia2
    2012-11-23

    I am trying to solve this by experimenting with manifest file. Microsoft has such a talent to make everything complicated, but I think I understand where the problems is.

    I compiled a new version of this DLL, and now I need testers to help me out.

    1. Download and unzip in NPP install directory: https://docs.google.com/open?id=0B0lMdiEG3L5CLVFDSmRsR1lsc0k
    2. Open command prompt as administrator (right click in start menu, select "Run as admin"):

    3. First uninstall old NppShell (in case you have registered some old version)

      regsvr32 /u "c:\program files\NotePad++\NppShell_05.dll"
      
    4. Register new one (downloaded in step 2)

       regsvr32 "c:\program files\NotePad++\NppShell64.dll"
      

    Naturally, adjust path to install dir if necessary.

    Thank you and best regards,
    Loreia

     
    Last edit: Loreia2 2012-11-23
1 2 > >> (Page 1 of 2)