7za & update nsis installer

fazerty
2011-12-16
2012-12-07
  • fazerty

    fazerty - 2011-12-16

    Why can I extract all files from an nsis installer with 7z (gui) but not with 7za (command line)?
    7za e xxx gives me strange results:

    G:\test>7za.exe e g:\test\download\setup.exe

    7-Zip (A) 9.20  Copyright (C) 1999-2010 Igor Pavlov  2010-11-18

    Processing archive: g:\test\download\setup.exe

    Extracting  META-INF
    Extracting  META-INF\MANIFEST.MF
    Extracting  META-INF\LICENSE.rtf
    Extracting  plugin.jar

    These files are not visible with 7z (gui) and the files seen with 7z aren't extracted!?
    I just want to update 1 file in the installer archive but I've this result:

    G:\test>7za.exe u g:\test\download\setup.exe myfile

    7-Zip (A) 9.20  Copyright (C) 1999-2010 Igor Pavlov  2010-11-18

    Error: g:\test\download\setup.exe is not supported archive

    System error:
    Fonction incorrecte.

    My questions are:

    Is it possible to use 7za to update a file inside an nsis installer?
    If yes, how to proceed?

    Many Thanks.

    PS: Now, I create an sfx archive with 7z and update a file (with a script because I've to do it very often) within it with 7za but I need some functionnalities of the nsis installer.

     
  • fernando

    fernando - 2011-12-16

    About…

    Why can I extract all files from an nsis installer with 7z (gui) but not with 7za (command line)?

    See documentation readme of each distribution re: "Supported formats".
    Try 7z.exe

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks