Installer vs. zip in WIndows 10
-
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:
- 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.
- If you install Notepad++ in Program Files
- the plugins go in Program Files
- user config files go in AppData;
- it can automatically set file associations and create the right click menu in Windows Explorer
- 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
- If you unzip the portable Notepad++ in some other folder
- plugins will go in the unzipped folder
- config files will go in the unzipped folder
- it will not automatically set file associations or create right-click context menus in Windows Explorer
- 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
- If you unzip the portable Notepad++ into Program Files
- It will ignore
doLocalConf.xml
and still place config files in AppData - It will still store plugins in the Program Files hierarchy
- It won’t create associations or right-click context menus
- 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
- You run the risk of uncovering a bug that wouldn’t ever show up if you used the program as intended by the designers
- It will ignore
If that list of differences is not sufficient, I am sorry. But that’s the best I can do.
-
@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”
:-)
-
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.
-
Approaching this head-banging session
<grin>
from the left field:- Install the installer version
- unzip the portable version in a separate folder NOT in the Program Files tree
- run a file/folder compare program across the 2+folders (PF & AppData .vs. portable)
- the static differences should now be apparent
- 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. -
This post is deleted! -
@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.
-
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 ignoredoLocalConf.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 ignoringdoLocalConf.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? -
@mkupper , @Victorel-Petrovich ,
please see User Manual issue and draft pull request for my suggested implementation. Feel free to comment there with improvements.
-
-
@PeterJones said in Installer vs. zip in WIndows 10:
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…