Community
    • Login

    Installer vs. zip in WIndows 10

    Scheduled Pinned Locked Moved General Discussion
    26 Posts 7 Posters 3.7k 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.
    • Alan KilbornA
      Alan Kilborn @bokeron2020
      last edited by

      @bokeron2020 said in Installer vs. zip in WIndows 10:

      I should stop asking anything in forums unless I want useless discussions like this one.

      Actually, this discussion has been far from useless. There are things I didn’t know here.

      So, for anyone else who still cares to answer, the question still stands:

      What is the difference?

      This is probably not going to get an answer here, due to the small number of people reading it. Sure, there are many users of this forum, but I’d say the typical case is “jump on, post my question, get my answer, jump off never to return”.

      Given the small number likely to read, the likelihood of someone with the knowledge to answer is low.

      And, as this is not a true support forum, but rather a user community (users helping users), a developer isn’t likely to see this and answer.

      PeterJonesP Alan KilbornA 2 Replies Last reply Reply Quote -1
      • PeterJonesP
        PeterJones @Alan Kilborn
        last edited by

        @bokeron2020

        What is the difference?

        It’s been answered plenty of times. You just don’t like the answer. But I’ll try again.

        If you put the portable in the Program Files directory, then the difference between the installer and the portable is that installer comes as an executable file which automatically copies all of the appropriate files into AppData first, and sets up file associations; whereas the portable is just a zipfile that you have to extract yourself into the Program Files subfolder that you chose, and it will just lump everything in the Program Files, and then when Notepad++ runs and sees that it’s not willing to use Program Files to store user config data, it will copy some of the appropriate files into AppData. And, because it’s not designed to work that way, or tested to work properly in that condition, there’s a good chance that it will unearth bugs that would be avoided if you just used the installer to install in Program Files or just used the portable to run from some folder other than Program Files as designed. (That’s not an attack or a judgement call. It’s just a statement of fact about the program: it was designed to work differently between the two modes, and if you are trying to make one more look more like the other, then there’s a good chance it will get confused.)

        Going back to earlier posts from you

        I preferred the portable version because it kept all the plugins … under Program Files

        And since v7.6.3 in 2018, the same is true of the installed version. (Actually, I thought that was true of v7.5.9 and earlier as well… though then, I think maybe that the plugin DLLs could go in either the Program Files or in the AppData hierarchy; but it’s been about 3 years since I’ve actively used that version, so I don’t remember for sure.)

        I preferred the portable version because it kept all the … config in an easier to reach folder under Program Files.

        I am sorry, and I’m sure you’ll think this is attacking you or something, but I fail to see how %AppData%\Notepad++ is so much harder to access than %Program Files%\Notepad++ – using windows variables, it’s actually a shorter path to type.

        the question still stands:

        At the time you had said that, Terry had given you plenty of differences – including the two enumerated in his numbered list, which I will paraphrase as “1) if you run the portable from Program Files, then the portable behaves as you described, rather than like the portable run from anywhere else (whereas if you run the installed from Program Files, it behaves exactly as the installed is intended to behave” and “2) If you copy the portable into Program Files, then Notepad++ won’t show up in the list of installed apps in Windows settings”. Those were two differences that met your requirements for how you demanded we answer you, and you still didn’t accept it. I have given you more differences, but I doubt you will accept them, either.

        To sum up:

        1. Notepad++ was designed with the idea of the installer going to Program Files or the portable going into any other directory; and design decisions around v7.6.3 in 2018 reinforced that design ethos.
        2. If you install Notepad++ in Program Files
          1. the plugins go in Program Files
          2. user config files go in AppData;
          3. it can automatically set file associations and create the right click menu in Windows Explorer
          4. it will show up in Windows’ list of Installed programs, which means (among other things)
            • you can use the WIndows settings “Uninstall” feature to remove Notepad++
            • Notepad++ will show up in the “Open With” list of known apps
        3. If you unzip the portable Notepad++ in some other folder
          1. plugins will go in the unzipped folder
          2. config files will go in the unzipped folder
          3. it will not automatically set file associations or create right-click context menus in Windows Explorer
          4. it will not show up in the list of Windows installed programs, meaning
            • you cannot uninstall using windows dialogs
            • Notepad++ will not by default be in the “Open With”, and you will have to browse for the executable rather than picking it from the list
        4. If you unzip the portable Notepad++ into Program Files
          1. It will ignore doLocalConf.xml and still place config files in AppData
          2. It will still store plugins in the Program Files hierarchy
          3. It won’t create associations or right-click context menus
          4. it will not show up in the list of Windows installed programs
            • you cannot uninstall using windows dialogs
            • Notepad++ will not by default be in the “Open With”, and you will have to browse for the executable rather than picking it from the list
          5. You run the risk of uncovering a bug that wouldn’t ever show up if you used the program as intended by the designers

        If that list of differences is not sufficient, I am sorry. But that’s the best I can do.

        bokeron2020B Victorel PetrovichV 2 Replies Last reply Reply Quote 5
        • Alan KilbornA
          Alan Kilborn @Alan Kilborn
          last edited by

          @Alan-Kilborn said in Installer vs. zip in WIndows 10:

          This is probably not going to get an answer here

          When I said that I should have said:

          “This is probably not going to get an answer here that will satisfy the OP”

          :-)

          1 Reply Last reply Reply Quote 2
          • bokeron2020B
            bokeron2020 @PeterJones
            last edited by bokeron2020

            @PeterJones

            Despite your patronizing tone and your lack of perspective and empathy, your “to sum up” part is… the answer to the only question I made.

            I don’t care what anyone else think I should do, what should I expect or their point of view about what I find easier or not. I preferred the way the program worked before but I’m not even complaining about it, I SIMPLY wanted to learn what is the difference now between the two install methods available.

            So, this is it. Bye.

            Terry RT 1 Reply Last reply Reply Quote -1
            • artie-finkelsteinA
              artie-finkelstein
              last edited by

              Approaching this head-banging session <grin> from the left field:

              1. Install the installer version
              2. unzip the portable version in a separate folder NOT in the Program Files tree
              3. run a file/folder compare program across the 2+folders (PF & AppData .vs. portable)
              4. the static differences should now be apparent
              5. for the dynamic, operational differences I believe that @PeterJones summary is the best encapsulation of what I’ve absorbed from a few years of usage, manual reading and some forum browsing.

              Disclosure: I’ve not done this comparison, as I avoid letting Windows control the installation of programs as much as possible; but I’m pretty sure there won’t be any .exe/.dll file content differences and the only differences would show up in the .xml configuration files. I have extracted the individual files from an installation file using 7zip and found no differences in the .exe & .dll files .vs. the files found in the matching portable version.

              1 Reply Last reply Reply Quote 0
              • Terry RT
                Terry R @bokeron2020
                last edited by

                This post is deleted!
                1 Reply Last reply Reply Quote 0
                • Victorel PetrovichV
                  Victorel Petrovich @PeterJones
                  last edited by Victorel Petrovich

                  @PeterJones
                  That “To sum up” part is very useful information for any user to understand differences Installer vs Portable,
                  and would be good to be put in the user manual , in section https://npp-user-manual.org/docs/getting-started/ .

                  Perhaps adding another important difference (obvious for more advanced users) that Installer is for users with admin rights/password.

                  mkupperM 1 Reply Last reply Reply Quote 0
                  • mkupperM
                    mkupper @Victorel Petrovich
                    last edited by

                    I agree with @Victorel-Petrovich that there should be more in the manual about why the difference versions, including the minimalist one, exist and potential behavioral issues.

                    One issue is that it’s not clear if @donho has clearly defined the differences. It may well be that some of the observed differences, such as copying a portable version into %ProgramFiles% causes Notepad++.exe to ignore doLocalConf.xml were accidents and not by design. Is the same behavior true for %ProgramFiles(x86)%?

                    FWIW, a good reason for not running the portable version as “portable” in either ProgramFiles folder is that normal users don’t have write rights to the folder. The portable version expects to have write rights. That may be well why the Notepad++.exe ignores doLocalConf.xml and uses %AppData% which the user has write rights to. Is this ignoring doLocalConf.xml because the .exe is in a ProgramFiles folder or is it because it’s in some random folder that it does not have write rights to? We can test and discover this but is that a baked in design choice or an accident?

                    PeterJonesP 2 Replies Last reply Reply Quote 1
                    • PeterJonesP
                      PeterJones @mkupper
                      last edited by PeterJones

                      @mkupper , @Victorel-Petrovich ,

                      please see User Manual issue and draft pull request for my suggested implementation. Feel free to comment there with improvements.

                      1 Reply Last reply Reply Quote 3
                      • PeterJonesP
                        PeterJones @mkupper
                        last edited by PeterJones

                        @mkupper

                        One issue is that it’s not clear if @donho has clearly defined the differences

                        Looking at this code, it is intentional (though maybe no longer applicable; I doubt he’s checked again on Win8 or later).

                        mkupperM 1 Reply Last reply Reply Quote 2
                        • mkupperM
                          mkupper @PeterJones
                          last edited by

                          @PeterJones said in Installer vs. zip in WIndows 10:

                          @mkupper

                          One issue is that it’s not clear if @donho has clearly defined the differences

                          Looking at this code, it is intentional (though maybe no longer applicable; I doubt he’s checked again on Win8 or later).

                          Thank you. The code looks good. There are some weird edge cases such if on an x64 system if you install an x32 version of Notepad++ in the x64 folder and try to make that installation a doLocalConf.xml portable installation then it would work as you wanted but for the wrong reason…

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