Notepad++ installer asking for elevated priviledge



  • Could you please make the future notepad++ installers ask for elevated priviledge instead of just getting and error when trying to update it and copy files.



  • Hello @Jesper-Lyngholm-Rasmussen

    doesn’t it do it already? What did I misunderstood?

    Alt link

    Cheers
    Claudia



  • Everytime me and my colleagues upgrade notepad++ through the updater we get this error:

    Picture of the error

    We then always need to find the update file under %temp% folder, right click and choose run as administrator. Then everything runs fine.
    We dont get any UAC promt.



  • Hello @Jesper-Lyngholm-Rasmussen,

    could it be that you changed the uac settings? (Maybe globally by group policy?)
    How do you run npp normally? As privileged or non-privileged user?
    I assume the installation is done on desktops not in a terminal server environment, isn’t it?
    Could you post the debug info (available under ? menu)?

    Cheers
    Claudia



  • Hi Claudia

    Yes I can see the UAC settings are changed via group policy.
    Check here
    The 2 marked are changed from the default settings.

    npp runs as non-priviledged user, but the user logged on is a part of local adminstrators group.

    Yes is run on desktops that is not a terminal og remoted into.

    Debug info:
    Notepad++ v6.9
    Build time : Feb 21 2016 - 21:27:55
    Path : C:\Program Files (x86)\Notepad++\notepad++.exe
    Admin mode : OFF
    Local Conf mode : OFF
    OS : Windows 8.1
    Plugins : mimeTools.dll NppConverter.dll NppExport.dll NppFTP.dll PluginManager.dll

    If we run other installations and setups we get promtet with UAC to elevate. But this is the only installation that does not do.



  • I just noticed if I uninstall NPP I dont get promtet for UAC
    If I install from new from a network locations I dont get promtet for UAC
    When updating through the NPP updater I just get the error.



  • Hi Jesper,

    when seeing your gpo settings I would have argued that it is normal
    that you don’t get an uac prompt as it has been disabled but you are saying
    that other application installation do prompt for uac confirmation.
    Hmm … confused.

    Then I was looking what the installer does and I got even more confused,
    as the error, that you get, points to the fact the installation has already started.
    Because before SciLexer.dll gets written, there are already 9 other files written to disk.
    So I assume that, why ever, SciLexer.dll was still locked.

    Can you find out what is used as domain controller? W2k3, W2k8 … ???
    Maybe I do get a chance to setup a similar environment and do some
    further testing to find out what is going on.

    Cheers
    Claudia



  • Hi Claudia,

    We are doing some migration at the moment from W2k8 to W2k12 so we have domain controllers running both OS.
    I was also confused when I saw the GPO, that other applications do promt for UAC.
    I hope you find something :)

    Best regards
    Jesper


Log in to reply