Plugin to extract 7-Zip 4.10 files

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • Mad Doggie
    Junior Member
    • Sep 2003
    • 44

    Plugin to extract 7-Zip 4.10 files

    Is there a plug-in that can decompress archives created by 7-zip v4.12? I would like to use 7Zip to decrease the size of my downloadable components.

    Cheers!
  • Afrow UK
    Moderator
    • Nov 2002
    • 8434

    #2
    You'll have to use 7-Zip's command-line 7z.exe program to decompress 7z files.

    You should compress it into your installer, and place it in a folder (e.g. $PLUGINSDIR) on run-time then execute it with nsExec::Exec.

    -Stu

    Comment

    • Mad Doggie
      Junior Member
      • Sep 2003
      • 44

      #3
      Originally posted by Afrow UK
      You'll have to use 7-Zip's command-line 7z.exe program to decompress 7z files. You should compress it into your installer, and place it in a folder (e.g. $PLUGINSDIR) on run-time then execute it with nsExec::Exec.
      Bummer. Thanks for the info - I was hoping I could use a native NSIS plug-in and get the same feedback as ZipDLL does. Oh well, I guess nothing on the horizon on this front?

      Comment

      • Afrow UK
        Moderator
        • Nov 2002
        • 8434

        #4
        You can use nsExec::ExecToLog to stream the 7z output directly to the installation progress window.

        -Stu

        Comment

        • Brummelchen
          Major Dude
          • May 2003
          • 681

          #5
          7zip went final 7.20.

          I would appreciate a plugin using 7zip for archiving like
          "nsexec::7zip '"c:\temp\*.txt" /switch'
          or another built-in solution...

          WinRAR also uses a newer 7zxa.dll instead an bigger exe 7za.exe
          Greets, Brummelchen

          Comment

          • Joel
            Debian user
            (Forum King)
            • Jan 2003
            • 4918

            #6
            Update:

            I'm a making a plugin for decompressing 7z files (~60KB DLL), but I need to know if theres one already...


            * PC: Intel Core 2 DUO E6550 @ 2.33 GHz with 2 GB RAM: Archlinux-i686 with MATE.
            * Laptop: Intel Core 2 DUO T6600 @ 2.20 GHz with 4 GB RAM: Archlinux-x86-64 with MATE.

            Comment

            • saivert
              Banned
              • Jan 2001
              • 927

              #7
              Joel! Just go ahead and make it.

              Comment

              • PerditionC
                Junior Member
                • Jan 2003
                • 27

                #8
                If one doesn't really need the 7z format and just wants to use the LZMA compression method, then there is also the ExtractDLLEx or untgz plugins.

                Comment

                • brainsucker
                  Senior Member
                  • Sep 2002
                  • 190

                  #9
                  Some time ago I wrote a simple plugin for uncompressing 7z files with progress reporting. It was based on the console sfx with changed console interface to some kind of nsis wrapper. It was big enough (144 kb), but due to size (32 mb to 27 mb from nsis lzma to 7z file) and time (i've used archive as merge module, which never changes) economy, that really doesn't matter for me.
                  However I've lost one of my hdd's some weeks ago, so at present time I have no source code of that plugin, just compiled dll.

                  PHP Code:
                  SetOutPath $INSTDIR\OCR\FRE\Bin
                  increase size
                  AddSize 85000
                  ; use precompressed 7zip fre file
                  SetCompress off
                  DetailPrint 
                  "Extracting FineReader Engine..."
                  File /"Misc\frebin.7z"
                  SetCompress auto
                  DetailPrint 
                  "Installing FineReader Engine..."
                  nsis7z::Extract "frebin.7z"
                  Delete "$INSTDIR\OCR\FRE\Bin\frebin.7z" 
                  Attached Files

                  Comment

                  • saivert
                    Banned
                    • Jan 2001
                    • 927

                    #10
                    Since the source code for the 7-zip project is open-source there shouldn't be hard to implement this. I might have a crack at it sometime as well. But I don't know about the time. I wrote my own version of unzip plug-in for NSIS one time (based on source code for NSIS' Zip2EXE) and if 7-zip has some easy to use interface it will be doable.

                    Comment

                    • oborstad
                      Junior Member
                      • Jan 2006
                      • 11

                      #11
                      Any Update on this plugin?

                      Comment

                      • Brummelchen
                        Major Dude
                        • May 2003
                        • 681

                        #12
                        why should it ?
                        Greets, Brummelchen

                        Comment

                        • oborstad
                          Junior Member
                          • Jan 2006
                          • 11

                          #13
                          Ah, Sorry... I mean if there was an updated copy of this plugin with the updated 7-zip files. This plugin's 7zip files aren't up to date, and the source code's not provided (ala 7zip licence). So I just wanted to ask if there was any update on the status of the plugin.

                          Owen.

                          Comment

                          • Brummelchen
                            Major Dude
                            • May 2003
                            • 681

                            #14
                            write to the author pls
                            Greets, Brummelchen

                            Comment

                            • brainsucker
                              Senior Member
                              • Sep 2002
                              • 190

                              #15
                              Nsis7z plugin updated

                              Hello everyone

                              I've spent some time to rewrite (due to lost source code) Nsis7z plugin using the latest 7z (4.64), this time the source code is available, so no one should have problems using/distributing it.

                              This plugin allows our company to create merge-modules (as 7z archives) with prepacked files used in every release, saving some space (due to better compression ratio) and time (60mb 7z archive compiles to NSIS setup in several seconds, compare that with the time required to pack 250mb of original files).

                              This post - complete distribution with source, next - stripped with plugin and example only.

                              Best regards, Nik.
                              Attached Files

                              Comment

                              Working...
                              X