Menu

It seems "ZIP -A" is not working on winXP?

Help
AndriusN
2007-06-19
2012-07-26
  • AndriusN

    AndriusN - 2007-06-19

    I created file foo.txt in my working direcory:
    echo. Some text > foo.txt

    Executed command:
    zip foo.zip foo.txt

    Command response:
    adding: foo.txt (188 bytes security) (stored 0%)

    Executed command:
    zip -A foo.zip

    Command response:
    <NOTHING, NO ERROR MESSAGE, NO ANY MESSAGE>

    My zip archyve foo.zip is still not self extracting :-(

    Any ideas?

    Thanks

    Andrius

     
    • GnuWin

      GnuWin - 2007-06-19

      I think -A only works for an already existing self-extracting archive. Self-extracting archives can be created by concatenating unzipsfx.exe and the archive; unzipsfx.exe is in the unzip package. See the example section in the man page for unzipsfx.exe.

       
    • AndriusN

      AndriusN - 2007-06-20

      Great!
      Thanks,
      But how to force my foo.exe extract into C:\ directory, but not in the current directory?

      I created SELF-EXTRACTING archive:

      copy /b unzipsfx.exe+foo.zip foo.exe

      Command response:
      unzipsfx.exe
      foo.zip
      1 file(s) copied.

      zip -A foo.exe

      Command response:
      zip warning: foo.exe has a preamble of 95232 bytes

      Now my foo.exe IS self extracting :-)
      I am forcing my foo.exe extract into C:\ directory:

      unzipsfx foo.exe -d C:\

      Command response:
      UnZipSFX 5.51 of 22 May 2004, by Info-ZIP (http://www.info-zip.org).
      End-of-central-directory signature not found.

      Tried this:
      unzipsfx foo.zip -d C:\

      The same command response:
      UnZipSFX 5.51 of 22 May 2004, by Info-ZIP (http://www.info-zip.org).
      End-of-central-directory signature not found.

      :-(

      I have read http://www.info-zip.org/pub/infozip/FAQ.html but only two topics are available on FAQ about self-extracting archives :
      How do I create a self-extracting archive that will automatically run a program after extraction?
      How do I make a DOS (or other non-native) self-extracting archive under Unix?

       
    • AndriusN

      AndriusN - 2007-06-20

      To force my foo.exe extract into C:\ directory I need execute:

      foo.exe -d C:\

      :-) Yes. Great!

       
MongoDB Logo MongoDB