wingup icon indicating copy to clipboard operation
wingup copied to clipboard

GUP asking for elevated privileges even when called from Notepad++ portable

Open thorsten-gehrig opened this issue 5 months ago • 4 comments

Hi we´re using Notepad++ portable installations within our company. The GUP.exe is asking for elevated rights to update from any given version to the lastest. My request is to make a) GUP aware of portable versions b) upgrading/replacing portable Notepad++ by the latest version of portable Notepad++ without asking for elevated privileges.

Best Thorsten

thorsten-gehrig avatar Jul 23 '25 12:07 thorsten-gehrig

If I do understand, your request is "GUP aware of portable versions, then it doesn't elevated privileges". If it is, then I can say that GUp doesn't elevated privileges - Notepad++ installer is. So it's not a GUp issue.

donho avatar Jul 23 '25 16:07 donho

ok - do I understand correctly - Notepad++ portable is calling GUP which is updating to Notepad++ "non-portable" and that's why elevated rights are required?

In any case: it´s a weir user experience starting an update from a portable version - which doesn't need elevated rights do end into a request for elevated rights (which many portable users doesn't have)...

Best Thorsten

thorsten-gehrig avatar Jul 23 '25 18:07 thorsten-gehrig

ok - do I understand correctly - Notepad++ portable is calling GUP which is updating to Notepad++ "non-portable" and that's why elevated rights are required?

It's rather the installer deals with both portable & non-portable mode.

In any case: it´s a weir user experience starting an update from a portable version - which doesn't need elevated rights do end into a request for elevated rights (which many portable users doesn't have)...

But since the installer deal with 2 modes, it has to be "packaged" with elevating rights capacity - there's no way, in NSIS script, to elevate the right dynamically.

donho avatar Jul 23 '25 18:07 donho

Not sure why the installer has to deal with 2 modes - the portable version just needs to "unpack"/replace the files in the directory where the old portable version was located. Such shouldn't need elevated rights...

thorsten-gehrig avatar Jul 23 '25 18:07 thorsten-gehrig