Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incompatible plugin is not deleted when asked for in the warning message #9377

Closed
vlakoff opened this issue Jan 9, 2021 · 1 comment
Closed
Assignees

Comments

@vlakoff
Copy link
Contributor

vlakoff commented Jan 9, 2021

Description of the Issue

Trying out an old ANSI plugin, when starting Notepad++ a warning message is displayed. This message says the plugin is incompatible, and offers to delete it. However, when choosing to delete the plugin, it is not deleted actually. I also tried by running Notepad++ as an administrator, the issue also occurs.

Steps to Reproduce the Issue

  1. Download an old ANSI plugin, for instance ConvertExt, here: http://notepad-plus.sourceforge.net/commun/pluginsBin/ConvertExt_v11RC1.zip
  2. Manually install the DLL, e.g. to C:\Program Files (x86)\Notepad++\plugins\ConvertExt\ConvertExt.dll
  3. Start Notepad++. The following warning message should be displayed:

plugin incompatibility warning message

Expected Behavior

When clicking on "Yes", the plugin should be deleted (or maybe, rather just moved outside the plugin folder).

Actual Behavior

When clicking on "Yes", the plugin isn't deleted actually. Thus, the warning message continues to appear at subsequent Notepad++ launches.

Debug Information

Notepad++ v7.8.9 (32-bit)
Build time : Jul 15 2020 - 20:26:50
Path : C:\Program Files (x86)\Notepad++\notepad++.exe
Admin mode : OFF
Local Conf mode : OFF
OS Name : Windows 10 Enterprise (64-bit)
OS Version : 2004
OS Build : 19041.685
Current ANSI codepage : 1252
Plugins : LightExplorer.dll NppFTP.dll

@chcg
Copy link
Contributor

chcg commented Jan 10, 2021

Issue could be reproduced.

is called with the correct filename, but the dll seems to be still loaded and therefore can't be deleted.

By adding ::FreeLibrary(pi->_hLib); before ::DeleteFile(pluginFilePath); is correcting this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants