nppPluginManager icon indicating copy to clipboard operation
nppPluginManager copied to clipboard

[x64] Not loading available plugins or detecting gpup.exe on reinstall

Open alanondra opened this issue 8 years ago • 12 comments

Description of the Issue

The plugin manager, which is not installed by default, has no available plugins listed. It also cannot be reinstalled.

Steps to Reproduce the Issue

  1. Extract contents of x64 release to %APPDATA%\Notepad++
  2. Start Notepad++ and go to Plugins > Plugin Manager > Show Plugin Manager.
  3. Click Installed tab, select Plugin Manager and click Reinstall.
  4. Observe error message: ``

Expected Behavior

  1. Newly installed instance connects to default repository.
  2. Plugin reinstalls successfully.

Actual Behavior

  1. Available plugins are empty.
  2. Trying to reinstall plugin returns the error A file needed by the plugin manager (gpup.exe) is not present under the updater directory.

Debug Information

Notepad++ v7.3.3 (64-bit) Build time : Mar 8 2017 - 03:39:58 Path : C:\Program Files\Notepad++\notepad++.exe Admin mode : OFF Local Conf mode : OFF OS : Windows 7 (64-bit) Plugins : PluginManager.dll mimeTools.dll NppConverter.dll

alanondra avatar Apr 23 '17 16:04 alanondra

@alanondra Which version of the plugin manager have you used? You need at least version https://github.com/bruderstein/nppPluginManager/releases/tag/v1.4.9.

Have you also copied gpup.exe to %APPDATA%\Notepad++\updater? Is the 64 bit version the only version of N++ you have installed or also the 32 bit one?

chcg avatar May 02 '17 16:05 chcg

I've only the 64-bit version, and yes, it's the latest version of the plugin. It is installed to C:\Users\alan\AppData\Roaming\Notepad++\updater\gpup.exe

On the plus side I'm now actually seeing plugins in the repository. Unfortunately I'm not able to install any of them as it's still somehow unable to find the binary.

alanondra avatar May 24 '17 00:05 alanondra

I tried to reinstall the plugin from the manager just to see what it's doing. Even though it's configured to load plugins from %APPDATA% it requests administrative permissions to update itself.

alanondra avatar May 30 '17 00:05 alanondra

@alanondra The admin privileges point is known, see #35.

chcg avatar Jun 13 '17 20:06 chcg

@alanondra That path for gpup.exe will only work if your notepad++.exe is in C:\Users\alan\AppData\Roaming\Notepad++\notepad++.exe, which it probably isn't. gpup.exe needs to be in .\updater\gpup.exe relative to notepad++.exe.

bruderstein avatar Jun 14 '17 20:06 bruderstein

So this should be treated as an extended function of Notepad++ instead of as a standard plugin?

alanondra avatar Jun 15 '17 15:06 alanondra

I had a similar problem, Extract gpup.exe (comes with installation) to C:\Program Files\Notepad++\updater and %APPDATA%\Notepad++\updater

luigi8bits avatar Jul 13 '17 14:07 luigi8bits

Thanks, I solved the problem following this post

cocoliso244 avatar Sep 27 '17 13:09 cocoliso244

Getting this same issue. I tried what @luigi8bits recommended but still get the error. Could this be related to permissions? Our users are not normally admin level and we have to login with a separate login to gain administrator privileges.

RodBarnes avatar Oct 01 '18 20:10 RodBarnes

I had a similar problem, Extract gpup.exe (comes with installation) to C:\Program Files\Notepad++\updater and %APPDATA%\Notepad++\updater

This works for me

yatin-infinity avatar Oct 09 '18 07:10 yatin-infinity

It worked with Windows 8.1 (x64). Unfortunately on Windows 10 no longer. I tried to install the 32-bit version on a pendrive and admin install it but it doesn't work (Win 10). (Unfortunately, my new PC doesn't work with Windows 8.1 : ( I think I'm using Visual Studio Code with (built-in) Emmet coding ;)

simonjanosbalint avatar Jan 20 '19 14:01 simonjanosbalint

@simonjanosbalint I don't this it is a Win10 problem, but more probably the changes of N++ to support the builtin PluginAdmin, which you might use as replacement of PluginManager. Starting with N++ 7.6.2 (https://notepad-plus-plus.org/download/v7.6.2.html) PluginAdmin is also part of the portable versions.

chcg avatar Mar 07 '19 20:03 chcg