• Login
Community
  • Login

Notepad++ Windows 11 Context Menu Provision For All Users?

Scheduled Pinned Locked Moved General Discussion
6 Posts 3 Posters 1.1k 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.
  • E
    erjh
    last edited by Jan 23, 2025, 5:19 PM

    I’ve had a bit of a search, but not seen anything specific to this question:

    Notepad++ appears to use a Windows 11 MSIX app of sorts to set up the “Edit with Notepad++” functionality in the normal Windows 11 Start menu. However, the installer just installs it for the current user, and I need to remove it in order to include it in an image generalized with Sysprep.

    What ideally I’d like to do is provision it for all users (eg use add-appxprovisionedpackage -online -packagepath “<path to the nppcontext.msix package>”) -skiplicense), but it’s just giving a generic failure message.

    I’m almost certainly missing something, but what?

    P 1 Reply Last reply Jan 23, 2025, 5:49 PM Reply Quote 1
    • P
      PeterJones @erjh
      last edited by Jan 23, 2025, 5:49 PM

      @erjh ,

      Notepad++ registers a Shell Extension when it is installed, which is what adds the “Edit with Notepad++” entry. It surprises me that it registers it only for the active user – there are Forum regulars here who understand the installer better than I, so I am hoping @xomx or someone similar will be able to chime in, and comment whether it’s feasible with the current installer architecture to make sure it’s registered for “all users”.

      The User Manual page describes the process of manually registering that Shell Extension, so maybe your automation process can replicate that, if there’s no way to make register-for-all-users part of the actual installer.

      E 1 Reply Last reply Jan 23, 2025, 6:15 PM Reply Quote 1
      • E
        erjh @PeterJones
        last edited by erjh Jan 23, 2025, 6:16 PM Jan 23, 2025, 6:15 PM

        Thanks for the reply, but I’m referring to the “Edit with Notepad++” entry on the “Modern” style Windows 11 context menu, which I’m fairly sure is implemented through the AppX package, not the shell extension DLL.

        The installer adds an AppX package for the current user called “NotepadPlusPlus_1.0.0.0_neutral__7njy0v32s6xk6”, which I need to remove in order for the image to generalize. “Edit with Notepad++” still appears in the classic context menu (ie, shift-right click) after removing the package, but is obviously gone in the Modern version.

        1 Reply Last reply Reply Quote 0
        • X
          xomx
          last edited by xomx Jan 23, 2025, 9:05 PM Jan 23, 2025, 8:35 PM

          Probably https://github.com/notepad-plus-plus/nppShell/issues/29

          Digest (if I understand it right):

          “the problem is that you cannot provision a sparse package on the machine level, since it doesn’t get installed by the user. Which is why we have to register the package for the user once they log in, since that is the way it can be done.
          I don’t know why Microsoft hasn’t implemented the logic to allowed provisioning sparse packages. If Notepad++ was delivered using the store instead, it should have worked, since it would be possible to provision it for everyone.”

          E 1 Reply Last reply Jan 23, 2025, 9:46 PM Reply Quote 1
          • E
            erjh @xomx
            last edited by Jan 23, 2025, 9:46 PM

            Much appreciated, thank you! If I understand the thread correctly, it should start working for a user anyway as it seems the package is triggered to be installed after a right-click.

            (As an aside, I loathe this new appx paradigm, I’m not sure what problem Microsoft thinks it solves)

            X 1 Reply Last reply Jan 24, 2025, 9:36 AM Reply Quote 2
            • X
              xomx @erjh
              last edited by Jan 24, 2025, 9:36 AM

              @erjh said in Notepad++ Windows 11 Context Menu Provision For All Users?:

              new appx paradigm, I’m not sure what problem Microsoft thinks it solves

              In a nutshell - APPX means MSIX, which in turn means containerization (isolation and possible virtualization in a sandbox) of the installed SW and, of course, easy deployment via the MS Store (also streaming, cloud attaching or traditional install possible).

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