home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 24 / CD_ASCQ_24_0995.iso / dos / tools / wwp303 / wwp303.exe / rar / ENHANCED / WWPACK.DOC
Text File  |  1995-06-01  |  18KB  |  479 lines

  1.  
  2.         WWPACK 3.03   a powerful executable file compressor for DOS
  3.  
  4.         Copyright (c) 1993-95 by Rafal Wierzbicki and Piotr Warezak
  5.  
  6.         1 June 1995      Lodz, Poland           All Rights Reserved
  7.  
  8.  
  9.       We are happy to provide our e-mail addresses.  Please feel free
  10.          to inform us of any problems at the following addresses.
  11.  
  12.                            Authors:  awarezak@krysia.uni.lodz.pl
  13.  
  14.               American distributor:  gjereza@crl.com
  15.  
  16.                 German distributor:  support@vgasoft.com
  17.  
  18.  
  19.        The latest shareware version of WWPACK can always be found on:
  20.  
  21.            o  ftp.elf.stuba.sk    /pub/pc/pack
  22.               SimTel mirrors      /SimTel/msdos/execomp
  23.  
  24.            o  The ClipBoard BBS
  25.               (415) 293 0454
  26.               8N1  2400-28800bps
  27.               24 hours, San Francisco
  28.  
  29.            o  WWPACK is FREQable (file requestable) from
  30.               The ClipBoard BBS,
  31.               FidoNet 1:125/454
  32.               The magic name is WWPACK.
  33.  
  34.            o  VGA-Copy Headquarters BBS
  35.               +49-441-972955
  36.               8N1  USRobotics V34
  37.               24 hours, Germany
  38.  
  39.            o  WWPACK is file requestable from
  40.               VGA-Copy Headquarters,
  41.               FidoNet 2:2426/2240
  42.               The magic name is WWPACK.
  43.  
  44.            o  ftp-mailserver:  fileserv@vgasoft.com
  45.  
  46.  
  47. *** This version of WWPACK must be registered,and requires the WWPACK.REG
  48. *** key file created specifically for you.
  49. *** The  WWPACK.REG file  can not be  distributed, sent, rented, changed,
  50. *** hacked, or reversed engineered in any way. Any attempts to do so will
  51. *** automatically terminate the license!
  52.  
  53.  
  54. WHAT IS A WWPACK?
  55.  
  56.   WWPACK is a powerful EXE file compressor. This program compresses most
  57.   DOS executable files. Compressed programs use less disk space because
  58.   they are much smaller. All files run EXACTLY as before.
  59.  
  60.  
  61. REQUIREMENTS to run WWPACK.
  62.  
  63.   WWPACK works on any machine with 450Kb free DOS memory.
  64.   Remember that the faster machine you use the less time you need
  65.   to compress an EXE file.
  66.  
  67. Requirements to run EXE files compressed with WWPACK.
  68.  
  69.   Every file compressed with WWPACK can run on any IBM compatible
  70.   system: XT,AT,80286,80386,80486 and Pentium; on Intel and non-Intel.
  71.   WWPACKed files can run on IBM compatible palmtop computers
  72.   (eg. the Hewlett Packard HP95LX).
  73.  
  74.   DOS 2.0 or higher is required.
  75.  
  76.  
  77. WWPACK'S COMMANDS  -  to get a very short help type:  WWPACK /?
  78.  
  79.   How do I compress an EXE file?
  80.  
  81.     Enter:  WWPACK FILENAME.EXE
  82.     When complete, the file will be smaller and work as before.
  83.     The process can be interrupted by using the CTRL+Break keys.
  84.  
  85.   Can I pack a relocation table?
  86.  
  87.     Sure.  Enter:  WWPACK PR FILENAME.EXE
  88.  
  89.   How do I create an unextractable file?
  90.  
  91.     To create an unextractable file please use this command:
  92.        WWPACK PU FILENAME.EXE
  93.     But be careful because you won't be able to extract this file!
  94.  
  95.     This command should be used only on files that you want to distribute.
  96.  
  97.   How do I protect a file with a password?
  98.  
  99.     Enter:  WWPACK PP FILENAME.EXE
  100.     WWPACK will ask you for a password which you must enter twice.
  101.     The password must be from four to nine characters long and is
  102.     NOT case sensitive.
  103.  
  104.     Be careful!  If you forget your run-password your file will be
  105.     useless!
  106.  
  107.   How do I unpack an EXE file?
  108.  
  109.     Enter:  WWPACK U FILENAME.
  110.     But remember that the file must be already compressed with WWPACK!
  111.     (Note that the 'U' command can't decompress files created with the 'PU'
  112.     command).
  113.  
  114.   TESTING EXE FILES.
  115.  
  116.     Command 'T' lets you to see if the file is already compressed
  117.     by any executable file compressor. WWPACK recognizes files compressed by
  118.     LZEXE, PKLITE and many many other compressors.
  119.     Usage:  WWPACK T FILENAME.EXE
  120.  
  121.   OPTIMIZING HEADERS.
  122.  
  123.     If you want to optimize a header of any EXE file you can write:
  124.        WWPACK O FILENAME.EXE
  125.     Sometimes the header can be a bit shorter but sometimes nothing
  126.     may change.
  127.  
  128.   ADITTIONAL COMMANDS: 'PD' and 'UD'.
  129.  
  130.     WWPACK has two commands that you can use on any file you want:
  131.     'PD' and 'UD'  (pack data and unpack data).
  132.  
  133.     Command 'PD' can pack file as a data.
  134.     Example:  WWPACK PD PROGRAM.DAT
  135.  
  136.     Command 'UD' can unpack any file packed with 'PD'.
  137.     Example:  WWPACK UD PROGRAM.DAT
  138.  
  139.     Remember that packed data file can't normally used so before
  140.     you work with it you must first unpack it ('PD' and 'UD' options
  141.     work similar to PKZIP 'a' and 'e' commands).
  142.  
  143.  
  144. CAN I USE WILDCARDS?
  145.  
  146.   Sure!  Why not?
  147.   WWPACK lets you to use '*' and '?' in every command.
  148.  
  149.   Examples:
  150.     to compress all EXE files in the current directory just type:
  151.        WWPACK P *.EXE
  152.  
  153.     to optimize headers of all EXE files type:
  154.        WWPACK O *.EXE
  155.  
  156.     to pack all files (as data) enter this command:
  157.        WWPACK PD *.*
  158.  
  159. CAN I USE PATHS?
  160.  
  161.   Of course you can!
  162.  
  163.   Example:
  164.     command  WWPACK P C:\UTILITY\TEST.EXE  compresses file TEST.EXE stored
  165.     is C:\UTILITY directory.
  166.  
  167.  
  168. CONFIGURATION MENU.
  169.  
  170.   We wanted to make WWPACK easy to use. You don't have to remember
  171.   any options because you can set everything in a special configuration
  172.   menu.
  173.  
  174.   To configure the program enter:  WWPACK C.
  175.   Now use '1..5' keys to set some useful options.
  176.   1  -  do you want WWPACK to make backup files?
  177.         Select 'ON' and you will always get OLD and OLP files.
  178.         (There are two exceptions: WWPACK always makes backups
  179.          when 'PP' command is used or when the file packed with the 'PP'
  180.          command is being unpacked).
  181.   2  -  choose 'ON' if you want to get more information about
  182.         every file that is being compressed.
  183.   3  -  please select 'ON' if you want to compress files with overlays
  184.         or 'OFF' if you don't want to compress such a files.
  185.         If you choose 'ASK' WWPACK will always ask you if the
  186.         file should be compressed or not.
  187.   4  -  select 'ON' if you want WWPACK to compress already compressed
  188.         files.
  189.   5  -  sometimes WWPACK is slow so choosing 'ON' is a good idea.
  190.   6  -  use this option to select an "unextractable compression method":
  191.         SOFT - to create files unextractable with WWPACK
  192.         HARD - to create files unextractable not only by WWPACK but with
  193.                many other intelligent unpackers (we tried CUP 1.2, UUP 1.4,
  194.                TRON 1.21+ Shareware and some other decompression programs -
  195.                all failed to extract the code)!
  196.  
  197.   When you set all options, press 'S' key to save them or 'ESC' to exit
  198.   without saving.
  199.   You may use the 'T' key to set the default configuration.
  200.  
  201.  
  202. BACKUP FILES.
  203.  
  204.   Not every EXE file can be compressed with WWPACK. That's why this program
  205.   creates backups. In case of problems you can restore the original file.
  206.  
  207.   Remember:
  208.     Original FILENAME.EXE file is always renamed to FILENAME.OLD file
  209.     while compressing or optimizing, and to FILENAME.OLP when decompressing.
  210.  
  211.   HINT:
  212.     If you forgot to make a backup while compressing an EXE file, try
  213.     undeleting or unerasing it !
  214.  
  215.  
  216. FILES THAT CAN'T BE PACKED.
  217.  
  218.   Some files can't be compressed with WWPACK.
  219.  
  220.   o  programs that check the CRC of a file
  221.   o  files that store configuration data internally
  222.   o  drivers that can be loaded in a config.sys file
  223.   o  some files with overlays
  224.   o  Windows and OS/2 files
  225.   o  some COM files (COM file may not work after conversion to EXE format)
  226.  
  227.   Some files are automatically recognized by WWPACK.
  228.   But sometimes it's impossible to predict if the file can be compressed.
  229.  
  230.   You just have to check every compressed EXE file !
  231.  
  232.  
  233. CRC MODULE: "Be sure that the file isn't damaged"
  234.  
  235.   WWPACK uses special module that adds CRC code to EVERY compressed EXE file.
  236.   This unique technology lets you to check if any WWPACKed file has been
  237.   damaged or infected by a virus.
  238.  
  239.   To check files you may use WWVIR or CRC program.
  240.  
  241.   HINTS FOR PROGRAMMERS:
  242.   o You may freely add CRC program to your commercial and noncommercial
  243.     products. It's public domain!  (However, you must have the enhanced
  244.     version of WWPACK to distribute WWPACKed programs)
  245.   o CRC module checks almost EVERY byte of compressed EXE file:
  246.     from the beginning ('MZ' signature) to the very end.
  247.     Warning: CRC module doesn't check overlays !
  248.   o There are six bytes in the compressed EXE file that you can freely change.
  249.     The area in $1A to $1F bytes isn't protected with the CRC module,
  250.     so you can store configuration or any data here.
  251.  
  252.  
  253. ERRORS AND OTHER MESSAGES.
  254.  
  255.   WWPACK is quite an intelligent program and sometimes it may show some kind
  256.   of an error message. But don't worry. Just read the comment and you will
  257.   find an explanation for the problem (WWPACK has almost 30 error
  258.   messages!).
  259.  
  260.   From time to time you may see some question also (it depends on a
  261.   configuration that you have chosen).
  262.  
  263.   Here is a list of important questions and messages that you may meet when
  264.   working with WWPACK:
  265.  
  266.    CRC status: OK
  267.      File CRC is OK. It means that the file isn't damaged nor infected
  268.      by a virus. This massage appears while unpacking the file packed
  269.      with WWPACK version 3.03 or later.
  270.  
  271.    Delete FILENAME file to make a new backup file [Y/n]?
  272.      WWPACK must know if the old backup file can be deleted.
  273.      Press 'Y' key to continue processing or 'N' to quit (and save an old
  274.      backup).
  275.  
  276.    Enter password:
  277.      This message appears when the 'PP' or 'U' command is used.
  278.      Please enter the password required to run the packed file
  279.      ('PP' command) or enter the password required to unpack the
  280.      compressed file ('U' command).
  281.  
  282.    File not processed.
  283.      You didn't let WWPACK process the file (for example you didn't let
  284.      WWPACK delete an old backup file).
  285.  
  286.    Relocation table is already packed.
  287.      You can't use 'PR' command because the relocation table is already
  288.      packed. Please try the 'P' command to get a higher compression ratio.
  289.  
  290.    The file FILENAME has set attribute READ ONLY. Change file attribute [Y/n]?
  291.      The file has set the READ ONLY attribute. To process it the attribute
  292.      must be deleted. Press 'Y' key to continue packing or 'N' to stop WWPACK.
  293.  
  294.    The file contains Debug_Info. Do you want to remove it [Y/n]?
  295.      The file contains some data that aren't required by a program.
  296.      These data can be removed - the file will be much shorter.
  297.      Press 'Y' if you want WWPACK to remove Debug_Info or 'N' to process
  298.      the file without removing it.
  299.  
  300.    The file size stored in the header is bigger then the real file size.
  301.    The processed file may not work properly. Continue [Y/n]?
  302.      The file is probably damaged but you may want WWPACK to pack it.
  303.      This message is rarely seen.
  304.  
  305.    Warning: bad CRC. File probably damaged.
  306.      The file that is being unpacked is damaged. It may not work
  307.      after unpacking!
  308.  
  309.    Warning: the file contains an overlay XXX bytes. Continue [Y/n/r]?
  310.      The file that you want to process contains an overlay.
  311.      Press 'Y' to pack or optimize the file or 'N' if you don't want
  312.      to process it. Press 'R' to process the file and remove an overlay.
  313.  
  314.    Warning: the file is already packed with ....
  315.    Do you want to pack it [Y/n]?
  316.      The file is already packed but WWPACK may try to pack it.
  317.      Press 'Y' if you want WWPACK to process the file or 'N' to quit.
  318.  
  319.    Warning: there are some identical relocation entries.
  320.      This message shows that the file may not work after compression
  321.      because the relocation table contains incorrect data.
  322.  
  323.    Warning: this is COM file. Convert it to EXE format [Y/n]?
  324.      The file you want to process is not an EXE. Press 'Y' if you
  325.      want to convert it to EXE format or 'N' to quit.
  326.  
  327.  
  328. HOW DOES WWPACK WORK?
  329.  
  330.   First it compresses EXE file; then it adds a small extract code.
  331.   When you load the packed file into memory, the computer first runs this
  332.   extract code and then the unpacked program.
  333.  
  334.   It's simple, isn't it?
  335.  
  336.  
  337. HOW DOES WWPACK COMPARE TO THE OTHER COMPRESSORS?
  338.  
  339.   Read this short table and compare:
  340.   (Note: All sizes are in bytes)
  341.  
  342.                      qp.exe       ncmain.exe    ndd.exe       total size
  343.       Unpacked       86,842       212,393       383,874       683,109
  344.  
  345.       TINYPROG       53,520       117,632       225,440       396,592
  346.       LZEXE          52,983       116,980       224,646       394,609
  347.       PKLITE         52,289       115,354       222,995       390,638
  348.       DIET           52,694       116,044       220,799       389,527
  349.       AVPACK         51,943       113,252       217,622       382,817
  350.       AINEXE         51,534       111,350       210,955       373,839
  351.       COMPACK        51,052       111,276       211,148       373,476
  352.       WWPACK         49,817       106,237       200,336       356,390
  353.  
  354.       To make this comparison we used these popular shareware programs:
  355.       AINEXE 2.1 by Transas Marine Ltd.
  356.       AVPACK 1.20 by Andrei Volkov
  357.       COMPACK 4.4 by W.J. Collis
  358.       DIET 1.45 by Teddy Matsumoto
  359.       LZEXE 0.91 by Fabrice Bellard
  360.       PKLITE 1.50 by PKWARE
  361.       TINYPROG 3.9 by Tranzoa, Co.
  362.       and of course our WWPACK 3.03.
  363.  
  364.       List of files we used to compress:
  365.       QP.EXE (Quattro pro 4.0),
  366.       NCMAIN.EXE (Norton Commander 4.0),
  367.       NDD.EXE (Norton Utility 8.0).
  368.  
  369.   Is WWPACK very powerful?  Try it and find out!
  370.  
  371.  
  372. FREQUENTLY ASKED QUESTIONS
  373.  
  374.   Q: Can I use WWPACK instead of PKZIP or RAR?
  375.   A: No. With PKZIP or RAR you can pack all kinds of files but you can't
  376.      normally use the packed programs.
  377.      With WWPACK you can compress only EXE files, however, they will still
  378.      run normally!
  379.      So the best way is to use two compression programs: first use WWPACK
  380.      on all EXE files and then RAR or PKZIP.
  381.  
  382.   Q: Does WWPACK work with Stacker and DoubleSpace?
  383.   A: Sure. We have tested WWPACK with those programs and everything has
  384.      worked correctly. What's more you will have more space on the stacked
  385.      drive when you compress all your EXE files.
  386.  
  387.   Q: Is it possible to detect a virus in a compressed file?
  388.   A: No. You can't check if there is a virus under the WWPACK's code.
  389.      That's why everytime you compress some files you must be sure that
  390.      they are virus free!
  391.  
  392.   Q: Can I run DOS compressed files under Windows?
  393.   A: Sure. You can use Windows or DOS.
  394.  
  395.   Q: Why is the compression ratio of 'PR' so poor?
  396.   A: It isn't poor. This command compresses only relocation tables.
  397.   Q: What's the relocation table?
  398.   A: It's a part of an EXE file. It contains special data that are needed
  399.      to load and then execute program.
  400.  
  401.   Q: Why can't some overlaid files be compressed?
  402.   A: Because when you compress such a file the overlay offset changes
  403.      and the compressed program may not find an overlay.
  404.  
  405.   Q: Can I decompress an EXE file compressed with the 'PP' command?
  406.   A: Sure, but you must know the password.
  407.      To decompress the file, enter:  WWPACK U FILENAME.EXE
  408.      Enter a password and wait momentarily. The file will be unpacked!
  409.  
  410.  
  411. HINTS
  412.  
  413.   o  If you want to compress the file that is already packed with EXEPACK
  414.      you should first unpack it.
  415.      Why? Because you will get a higher compression ratio.
  416.   o  Always make backups (especially when you compress files with overlays).
  417.      Why? To make WWPACK much safer.
  418.   o  Allow WWPACK to remove Debug_Info.
  419.      The file without Debug_Info can be up to 10% smaller.
  420.  
  421.  
  422. Here are some words about us (authors):
  423.  
  424.   We are nineteen. We are students of the University of Lodz.
  425.   Piotr studies computers (first year). Rafal is a student of
  426.   International Economical and Political Relations (first year also).
  427.  
  428.   We will improve our program because we like it and it gives us
  429.   great satisfaction. That's why we are waiting for your suggestions.
  430.  
  431. We would like to thank these people for their suggestions and beta-testing:
  432. Thank you!
  433.  
  434.   Peter Hubinsky (from Slovak Antivirus Center)
  435.   George Jereza (author of SuperCModem! for ideas and suggestions)
  436.   Piotr Kuciel (for everything he has done for us)
  437.   Louis Puccio (for teaching us about USA market and pitching ideas)
  438.   Ralph Roth (author of HackStop and many other useful utilities)
  439.   Johnson Wu (for testing WWPACK with many many programs)
  440.   Grzegorz Zgondek (for testing 'PU' HARD compression method)
  441.   Romuald Zylla (for complete testing and constructive criticism)
  442.  
  443.  
  444. WWPACK'S CODE INFORMATION:
  445.   written in
  446.     Turbo Pascal, ver. 7.0   (source code: 3043 lines)
  447.     assembler 8088   (1269 lines)
  448.   utility package:
  449.     written in Turbo Pascal 7.0
  450. Software we used to create WWPACK:
  451.   Borland Pascal 7.0, Turbo Assembler 2.01, Turbo Debugger 3.2
  452.     by Borland International
  453.   DocGen, FileTime 0.1, FTC 2.1  by Piotr Warezak
  454.   EatMem 1.1c  by TifaWARE
  455.   HackStop 1.02ß  by Ralph Roth - ROSE
  456.   RAR archiver 1.53  by Eugene Roshal
  457.  
  458.  
  459. UPGRADE INFO.
  460.  
  461.     Thanks for registering.
  462.     Are you interested in a new version of our program?  Great!
  463.  
  464.   How can I get the newest version?
  465.  
  466.     Wherever you find a newer downloadable version of WWPACK.
  467.  
  468.   Is that all?
  469.  
  470.     Sure!  The WWPACK.REG file will work with new versions of WWPACK.
  471.  
  472.     See the top of this file to find out where WWPACK can be found!
  473.  
  474.  
  475. All programs mentioned in this documentation are trademarks of their
  476. respective owners. They're used for identification purposes only.
  477.  
  478. End of the WWPACK documentation file.
  479.