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.
    • rddimR
      rddim
      last edited by rddim

      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
      • krwudtkeK
        krwudtke @Meta Chuh
        last edited by

        @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

          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
          • PeterJonesP
            PeterJones
            last edited by

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

            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 Reply Quote 3
            • Вася ТараринВ
              Вася Тарарин @PeterJones
              last edited by Вася Тарарин

              @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

              PeterJonesP 1 Reply Last reply Reply Quote 0
              • PeterJonesP
                PeterJones @Вася Тарарин
                last edited by

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

                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

                  @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
                  • PeterJonesP
                    PeterJones
                    last edited by

                    @Вася-Тарарин said in How to update the portable version?:

                    I have now all my favorite plugins worked.

                    That’s great.

                    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.

                    Interesting. Normally when we hear of an issue like that, it’s because of proxy settings. I don’t know if you’re on your own machine, or in a corporate system with a proxy server set up by your IT department. If the latter, you will have to run Notepad++ in Admin mode, setup the proxy, as described in this linked post; after that, you should be able to run normally, and hopefully Plugins Admin will correctly download and install plugins after that. If you’re not in a proxy-based system, then I don’t know why that would happen, and someone else will have to jump in to offer more suggestions of how to debug the issue.

                    Вася ТараринВ 1 Reply Last reply Reply Quote 2
                    • Вася ТараринВ
                      Вася Тарарин @PeterJones
                      last edited by Вася Тарарин

                      @PeterJones Hi! No I dont use/have any proxy. Its my home pc, and I never use proxy, and steel cant use Plugins Admin. So… maybe I can give some more info?
                      I have dissabled brandmauer and I dont use any antivirus(because I have eyes & brain :) ).

                      1 Reply Last reply Reply Quote 0
                      • Вася ТараринВ
                        Вася Тарарин
                        last edited by

                        I want to add… Previous version (v7.5.1) update plugins / install plugins / and then restartNpp with no problems.

                        1 Reply Last reply Reply Quote 0
                        • Вася ТараринВ
                          Вася Тарарин
                          last edited by

                          And one more thing… I cant delete any of plugin with Plugins Admin. So… I think my problem not related to any network things…

                          PeterJonesP EkopalypseE 2 Replies Last reply Reply Quote 0
                          • PeterJonesP
                            PeterJones @Вася Тарарин
                            last edited by

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

                            As I said, I was out of solid ideas for things to try or look at. The problem is that your system behaves differently than mine under apparently-similar circumstances; a fresh unzip of Notepad++ v7.8.5 32-bit has no difficulty with restarting after installing the plugins you have mentioned.

                            A couple more ideas today

                            1. going back up to your post from last weekend, with the Debug Info #3, I see that you’ve got notepad++ in D:\taravasya\Soft\PSoft\NP++\notepad++.exe. What happens if you unzip it someplace else? For example, to the Notepad++ folder on your desktop, or to %temp%\Notepad++ – or if both of those are also on your D:\ drive, then in some writeable folder in the C:\ drive. Does it have the same problem, or does it work? (maybe there’s something unique about your D:\ drive or the PSoft folder hierarchy – I don’t know what “PSoft” refers to).
                            2. Similar to the previous, I see that you were running in admin mode. Maybe try running not in admin mode, either from the PSoft subfolder or from the c:\ drive location from my previous suggestion
                            3. Finally, maybe some strange event is occurring between the attempt to install the plugin and restart (whether from some other application on your system, or some strange way in which Notepad++ is interacting with your system), which prevents the install and restart from finishing. I know that one of the regulars here often brings in an event-watching tool – I think it’s @Ekopalypse using one of the Windows power-tools that I don’t understand: maybe he can help you through the process of getting that running, and looking for events that might be halting the process prematurely.

                            Hmm, I just reread your most recent post, and saw that you can’t delete any plugins – I had previously read that as “can delete”. If you can’t delete the plugins through the Plugins Admin, that really looks like a permission issue to me… so that strengthens the case for either trying non-Admin, or trying in some other folder hierarchy. I’m really thinking it’s a permissions issue.

                            1 Reply Last reply Reply Quote 2
                            • EkopalypseE
                              Ekopalypse @Вася Тарарин
                              last edited by

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

                              the tool @PeterJones is talking about is called Process Monitor.

                              In your case I would create two filters,

                              1. process name is notepad++.exe
                                and
                              2. process name is gup.exe

                              d8ee6a96-4753-4ea5-a15a-37da89f95db6-image.png

                              Click the OK button.

                              Stop the monitoring via File->Capture Events.

                              Make sure that the three options
                              “Show File System Activity”, “Show Network Activity” and “Show Process And Thread Activity”
                              are activated.

                              2cc6e1a2-3beb-4073-9a71-5d94e8815726-image.png

                              Start the monitoring via File->Capture Events.

                              Do your action, wait a little bit and follow then what procmon recorded.
                              Maybe this will help to track down the culprit.

                              Btw. you can toggle the “Show … Activity” buttons at any time.
                              It shows or hides the related events but does not delete them.

                              1 Reply Last reply Reply Quote 4
                              • Вася ТараринВ
                                Вася Тарарин
                                last edited by

                                Thank you, Peter and Ekopalypse. At this time steel have problems…

                                @PeterJones said in How to update the portable version?:

                                What happens if you unzip it someplace else?

                                No. This dont help :(
                                Fresh unziped npp in couple folders and disks(and in disk root too). And Plugins Admin steel can`t do his work.

                                @PeterJones said in How to update the portable version?:

                                I see that you were running in admin mode

                                This happened because I use TotalCommander(what running with admin rights) as file manager. And then I start npp from TC, npp run as admin too. But I was try to run npp from windows explorer, npp was running NOT in admin mode, and its dont help too.

                                @PeterJones said in How to update the portable version?:

                                Finally, maybe some strange event

                                Will try Process Monitor…

                                @Ekopalypse said in How to update the portable version?:

                                Maybe this will help to track down the culprit.

                                I did exactly as you say, and in results I see some strange(as I think) records. But I cant figure out what it can mean )))))
                                So… I upload saved log files of Process Monitor. May be if you can look at them, it can flash the light at this story.

                                google.drive folder with logs
                                I did three times with different folders.

                                And one more thing. I was try to use npp on my second PC, and looks like there Plugins Admin work as it should be.
                                So… I can assume that the problem is specifically in the operating system of my working computer.

                                EkopalypseE 1 Reply Last reply Reply Quote 2
                                • EkopalypseE
                                  Ekopalypse @Вася Тарарин
                                  last edited by

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

                                  From the logs we see that gup.exe is not started at all.
                                  It is searched for and also found, but not read completely.
                                  In the logs we can see that only 524.288 bytes are read.
                                  But there should be more than 700.000 bytes.

                                  This is strange.

                                  Can you please open the Explorer and switch to
                                  D:\taravasya\Soft\PSoft\NP++\updater?
                                  There just double-click on gup.exe. What happens?

                                  Вася ТараринВ 2 Replies Last reply Reply Quote 2
                                  • Вася ТараринВ
                                    Вася Тарарин @Ekopalypse
                                    last edited by Вася Тарарин

                                    @Ekopalypse
                                    First this:
                                    047.JPG

                                    And then its try to install not portable version of npp
                                    048.JPG

                                    1 Reply Last reply Reply Quote 1
                                    • Вася ТараринВ
                                      Вася Тарарин @Ekopalypse
                                      last edited by Вася Тарарин

                                      @Ekopalypse
                                      I install npp with downloaded installer(not portable), and from this version I have successfully installed plugin with Plugins Admin and successfull restarted npp too.
                                      :-/

                                      EkopalypseE 1 Reply Last reply Reply Quote 1
                                      • EkopalypseE
                                        Ekopalypse @Вася Тарарин
                                        last edited by

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

                                        Strange, I use the portable version exclusively and I don’t seem to have that kind of problem.
                                        Did you always test with the 32bit version?
                                        The question why I’m asking is that I saw in your log that the
                                        gup.exe file is assumed to be ~700KB but for 32bit ~567KB is ok.
                                        Could you try to replace the gup.exe from the installed version with
                                        one from the portable version and retest?

                                        1 Reply Last reply Reply Quote 4
                                        • Вася ТараринВ
                                          Вася Тарарин
                                          last edited by Вася Тарарин

                                          @Ekopalypse !!! Excellent!!
                                          019.JPG
                                          Despite the fact that the GUPs are identical in size, replacing the file helped me!!! Plugins Admin start to work and I update all my plugins!
                                          Moreover, when I returned the GUP.exe from the portable version, the plugin manager stopped working again.
                                          So, I can state the fact that in the archive, of a portable version npp.7.8.5.bin, was a damaged GUP.exe.
                                          Many thanks for the help !!!

                                          1 Reply Last reply Reply Quote 1
                                          • andrecool-68A
                                            andrecool-68
                                            last edited by

                                            I use only the portable version. And I have no problems updating.
                                            This is my backup for any version of Notepad ++:
                                            Imgur

                                            Вася ТараринВ 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post
                                            The Community of users of the Notepad++ text editor.
                                            Powered by NodeBB | Contributors