I just installed v5.6.6 and am getting an error in context sensitive menu when i try to choose 'edit with notepad++'. I'm on Windows Vista x64 machine and previously was on v5.1.x.
i use this command 20+ times a day, so i would like to fix.
any ideas where this comes from, please?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2010-02-07
I have the same issue, 64-bit windows 7 in notepad++ version 5.6.6, and it's super annoying - I can't right-click and pick 'edit this in notepad', and I can't drag files from explorer onto the notepad++ window. The former operation triggers the error, the latter just replaces the normal cursor with a circle with a slash through it, and doesn't open the file when it's 'dropped'. I can, however, drag a file down to the notepad++ icon 'pinned' to the taskbar, then 'pin' the file to the application, right-click the application on the taskbar, and choose it from the list, and it opens fine.
this is pretty bad - np++ is a pretty integral part of my development workflow, and anything that interrupts my focus is a really big deal. this bug really needs some attention.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Its related to elevation, and as of yet I have been unable to reproduce it. I don't know much about it, but the restricted user account I created still allows me to run notepad++ from the context menu. Do you have the autoupdater installed and does removing it (temporarily) help? Or a manifest file in the notepad++ directory? Or the doLocalConf.xml file?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
well, i do not know how, but this problem appears to have resolved itself. i did nothing explicitly to cause that to happen - my (feeble) theory is that the new install wasn't immediately recognized, but perhaps on reboot or something got the necessary permissions or whatever. but i have no idea what i'm talking about - it's just a guess. i just know that my vista system is often very finicky about permissions, so i chalk it up to that.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I think I have discovered the cause of this annoyance. As Microsoft would
say "it is by design". If you set ANY shortcut to Notepad++ to run as an
administrator that tags the executable to run with elevated privilege no
matter how it is started. The API used by right click extension to
Explorer cannot start an elevated process by design.
Now here is how I worked around the problem. Right click on the
notepad++.exe file itself and remove the run as administrator check box.
You probably put it there because you constantly edit UAC protected files.
Copy notepad++.exe to another name in the same folder. I used
NotePad++_Elevated.exe. Right click and set the copy to run elevated. You
will still not be able to right click and edit a protected file as it runs
the non-elevated copy. But you can create a shortcut to load the protected
file you constantly edit with the elevated copy of Notepad++.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I just installed v5.6.6 and am getting an error in context sensitive menu when i try to choose 'edit with notepad++'. I'm on Windows Vista x64 machine and previously was on v5.1.x.
I notice bug report submitted for exactly this issue a couple of weeks ago, but no response as yet: https://sourceforge.net/tracker/index.php?func=detail&aid=2935314&group_id=95717&atid=612382
i use this command 20+ times a day, so i would like to fix.
any ideas where this comes from, please?
I have the same issue, 64-bit windows 7 in notepad++ version 5.6.6, and it's super annoying - I can't right-click and pick 'edit this in notepad', and I can't drag files from explorer onto the notepad++ window. The former operation triggers the error, the latter just replaces the normal cursor with a circle with a slash through it, and doesn't open the file when it's 'dropped'. I can, however, drag a file down to the notepad++ icon 'pinned' to the taskbar, then 'pin' the file to the application, right-click the application on the taskbar, and choose it from the list, and it opens fine.
this is pretty bad - np++ is a pretty integral part of my development workflow, and anything that interrupts my focus is a really big deal. this bug really needs some attention.
Its related to elevation, and as of yet I have been unable to reproduce it. I don't know much about it, but the restricted user account I created still allows me to run notepad++ from the context menu. Do you have the autoupdater installed and does removing it (temporarily) help? Or a manifest file in the notepad++ directory? Or the doLocalConf.xml file?
well, i do not know how, but this problem appears to have resolved itself. i did nothing explicitly to cause that to happen - my (feeble) theory is that the new install wasn't immediately recognized, but perhaps on reboot or something got the necessary permissions or whatever. but i have no idea what i'm talking about - it's just a guess. i just know that my vista system is often very finicky about permissions, so i chalk it up to that.
you just have to don't "run as administrator" ( right clic / "properties" on "notepad++.exe in tour install folder) and waiting updates ;)
Try to rename notepad++.exe to notepadpp.exe and change path in shortcuts. that works for me.
And replace notepad++.exe to notepadpp.exe in contextual menu key-value in registry
The rename works great! Thanks. Looks like "++" in the program name does not work for x64 Vista/Win7.
I think I have discovered the cause of this annoyance. As Microsoft would
say "it is by design". If you set ANY shortcut to Notepad++ to run as an
administrator that tags the executable to run with elevated privilege no
matter how it is started. The API used by right click extension to
Explorer cannot start an elevated process by design.
Now here is how I worked around the problem. Right click on the
notepad++.exe file itself and remove the run as administrator check box.
You probably put it there because you constantly edit UAC protected files.
Copy notepad++.exe to another name in the same folder. I used
NotePad++_Elevated.exe. Right click and set the copy to run elevated. You
will still not be able to right click and edit a protected file as it runs
the non-elevated copy. But you can create a shortcut to load the protected
file you constantly edit with the elevated copy of Notepad++.
Thanks charlism, this works perfectly.