• Login
Community
  • Login

How to update the portable version?

Scheduled Pinned Locked Moved General Discussion
40 Posts 12 Posters 9.8k 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.
  • M
    Michael DiGregorio
    last edited by Mar 7, 2019, 11:18 PM

    Can someone please tell me how to update my portable version of NPP? I used to be able to just unzip the new version over my current version (except for the shortcuts.xml), and all would be fine. But the last few updates, every time I do that, all my settings are wiped. Is there an easier way to update the portable version? Thanks.

    M 1 Reply Last reply Mar 7, 2019, 11:30 PM Reply Quote 1
    • P
      PeterJones
      last edited by Mar 7, 2019, 11:23 PM

      Any xml you overwrite has the potential to reset settings, not just shortcuts.xml. This has always been true.

      1 Reply Last reply Reply Quote 1
      • M
        Meta Chuh moderator @Michael DiGregorio
        last edited by Meta Chuh Mar 8, 2019, 12:01 AM Mar 7, 2019, 11:30 PM

        @Michael-DiGregorio

        the current and “last few” portable versions of notepad++ contain an old config.xml, dated to 2018.12.25 18:16.

        if you update your portable version, please do not extract it directly to your portable folder.

        extract it to a temporary location instead, e.g. your desktop, and copy everything from there to your portable folder except config.xml and shortcuts.xml

        1 Reply Last reply Reply Quote 3
        • M
          Michael DiGregorio
          last edited by Mar 7, 2019, 11:53 PM

          Thanks for the replies.

          I’ve done as Meta Chuh suggested and copied everything except config.xml and shortcuts.xml. My settings have been retained.

          Very much appreciated. :-)

          1 Reply Last reply Reply Quote 2
          • L
            László Botka
            last edited by László Botka Mar 9, 2019, 11:30 AM Mar 9, 2019, 11:29 AM

            Maybe the update could contain these two files with other names, and notepadd++ rename or copy them if needed.

            A 1 Reply Last reply Mar 9, 2019, 1:26 PM Reply Quote 0
            • A
              Alan Kilborn @László Botka
              last edited by Mar 9, 2019, 1:26 PM

              @László-Botka

              I think you miss the point.

              1 Reply Last reply Reply Quote 0
              • L
                László Botka
                last edited by Mar 9, 2019, 3:26 PM

                I do that, and it works. What is the point?

                A 1 Reply Last reply Mar 9, 2019, 4:56 PM Reply Quote 0
                • A
                  Alan Kilborn @László Botka
                  last edited by Mar 9, 2019, 4:56 PM

                  @László-Botka

                  When you said, “Maybe the update could contain these two files with other names, and notepadd++ rename or copy them if needed.”

                  The point of the portable version is that it doesn’t do this. It isn’t wanted or needed.

                  1 Reply Last reply Reply Quote 1
                  • L
                    László Botka
                    last edited by Mar 9, 2019, 7:38 PM

                    As
                    @Meta-Chuh said:

                    @Michael-DiGregorio

                    extract it to a temporary location instead, e.g. your desktop, and copy everything from there to your portable folder except config.xml and shortcuts.xml

                    I’ve been doing this since several releases.
                    I thought the update could contain these files named as for example config-initial.xml and shortcuts-initial.xml, so, if the user copy the update files, the two files remain unchanged. Notepad++ could use these -initial files to create the config.xml and shortcuts.xml, if they don’t exist .

                    M 1 Reply Last reply Mar 9, 2019, 9:22 PM Reply Quote 1
                    • A
                      Adriano Ellero
                      last edited by Mar 9, 2019, 8:13 PM

                      Actually I have been using NPP 7.6.3 32bit version (ZIP file).
                      Today I have downloaded latest version of NPP (7.6.4) 64bit version today through ZIP file extraction.
                      I have found out that the settings in windows 10 are stored in user directory: C:\Users\userNAME\AppData\Roaming\Notepad++ , while I have installed all NPP versions in different folders: C:\Program Files for 64bit programs, and C:\Program Files (x86) for 32bit programs.
                      Opening for the first time the new release, all settings have been kept as before.
                      The only trouble is depending on the fact that not all plug-ins are suitable for 64bit version.

                      M 1 Reply Last reply Mar 9, 2019, 9:34 PM Reply Quote 1
                      • M
                        Meta Chuh moderator @László Botka
                        last edited by Meta Chuh Mar 10, 2019, 4:34 PM Mar 9, 2019, 9:22 PM

                        @László-Botka

                        Notepad++ could use these -initial files to create the config.xml and shortcuts.xml, if they don’t exist .

                        yes, good idea.
                        the config.xml does not have to be distributed at all.
                        a default config.xml will be created automatically by notepad++ on startup, if it does not exist.

                        all four portable versions, both zip and 7z, both x64 and x86, currently contain an old config.xml, dated to 2018.12.25 18:16.
                        i have already requested the removal of config.xml from the portable versions.
                        let’s see if it will be removed in the future.

                        note:
                        the minimalist 7z packages (x86/x64) do not contain a config.xml physical file and will create one if it does not exist.
                        but it does contain a shortcuts.xml (see reasons below).
                        the minimalist 7z packages are currently the best choice, if you just want to update your existing notepad++ core files.

                        regarding shortcuts.xml, this would be more difficult to handle, as notepad++ does not create one if it’s missing, like a missing config.xml, and currently it does also not create one from a shortcuts.master.xml template file.

                        ps:

                        just in case anyone likes, or wants to use this feature:
                        you can make a copy of your favourite config.xml at the same location, and rename your copy to config.master.xml.

                        if you would now accidentally overwrite it with a config from a newer portable release, just delete the config.xml and notepad++ will create a new one, with all settings of your config.master.xml template, instead of using default settings.

                        K 1 Reply Last reply Aug 7, 2019, 5:43 PM Reply Quote 2
                        • M
                          Meta Chuh moderator @Adriano Ellero
                          last edited by Mar 9, 2019, 9:34 PM

                          @Adriano-Ellero

                          I have found out that the settings in windows 10 are stored in user directory: C:\Users\userNAME\AppData\Roaming\Notepad++ , while I have installed all NPP versions in different folders: C:\Program Files for 64bit programs, and C:\Program Files (x86) for 32bit programs.

                          yes, this is the default behaviour.

                          as soon as you put a portable version to either %ProgramFiles%, or %ProgramFiles(x86)%, it will automatically switch to installed mode and use %AppData%\Notepad++.
                          any existing doLocalConf.xml will be ignored.

                          The only trouble is depending on the fact that not all plug-ins are suitable for 64bit version.

                          if you want to use both x64 and x86 versions on your system, and you want to avoid, that both save their configurations and plugin settings to the same %AppData%\Notepad++ location for both:
                          you have to move one or both of your portable versions to any location which is not inside of your C:\Program Files, or C:\Program Files (x86) folders.
                          examples C:\PortableApps\Notepad++ x64 or C:\PortableApps\Notepad++

                          1 Reply Last reply Reply Quote 2
                          • L
                            László Botka
                            last edited by Mar 10, 2019, 7:29 AM

                            @Meta Chuh

                            Thank you for your comprehensive explanation.

                            1 Reply Last reply Reply Quote 1
                            • R
                              rddim
                              last edited by rddim Mar 11, 2019, 4:56 PM Mar 11, 2019, 4:54 PM

                              I have created a *.bat file for my needs, but here is it for some *.xml files:

                              1. It will create a folder named !BackUp in the directory that the *.bat file lives, i.e. you must place it in the N++ root folder.
                              2. It will backup the config.xml, contextMenu.xml, shortcuts.xml and userDefineLang.xml at the !BackUp folder.
                              3. Run the *.bat file and do NOT close the window
                              4. Make your N++ update and AFTER that press any key to continue to restore the files from !Backup folder
                              5. Press any key to exit…
                              @echo off
                              title Backup Notepad++ Files
                              echo.
                              echo Create backup for Notepad++ settings files
                              echo.
                              cd /d %~dp0
                              MD "!BackUp"
                              for %%f in (config.xml, contextMenu.xml, shortcuts.xml, userDefineLang.xml) do copy "%~dp0\%%f" "!Backup\"
                              echo.
                              echo Please do NOT close this window until you make your Notepad++ updates
                              echo.
                              echo Press any key AFTER the update - to restore the backup files
                              echo.
                              pause
                              echo.
                              cd !BackUp
                              copy *.xml "%~dp0"
                              echo.
                              pause
                              

                              I don’t pretend for a good syntax, but it do the job for me. Also my english is not so better, so please excuse me. You can adapt the code for your needs.

                              1 Reply Last reply Reply Quote 6
                              • K
                                krwudtke @Meta Chuh
                                last edited by Aug 7, 2019, 5:43 PM

                                @Meta-Chuh
                                Regarding your suggestion to update the portable version by using the minimalist package.

                                Do files not contained in the minimalist package but in the full zipped files sometimes get updated? Is there a different way to update them?

                                I had another piece of software (OGCS) that I tried updating by unzipping the entire new package to my existing install folder. The update, or some part of it, completely stopped the program from even starting. I know there were other DLL files that had been updated in that package, so it could have been one of them.

                                I don’t want the same thing to happen to NP++, so the minimalist package sounds the safest. But if other files are being updated at times, especially other DLLs, due to security issues or bugs found in them, I would want to make sure they are updated, too. I’m guessing that everything in the plugins folder should be updated by the plugins admin updater. The updater folder also has some DLLs in it. Although I guess if I don’t use the updater, it doesn’t really matter, unless the same files are used to update the plugins.

                                1 Reply Last reply Reply Quote 1
                                • Вася ТараринВ
                                  Вася Тарарин
                                  last edited by Apr 4, 2020, 9:49 AM

                                  Hello! I have some problem while update portable Npp

                                  Its my old version and list of installed plugins:
                                  009.JPG
                                  010.JPG

                                  After update Npp(just copy all but config.xml, contextMenu.xml, shortcuts.xml, from ZIP )

                                  I have next “picture”
                                  011.JPG
                                  012.JPG

                                  And… then I try to install plugins with Plugins Admin, its give me this notification:
                                  013.JPG
                                  close Npp, and… nothing.
                                  Npp not restart.
                                  And plugin NOT add`s to my Npp.
                                  Any help?
                                  Maybe should I update first with more old version?
                                  Thanks!

                                  1 Reply Last reply Reply Quote 0
                                  • P
                                    PeterJones
                                    last edited by Apr 4, 2020, 6:56 PM

                                    @Вася-Тарарин ,

                                    Thanks for the screenshots. The ? > About Notepad++ is helpful, but even more so would be ? > Debug Info, right next to it.

                                    If you open the Open Plugins Folder…, what is contained in that folder?

                                    For example, I did a fresh 7.8.5 32bit unzip,

                                    Notepad++ v7.8.5   (32-bit)
                                    Build time : Mar  4 2020 - 11:04:20
                                    Path : C:\usr\local\apps\npp\npp.7.8.5.bin\notepad++.exe
                                    Admin mode : OFF
                                    Local Conf mode : ON
                                    OS Name : Windows 10 Home (64-bit) 
                                    OS Version : 1903
                                    OS Build : 18362.720
                                    Plugins : mimeTools.dll NppConverter.dll NppExport.dll 
                                    

                                    Open Plugins Folder shows:
                                    f074d72c-6394-44d6-98f3-a42961006392-image.png

                                    I then install NppFTP. I get that similar dialog, which I say OK to. It exits then automatically re-runs Notepad++. I now have NppFTP installed:
                                    fa9dfbdd-5cc7-468f-911d-3474185e3c12-image.png
                                    confirmed by the Debug Info:

                                    Notepad++ v7.8.5   (32-bit)
                                    Build time : Mar  4 2020 - 11:04:20
                                    Path : C:\usr\local\apps\npp\npp.7.8.5.bin\notepad++.exe
                                    Admin mode : OFF
                                    Local Conf mode : ON
                                    OS Name : Windows 10 Home (64-bit) 
                                    OS Version : 1903
                                    OS Build : 18362.720
                                    Plugins : mimeTools.dll NppConverter.dll NppExport.dll NppFTP.dll 
                                    

                                    And in the directory listing for the Open Plugins Directory:
                                    168811ee-ddbe-4a15-af9b-f8c025a06263-image.png

                                    Вася ТараринВ 1 Reply Last reply Apr 5, 2020, 3:26 PM Reply Quote 3
                                    • Вася ТараринВ
                                      Вася Тарарин @PeterJones
                                      last edited by Вася Тарарин Apr 5, 2020, 3:26 PM Apr 5, 2020, 3:26 PM

                                      @PeterJones, Thanks for try to help, and just in case, excuse me for my english.
                                      ок…
                                      Its debug info(before update) #1

                                      Notepad++ v7.5.1   (32-bit)
                                      Build time : Aug 29 2017 - 02:35:41
                                      Path : D:\taravasya\Soft\PSoft\NP++\notepad++.exe
                                      Admin mode : ON
                                      Local Conf mode : ON
                                      OS : Windows 10 (64-bit)
                                      Plugins : dbgpPlugin.dll HexEditor.dll JSMinNPP.dll mimeTools.dll NppConverter.dll NppExport.dll NppFTP.dll PluginManager.dll XMLTools.dll
                                      

                                      And this is plugin/folder
                                      017.JPG

                                      ======================
                                      This is just unzipped version #2:

                                      Notepad++ v7.8.5   (32-bit)
                                      Build time : Mar  4 2020 - 11:04:20
                                      Path : D:\Temp\106\npp.7.8.5.bin\notepad++.exe
                                      Admin mode : ON
                                      Local Conf mode : ON
                                      OS Name : Windows 10 Enterprise LTSC 2019 (64-bit) 
                                      OS Version : 1809
                                      OS Build : 17763.1098
                                      Plugins : mimeTools.dll NppConverter.dll NppExport.dll
                                      

                                      and this plugin folder:
                                      018.JPG

                                      ======================

                                      And finally updated(copy all files/folders but config.xml, contextMenu.xml, shortcuts.xml) version #3:

                                      Notepad++ v7.8.5   (32-bit)
                                      Build time : Mar  4 2020 - 11:04:20
                                      Path : D:\taravasya\Soft\PSoft\NP++\notepad++.exe
                                      Admin mode : ON
                                      Local Conf mode : ON
                                      OS Name : Windows 10 Enterprise LTSC 2019 (64-bit) 
                                      OS Version : 1809
                                      OS Build : 17763.1098
                                      Plugins : mimeTools.dll NppConverter.dll NppExport.dll
                                      

                                      019.JPG

                                      P 1 Reply Last reply Apr 5, 2020, 6:17 PM Reply Quote 0
                                      • P
                                        PeterJones @Вася Тарарин
                                        last edited by Apr 5, 2020, 6:17 PM

                                        @Вася-Тарарин ,

                                        Those help debug the problem. Before, I thought you were using the Plugins Admin entry from the Plugins menu to install the plugins:

                                        7f3650f9-9f05-4f4a-ad5e-3c701ab0489c-image.png

                                        but since you said,

                                        And finally updated(copy all files/folders but config.xml, contextMenu.xml, shortcuts.xml) version #3:

                                        The problem is that between your old version (v7.5.1) and the new version (v7.8.5), the plugin structure changed. DLLs no longer go directly in the plugins folder: they each go in a subfolder with the same name as the DLL. I have modified your picture for the first few plugins, but you’ll have to do the structure for all 9 (actually 8: see below) of the plugins you showed, with the newly-created folders in red:
                                        f6c762e4-b08c-4290-aba0-ec686239a351-image.png

                                        The 8 vs 9: do not install PluginManager.dll. It is incompatible with Notepad++ v7.6 and newer. Since Notepad++ v7.6.3, there has been a fully-functional Plugins Admin (shown in the English menu screenshot, above) built into the Notepad++ executable, and you no longer need the old PluginManager.dll to manage plugins, and if you try managing plugins with PluginManager, they will not be properly installed in your Notepad++ v7.8.5.

                                        1 Reply Last reply Reply Quote 5
                                        • Вася ТараринВ
                                          Вася Тарарин
                                          last edited by Apr 5, 2020, 9:53 PM

                                          @PeterJones, thanks a lot!
                                          I have now all my favorite plugins worked.
                                          About PluginManager/Plugins Admin. At this moment, I removed PluginManager.dll from plugins folder. But as before(after failed update), and as now(after successful update and remove PluginManager.dll) I used Plugins Admin for managing plugins anyway. And… as before, as now, i`m steel cant install any update of plugins or install new plugin, because of NPP dont restart, but just closing if i try install/update plugin.

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