Community
    • Login

    New Plugins Home (Round 2)

    Scheduled Pinned Locked Moved Notepad++ & Plugin Development
    57 Posts 18 Posters 57.0k 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.
    • V S RawatV
      V S Rawat
      last edited by

      I might have a 64 bit w10, and might have 32 bit w8, and I may have npp 32/64 bit in those.

      so, if <pluginin_home> is single in both o.s, npp, I wil face problems when using same npp installation in both o.s.

      of course, if I manually define different <plugin_home> for both o.s., but then if you are also considering to define a new <USERS_HOME>, then <plugin_home> will become fixed relative to this variable, and that single location can’t have both 32 and 64 bit plugins together.

      so, my suggestion is while defining default <plugin_home>, it will become required if that can be kept separate for 32-bit and 64-bit, and future 128-bit and 256-bit so on.

      Thanks.

      Meta ChuhM 1 Reply Last reply Reply Quote 1
      • V S RawatV
        V S Rawat @Meta Chuh
        last edited by

        @Meta-Chuh

        But npp.ini (whatever the name is) has to remain in npp’s intallation folder in program files.

        Why keep npp.ini file to a different location?

        Even if we have kept a copy of our previous npp.ini file safe in our pc or in backup, we can copy that single file to npp’s intallation folder after installing it, then it can read all things from there.

        Then how does that local.xml file help over .ini file. We have to create/ copy xml file also once?

        1 Reply Last reply Reply Quote 1
        • Meta ChuhM
          Meta Chuh moderator @V S Rawat
          last edited by

          @V-S-Rawat

          Many users don’t know what plugin is, and they will never use a plugin for years of using npp, so there is no point in making every user take the important decision about placement of plugins in programfiles or users\roaming right at the time of installation.

          that’s one of the reasons why a built in plugins admin exists now.
          plugins admin will make sure that the users you mentioned, don’t have to care where to put their plugins, and it will put the (re)installed plugins to the correct locations, even if the location changes, as it is built from the same developers that decide the folder structures.

          1 Reply Last reply Reply Quote 2
          • Meta ChuhM
            Meta Chuh moderator @V S Rawat
            last edited by

            @V-S-Rawat said:

            I am not comfortable with the suggestion of Meta Chuh and pnedev about “extra sub-folder per plugin” made in other thread.
            every plugin should have one .dll then it can be kept without needing any folder hierarchy structure.

            yes i know, and i understand your primary reasons, to keep the old plugins structure as it was, because all older plugins will just work out of the box, just the way they’ve always worked.

            but i think you’ll like the new structure, once all transitions are over and everything has calmed down a bit.
            and we will help you through your needs as always, like you are used to, to keep your system running.

            1 Reply Last reply Reply Quote 2
            • Meta ChuhM
              Meta Chuh moderator @V S Rawat
              last edited by Meta Chuh

              @V-S-Rawat said:

              I might have a 64 bit w10, and might have 32 bit w8, and I may have npp 32/64 bit in those.
              so, if <pluginin_home> is single in both o.s, npp, I wil face problems when using same npp installation in both o.s.

              yes, as i’ve seen at the latest builds, your wish has been granted ;-)
              all plugins will (again) reside in their respective x86 or 64 bit program folders and will not get in conflict with each other.

              But npp.ini (whatever the name is) has to remain in npp’s intallation folder in program files.
              Why keep npp.ini file to a different location?

              because non administrator users don’t have the permission to write to %ProgramFiles% and %ProgramFiles(x86)% and therefore would not be able to make any config changes without the help of an administrator … and administrators usually don’t like to be called for every little font change one of his users thinks he needs right now 😉

              btw: wow, today you write more posts, questions or requests … and much faster than anyone can answer 😂😂😂

              side note:
              the config file is called config.xml file located at %AppData%\Notepad++\config.xml of an installed version, and located at npp.7.x.x.bin\config.xml of a portable version.
              it’s just like an “ini” file, but with a different, (probably) more readable syntax, as it is more structured and segments are foldable for easier reading if you want to analyse a certain part of it.

              V S RawatV 4 Replies Last reply Reply Quote 2
              • V S RawatV
                V S Rawat @Meta Chuh
                last edited by

                @Meta-Chuh said:

                yes, as i’ve seen at the latest builds,

                latest builds? how do you get them? beta testing or RC? Privileged one. :-)

                download page still has Jan 1 release when I last saw that.

                Thanks.

                Meta ChuhM 1 Reply Last reply Reply Quote 1
                • V S RawatV
                  V S Rawat @Meta Chuh
                  last edited by

                  @Meta-Chuh said:

                  @V-S-Rawat said:

                  But npp.ini (whatever the name is) has to remain in npp’s intallation folder in program files.
                  Why keep npp.ini file to a different location?

                  because non administrator users don’t have the permission to write to %ProgramFiles% and %ProgramFiles(x86)% and therefore would not be able to make any config changes without the help of an administrator … and administrators usually don’t like to be called for every little font change one of his users thinks he needs right now 😉

                  if so, then METHINK there should be

                  • one configAdmin.xml that only Admin can change and that can be put in npp install folder, users don’ t change that.

                  • another configUser.xml that the user can keep at wherever location and the user should be able to change it without disturbing Admin.

                  both files should have settings that Admin or user respectively need to change. fonts etc can be in configUser. xml.

                  Thanks.

                  1 Reply Last reply Reply Quote 1
                  • V S RawatV
                    V S Rawat @Meta Chuh
                    last edited by

                    @Meta-Chuh said:

                    @V-S-Rawat said:

                    btw: wow, today you write more posts, questions or requests … and much faster than anyone can answer 😂😂😂

                    Thanks for the compliment. :-)
                    (pretending as if I didn’t understand that it was actually a complain. :-) :-) )

                    1 Reply Last reply Reply Quote 1
                    • V S RawatV
                      V S Rawat @Meta Chuh
                      last edited by V S Rawat

                      @Meta-Chuh said:

                      side note:
                      the config file is called config.xml file located at %AppData%\Notepad++\config.xml of an installed version, and located at npp.7.x.x.bin\config.xml of a portable version.
                      it’s just like an “ini” file, but with a different, (probably) more readable syntax, as it is more structured and segments are foldable for easier reading if you want to analyse a certain part of it.

                      disagree.

                      xml files have hard fixed structures and use additional terms that are strange to non-programmer users.

                      ini files are normal text files that are easy, having
                      [Sectionname]
                      Variable1=value1
                      Variable2=value2

                      These are much easier to understand and edit by a common user who doesn’t know any programming.

                      by making elementary use of npp difficult to non-programmer users, we are limiting npp’s prevalence and popularity.

                      My this complain is million time amplified for defining shortcuts and creating macros due to the xml structure.

                      Thanks.

                      1 Reply Last reply Reply Quote 1
                      • Meta ChuhM
                        Meta Chuh moderator @V S Rawat
                        last edited by Meta Chuh

                        @V-S-Rawat

                        if you don’t want to compile notepad++ yourself, you can go to the notepad++ commit page at github like shown on the screenshot below, and do a mouse click on the green “check” on any commit that might interest you.

                        Imgur

                        after you clicked the green check, press “details” which will lead you to the appveyor page as seen on the next screenshot.

                        Imgur

                        there you click on your desired release configuration, like Configuration: Unicode Release; Platform: x64 and click on artifacts on the left as seen here:

                        Imgur

                        now click on Notepad++.X64.Unicode Release.exe of this example to download it, and copy it to your notepad++ install or portable folder (same place where your current notepad++.exe is located).

                        now start notepad++ by double clicking on the Notepad++.X64.Unicode Release.exe that you’ve just placed there.

                        … happy testing 😉😉

                        1 Reply Last reply Reply Quote 3
                        • V S RawatV
                          V S Rawat
                          last edited by V S Rawat

                          Thanks for elaborate guidance, I was not aware of that.

                          But why should I do it? What is a markup language and how does that help me in which of my requirements? (By any chance, are you believing me to be a computer wizard? Wrong assumption, dear sir :-) )

                          Thanks.

                          Meta ChuhM 1 Reply Last reply Reply Quote 2
                          • Meta ChuhM
                            Meta Chuh moderator @V S Rawat
                            last edited by Meta Chuh

                            @V-S-Rawat

                            But why should I do it? What is a markup language and how does that help me in which of my requirements? (By any chance, are you believing me to be a computer wizard? Wrong assumption, dear sir :-) )

                            you asked:

                            latest builds? how do you get them? beta testing or RC? Privileged one. :-)
                            download page still has Jan 1 release when I last saw that.

                            and you get an answer, that’s the way it should work 😉

                            btw: due to your tourette posting syndrom of today 😂😂😂, i’d suggest it’s better if you open your own thread for any further of your personal questions, this one is getting quite unreadable.
                            (my apologies to all readers)

                            1 Reply Last reply Reply Quote 3
                            • Shamu35 NPPS
                              Shamu35 NPP
                              last edited by

                              How to Install plugins as non administrator user?

                              1. Option:
                                Install NPP into “%ProgramFilesx86%”. But during install or upgrade of a plugin, there will be displayed an UAC dialog which prompts for an admin accout. Therefore this is not a possible option.

                              2. Option:
                                Install NPP into “C:\Notepad++” and add “doLocalConf.xml” into this folder. Additionally give write access for the users group for this folder. The users (non administrators) are now able to install or upgrade plugins without an UAC prompt.
                                So far so good, but the main problem is, that now the configuration files are also located in “C:\Notepad++” and not in the userprofile anymore.
                                This leads to problems on shared computers which are used by different users. They don’t have their own configuration of NPP anymore.

                              Is there a different solution which I don’t know for solving this problem?
                              The main requirement is: Our users (which are not admins) should be able to install plugins by themselves.

                              Artem Sh.A 1 Reply Last reply Reply Quote 4
                              • Artem Sh.A
                                Artem Sh. @Shamu35 NPP
                                last edited by

                                @Shamu35-NPP said:

                                The main requirement is: Our users (which are not admins) should be able to install plugins by themselves.

                                This is critical for us as well.

                                1 Reply Last reply Reply Quote 1
                                • PeterJonesP
                                  PeterJones
                                  last edited by PeterJones

                                  @Shamu35-NPP & @Artem-Sh :

                                  If it is critical for users to be able to install plugins by themselves, either give them local-administrator privileges, or install in an alternate location: if you use the installer, but put it in (say) c:\usr\apps\Notepad++ instead of c:\program files\notepad++, then they should have the write privileges necessary to install plugins themselves.

                                  The reason I suggest this workaround, rather than agree that it should be changed: you aren’t the only one with a critical requirement. Others have a security-critical requirement of users not being able to install plugins, which is the exact opposite of your requirement. So, if you have admin privileges locked down, the options are to install into program files to protect notepad++ and prevent user-installed plugins, or install somewhere else with write-privileges to allow user-installed plugins, or to use a portable edition with doLocalConfig.xml to keep everything bundled in one writeable directory (or protected directory, if that’s what you prefer).

                                  My workplace uses Avecto Defendpoint (and I’m sure there are other similar), which allows locking down certain Admin tasks, but allowing others; so, when I try a UAC action, Avecto Defendpoint checks my privileges, and if I’m allowed to do that local-admin task, it lets me, otherwise it prevents me. Maybe something like that would work to grant partial Admin privileges to your users. I am not an expert on the IT/Admin side of things, so that’s about as much about Avecto Defendpoint as I know.

                                  Shamu35 NPPS 1 Reply Last reply Reply Quote 4
                                  • Shamu35 NPPS
                                    Shamu35 NPP @PeterJones
                                    last edited by

                                    @PeterJones said:

                                    or install in an alternate location: if you use the installer, but put it in (say) c:\usr\apps\Notepad++ instead of c:\program files\notepad++, then they should have the write privileges necessary to install plugins themselves.

                                    This doesn’t work! There is still an UAC prompt during installation of a plugin although I give write permissions for this folder. Additionally it needs doLocalConf.xml but this leads to problems on shared computers, because all plugins are installed in the installdir of NPP and not in the userprofile. I explained this already as “2. Option:” in my posting above.

                                    you aren’t the only one with a critical requirement. >

                                    Yes of course. But it had worked for years and now it’s broken for my needs and I have not found a solution for this new situation. Currently I’m not able to upgrade NPP to Version =>7.6

                                    1 Reply Last reply Reply Quote 1
                                    • PeterJonesP
                                      PeterJones
                                      last edited by

                                      @Shamu35-NPP ,

                                      This doesn’t work!

                                      No need to yell at me. I’m a volunteer, spending my own time to try to help fellow users of Notepad++. I’m trying my best, but since I’m not on your computer, I cannot tell what problems you may or may not have.

                                      Ignoring the UAC issue right now (that seems like a bug in the installer, to me; it shouldn’t need UAC to install in a non-program-files location, but we can come back to that). When you say “additionally, it needs doLocalConf.xml” when you installed into a non-protected area, what did you mean by that? What didn’t work if you don’t doLocalConf.xml?

                                      Currently I’m not able to upgrade NPP to Version =>7.6

                                      So is there a reason you can’t just stick with v7.5.9? With some apps, like internet-facing browsers, it’s good to always stay on top of updates for security reasons. But for an app like a fancy text editor, it’s not so dangerous to just stay on a version that already works for you. Turn off auto-updates, and stick with the version that’s “good enough”, that does what you want, even if it’s not the latest-and-greatest. There haven’t been a lot of killer-features added, mostly just incremental changes recently. Personally, if i weren’t trying to help people on the forum, I would still be on 7.5.8 right now.

                                      1 Reply Last reply Reply Quote 4
                                      • Vitaliy DovganV
                                        Vitaliy Dovgan
                                        last edited by

                                        I have a tricky question. What if one wants to create a plugin named “Doc” or “Config”? This plugin should reside in a folder with the corresponding name, right? ;)

                                        Meta ChuhM V S RawatV 2 Replies Last reply Reply Quote 3
                                        • Meta ChuhM
                                          Meta Chuh moderator @Vitaliy Dovgan
                                          last edited by

                                          @Vitaliy-Dovgan

                                          you’ve just made my day 👍

                                          😂😂😂

                                          1 Reply Last reply Reply Quote 2
                                          • V S RawatV
                                            V S Rawat @Vitaliy Dovgan
                                            last edited by

                                            @Vitaliy-Dovgan said:

                                            :-)

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