• Login
Community
  • Login

Run as Admin

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
6 Posts 4 Posters 529 Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N
    Nachum Shmilovitz
    last edited by Jun 11, 2024, 8:07 AM

    The Run As Admin plug in removed from the plugin list a month ago (±)

    Any reason for that?

    Is there a different plugin that do the same?

    is there a way to download this plug in seperatly from the npp installer?

    It help me a lot when editing protected by admin privilage files as hosts

    Nachum

    X 1 Reply Last reply Jun 11, 2024, 12:01 PM Reply Quote 0
    • X
      xomx @Nachum Shmilovitz
      last edited by Jun 11, 2024, 12:01 PM

      @Nachum-Shmilovitz

      https://github.com/notepad-plus-plus/nppPluginList/commit/7a889ea7f1ea59deaa8fcae5185d759098a83fbc

      reason:
      https://github.com/notepad-plus-plus/notepad-plus-plus/issues/14990#issuecomment-2053828749

      workaround (works best if one has the N++ Preferences > Backup > “Enable session snapshot and periodic backup” ON:
      https://github.com/notepad-plus-plus/notepad-plus-plus/issues/14990#issuecomment-2090354660

      is there a way to download this plug in seperatly from the npp installer?

      https://github.com/Hsilgos/nppsaveasadmin/releases

      L N 2 Replies Last reply Jun 11, 2024, 6:53 PM Reply Quote 1
      • L
        Lycan Thrope @xomx
        last edited by Jun 11, 2024, 6:53 PM

        @xomx said in Run as Admin:

        workaround (works best if one has the N++ Preferences > Backup > “Enable session snapshot and periodic backup” ON:
        https://github.com/notepad-plus-plus/notepad-plus-plus/issues/14990#issuecomment-2090354660

        That’s how I usually do it, just so I know when something may be trying to write to those protected directories. It’s a bit of a pain, but not as much as trying to find out what wrote where, without knowing it, and screwing up something bigger.

        N 1 Reply Last reply Jun 13, 2024, 7:27 AM Reply Quote 0
        • N
          Nachum Shmilovitz @xomx
          last edited by Nachum Shmilovitz Jun 13, 2024, 7:28 AM Jun 13, 2024, 7:27 AM

          @xomx
          Thanks
          So i can not use it till the autor will fix it, right?

          i download the latest version and put it in the plugin folder and got the following on npp plugin admin

          c7444c04-cdcd-47ee-83e6-e1876d0cdc50-image.png

          1 Reply Last reply Reply Quote 0
          • N
            Nachum Shmilovitz @Lycan Thrope
            last edited by Jun 13, 2024, 7:27 AM

            @Lycan-Thrope
            Thanks
            as you say, its annoying

            D 1 Reply Last reply Jun 15, 2024, 10:58 AM Reply Quote 0
            • D
              dinkumoil @Nachum Shmilovitz
              last edited by Jun 15, 2024, 10:58 AM

              @Nachum-Shmilovitz
              I have never used Notepad++'s session snapshot and periodic backup feature, nor do I want Windows to decide when to install updates and restart my computer automatically (and took measures to stop it from doing so), so I have never encountered the problem of NUL char file corruption. That’s the reason why I’m not happy with the disablement of the NppSaveAsAdmin plugin, too.

              My workaround is to patch the version info of the plugin’s DLL file to outwit Notepad++'s compatibility check in PluginsAdmin. This can be done with the small tool Resource Hacker . I set the version number from 1.0.211 to 1.0.212, so the plugin can be used again. After saving a file with the plugin Notepad++ shows an error dialog mentioning an invalid handle but nevertheless the file gets saved correctly.

              The other option, patching Notepad++'s nppPluginList.dll file, doesn’t work because this file is signed. Any changes of this file prevents it from being loaded with Notepad++.

              1 Reply Last reply Reply Quote 1
              4 out of 6
              • First post
                4/6
                Last post
              The Community of users of the Notepad++ text editor.
              Powered by NodeBB | Contributors