Notepad++ with HexEdit won't run in Windows 7

2

1

I use Notepad++ v5.9.6.2 (Unicode) on Windows 7 (64 bit) and I have installed the HEX-Editor v0.9.5 plugin.

The problem is that only administrators now seem to be able to run Notepad++. With guests and normal users the following happens after launching:

  • First absolutely nothing happens for about 20 seconds.
  • Then a dialog called "C:\Program Files (x86)\Notepad++\plugins\HexEditor.dll" appears. It reads:

    Fail loaded

    This plugin is not compatible with current version of Notepad++.

    Do you want to remove this plugin from plugings directory to prevent this message from the next launch time?

  • After I click "No" a shorter wait, followed by another dialog, called "Exception On WM_CREATE". It reads:

    Unknown exception

Again, for administrators everything works fine.

I checked if it had anything to do with security constraints on the plugin files (or other Notepad++ files), but this doesn't appear to be the case. If I make a user member of Power Users but not Administrators, then Notepad++ works fine for this user as well. I granted the Power Users group almost the same local user rights as the Administrators group. (Administrative Tools > Local Security Policy > Security Settings > Local Policies > User Rights Assignment)

What could be the problem and how should this be fixed?

Rinke

Posted 2012-01-17T17:24:49.473

Reputation: 195

Answers

1

Try this:

  1. Log in as administrator
  2. Right click on Notepad++ and then property,
  3. In the compatibility tab, check "Run this program as administrator".
  4. Then click "Change setting for all users"
  5. Log out and log in with a guest account or normal user account
  6. Run Notepad++ again.

The problem is probably due to the fact that to access to .dll files requires administrator privileges.

chmod

Posted 2012-01-17T17:24:49.473

Reputation: 2 082

Thanks. To be clear: my "power user" is not in the admin group. That was the whole point. I did grant the power users group almost the same rights as admins in the "Local Security Policy". – Rinke – 2012-01-17T18:42:01.000

Letting all users run Notepad++ as administrators seems like a bad idea to me, but maybe I don't see it right. It seems to me that everyone would for example be able to browse the file system as an administrator through the "Open file" dialog. Not something I want. Is there an alternative you can think of? – Rinke – 2012-01-17T18:48:45.903

1

In my opinion it's independent of administrative privileges. A missing folder named plugins in C:\Users\%username%\AppData\Roaming\Notepad++ is the problem. After copying the data from the folder of another user the error is gone.

Ronald

Posted 2012-01-17T17:24:49.473

Reputation: 11

0

I think the problem is in fact an attempt by the plugin to modify restricted files somewhere in Notepad++'s installation directory. I had the same problem with Notepad++ itself, which I solved by installing in the Public user profile directory. It seems that Notepad++ and its plugin authors are not very conversant with Windows security arrangements. Aside from moving the installation directory, you could liberalize the security permissions on the relevant Program Files subfolders.

Also, I think that raw disk access, which a hex editor would likely seek to acquire (I know all the hex editors I have used have done so) may require administrative privilege.

kreemoweet

Posted 2012-01-17T17:24:49.473

Reputation: 3 884

Nope. Already checked it as I explained in my question. As a second check I added full control for "Everyone" to the whole Notepad++ subtree. Makes no difference. – Rinke – 2012-01-17T22:05:31.380

By the way, a hex editor does nothing special in terms of file access. If you can read a file, you can read all bytes. You can interpret these as encoded characters (as done by text editors) or you can simply show the raw bytes (as done by hex editors). – Rinke – 2012-01-18T15:02:24.253