home *** CD-ROM | disk | FTP | other *** search
/ CD/PC Actual 27 / CDROM27.iso / share / w31 / chief / chief.faq < prev    next >
Encoding:
Text File  |  1998-08-28  |  18.1 KB  |  417 lines

  1.             CHIEF'S INSTALLER PRO: FREQUENTLY ASKED QUESTIONS
  2.             -------------------------------------------------
  3.  
  4. THIS FAQ LIST CONTAINS A LOT OF VERY USEFUL INFORMATION, AND
  5. CAN SAVE YOU A LOT OF TIME. PLEASE READ IT CAREFULLY!!!
  6.  
  7. AND, PLEASE READ this file BEFORE contacting me with any questions!!
  8.      ^^^^^^                ^^^^^^
  9. Also, please make sure that you have not mixed files from different
  10. versions of CHIEFPRO. The files will most likely not be compatible
  11. across versions.
  12.  
  13. IT PROBABLY CONTAINS ANSWERS TO THOSE QUESTIONS YOU MIGHT WISH TO
  14. ASK, AND TO THOSE WHICH YOU HAVEN'T EVEN THOUGHT OF!
  15.  
  16.  
  17. [--------------------------- CHIEF'S FAQ LIST -----------------------]
  18. 0.    Q. ANY TIPS?
  19.  
  20.       A. Yes. The first is simple - read the documentation, especially
  21.          the "reserved words" and "batch commands" sections of the help
  22.          file (CHIEF.HLP), and go through the second help file CHIEFPRO.HLP
  23.          with a fine toothcomb. Secondly, do NOT mix files from different
  24.          versions of ChiefPro. Mixing files is bound to cause problems.
  25.          Thirdly, use the ChiefPro IDE and Project Manager!
  26.  
  27.  
  28. 1.    Q. WHAT RESERVED WORDS (COMMANDS) DO I ACTUALLY *NEED* IN MY
  29.          WINSTALL.INF FILE?
  30.  
  31.       A. Most of the commands in the INF file are optional. However, some
  32.          of them are essential. At the absolute minimum, you MUST have the
  33.          following;
  34.                    $TITLE
  35.                    $DISK1
  36.                    $SPACE
  37.                    $TARGET
  38.  
  39.  
  40. 2.    Q. WHAT FILES IN THE CHIEF'S INSTALLER PRO PACKAGE ARE ABSOLUTELY
  41.          NECESSARY FOR AN INSTALLATION?
  42.  
  43.       A. As with the commands, most of the files in the package are
  44.          optional. At the absolute minimum, you must have;
  45.                    INSTALL.EXE
  46.                    WINSTALL.INF
  47.  
  48.          The installation will run perfectly well with these two files.
  49.          However, if you are using a language other than English, you 
  50.          must have a copy of WINSTALL.DLL compiled with the string 
  51.          resources translated to your language (or a translated copy of
  52.      WINSTALL.LNG).
  53.  
  54.          If you want to full support for the Win32 features, then you must 
  55.      have WINSTL32.DLL.
  56.  
  57.          If you want to change the default icon on the installer's dialog
  58.          boxes, then you also need WINSTALC.DLL.
  59.  
  60.          If your program comes on more than 1 installation disk, then it
  61.          is advised to ask your users to run SETUP.EXE instead of
  62.          INSTALL.EXE. SETUP.EXE will call INSTALL.EXE at the right point,
  63.          and running it avoids a lot of potential problems.
  64.  
  65.  
  66. 3.    Q. WHY DO I ALWAYS GET A DIALOG TELLING ME THAT THE INSTALLATION
  67.          IS NOT COMPLETE WHEN I KNOW THAT IT IS?
  68.  
  69.       A. If indeed, all the files have been correctly installed:
  70.          The installer tries to match the figure in your $SPACE line with
  71.          the sizes of the files installed (to approximately 2% either way).
  72.          A substantial (more than 2%) discrepancy leads to this error
  73.          dialog. One solution is to make sure that your $SPACE information
  74.          is accurate, or to disable the end dialog by using the
  75.          $NO-END-DIALOG command, but the best solution is to make sure that
  76.          the figure specified in your $SPACE line is accurate.
  77.  
  78.          Note that if you do not ensure the accuracy of your $SPACE line,
  79.          the progress "percent" meter will also not be accurate - and in
  80.          such cases, you SHOULD use $NO-END-DIALOG otherwise your users
  81.          will get a spurious error message which will confuse them into
  82.          thinking that the installation has failed.
  83.  
  84.          The easiest way to calculate ALL your space requirements is to
  85.          run CHIEFPRO.EXE.
  86.  
  87.          Please NOTE question 7 (below) as well.
  88.  
  89.  
  90. 4.    Q. I HAVE SPECIFIED CERTAIN FILES TO BE INSTALLED INTO THE WINDOWS
  91.          SYSTEM DIRECTORY WITH THE $SYSDIR COMMAND. WHY ARE THEY NOT BEING
  92.          INSTALLED?
  93.  
  94.       A. The $SYSDIR, $WINDIR, $TEMPDIR, and $DEST lines only specify the
  95.          DESTINATION of the files on those lines (the default is to install
  96.          all files into the directory pointed to by $TARGET). When you
  97.          use any of these, you still have to put those files on your $DISK
  98.          lines, otherwise, they will not be installed at all.
  99.  
  100.          Another possible cause is that your files are compressed, and you
  101.          are putting their compressed names (with underscores and all) on
  102.          these lines. The only place where you should use the file names
  103.          with the underscores (if they are compressed with the -r switch)
  104.          is on the $DISK lines. In EVERY other place where you specify file
  105.          names, you MUST use the original names of the files (i.e., the
  106.          names of the uncompressed files, before they were compressed).
  107.  
  108.  
  109. 5.    Q. IN WHAT ORDER SHOULD THE ENTRIES IN MY INF FILE APPEAR?
  110.  
  111.       A. The whole INF file is read and processed at once. This means that
  112.          the order is which the reserved words appear is not important in
  113.          most cases.
  114.  
  115.          However, note that $USER-OPTION lines MUST appear before $OPTIONAL
  116.          lines, and that any reserved word which is numbered (e.g., $DISK,
  117.          $USER-OPTION, $OPTIONAL) must appear and be numbered in the correct
  118.          numerical order.
  119.  
  120.  
  121. 6.    Q. IN WHAT LANGUAGE IS YOUR INSTALLER WRITTEN, AND WILL YOU SUPPLY
  122.          THE SOURCE CODE (ON PAYMENT OF A FEE)?
  123.  
  124.       A. Chief's Installer Pro is written in Borland Pascal 7.01, and Borland
  125.          Delphi. I am sorry I cannot supply the source code.
  126.  
  127.  
  128. 7.    Q. CHIEFPRO SEEMS TO BE GETTING THE DISK SPACE CALCULCATIONS WRONG.
  129.          WHAT GIVES?
  130.  
  131.       A. There are many causes for wrong calculations by CHIEFPRO. The
  132.          primary cause is indiscriminate use of wildcards in your INF
  133.          file. Other causes, which might be related to the one already
  134.          mentioned are:
  135.  
  136.             [a] Mixing wildcards and full file names on $DISK, $SYSDIR,
  137.                 $WINDIR, $TEMPDIR, and $OPTIONAL lines - this might
  138.                 result in some files being processed more than once.
  139.  
  140.             [b] Having files in the directories being processed by
  141.                 CHIEFPRO which files are not going to be on your
  142.                 distribution disks.
  143.  
  144.          The bottom line is this - if you are going to use wildcards on
  145.          your $DISK and/or $OPTIONAL lines, you need to think very
  146.          carefully about what you are doing. It is up to you to arrange
  147.          your lines so that no file is liable to be processed twice -
  148.          this is because CHIEFPRO processes your INF file _exactly_ as
  149.          it finds it.
  150.  
  151.          In my view, it advisable to AVOID mixing wildcards and full file
  152.          names on $OPTIONAL lines. The $OPTIONAL lines in SAMPLE4.INF
  153.          are a good example of what will cause wrong calculations by
  154.          CHIEFPRO.
  155.  
  156.  
  157. 8.    Q. SOMETIMES I GET AN ERROR MESSAGE THAT THE DISK CANNOT BE READ.
  158.      WHY DOES THIS HAPPEN?
  159.  
  160.       A. This sometimes happens when you are doing a multi-disk install,
  161.          and you have run INSTALL.EXE (instead of SETUP.EXE). This is
  162.          because Windows may have swapped out parts of INSTALL.EXE to
  163.          create room for other things to run, and now has to read
  164.          those parts again from INSTALL.EXE. If INSTALL.EXE is on disk 1
  165.          and you are currently on another disk (e.g., disk 3) then
  166.          INSTALL.EXE will not be found, and the error will occur.
  167.  
  168.          The best was to avoid this type of problem is to follow the
  169.          principle that IF THERE IS MORE THAN ONE DISK IN YOUR INSTALLATION
  170.          SET, YOU SHOULD ALWAYS RUN SETUP.EXE (AND NOT INSTALL.EXE).
  171.          SETUP.EXE will call INSTALL.EXE at the appropriate point.
  172.  
  173.  
  174. 9.    Q.  IF I WANT MY USERS TO RUN SETUP.EXE AND I WISH TO PREVENT THEM FROM
  175.          RUNNING INSTALL.EXE, HOW CAN I DO THIS?
  176.  
  177.       A. You can compress INSTALL.EXE with Microsoft's COMPRESS.EXE (if you
  178.          have a copy), with the  -r switch.
  179.  
  180.              i.e., "COMPRESS -r INSTALL.EXE"
  181.  
  182.          This will compress the file to INSTALL.EX_  - which of course your
  183.          users cannot run. When SETUP.EXE is executed, it will look first for
  184.          INSTALL.EXE. If that is not found, then it will look for INSTALL.EX_
  185.          and decompress it to the TEMP directory, and then it will run it.
  186.  
  187.          NOTE: if you compress INSTALL.EXE you MUST use the -r switch.
  188.  
  189.          NOTE also, that from v3.00, if you create your install disks from
  190.          the ChiefPro Project Manager, the ChiefPro support files will be
  191.          automatically archived in a file called: WINSTALL.BIN - which will
  192.          then be automatically copied to your DISK #1, along with SETUP.EXE and
  193.          SETUPINF.INF. Then your users will only have the option of running
  194.          SETUP.EXE. This option is not supported in the LITE version.
  195.  
  196. 10.   Q. YOU KEEP TALKING ABOUT MICROSOFT'S COMPRESS.EXE IN YOUR
  197.          DOCUMENTATION; HOW CAN I GET A COPY?
  198.  
  199.       A. COMPRESS.EXE is normally bundled with Windows development tools.
  200.          Microsoft has not permitted me to bundle it with Chief's
  201.          Installer Pro. However, if you have a Borland or Microsoft compiler,
  202.          you probably have the program already (usually in your compiler's
  203.          BIN directory).
  204.  
  205.          You can get a copy on Microsoft's web site or any of its Mirros, 
  206.          inside a package called "CP0982.EXE". You can do a "NET search"
  207.          for that filename, or you can try these URLs;
  208.         ftp://ftp.microsoft.com/Softlib/MSLFILES/CP0982.EXE
  209.         http://sunsite.doc.ic.ac.uk/Mirrors/ftp.microsoft.com/Softlib/MSLFILES/CP0982.EXE
  210.  
  211.          In any case, you can ZIP your files and then use the $UNZIP command
  212.          to install them - you will probably get a greater compression ratio
  213.          than using the LZW compression in COMPRESS.EXE.
  214.  
  215.          Also, you can use ChiefPro's built-in LZSS compression engine, from
  216.          the ChiefPro IDE.
  217.  
  218.  
  219. 11.   Q. I WISH TO INSTALL A FILE INTO MORE THAN ONE DIRECTORY. HOW CAN I
  220.          DO THIS?
  221.  
  222.       A. You need to set $MAX-DUPLICATES to a number which is equal to, or
  223.          higher than the number of different directories you may want to
  224.          install the file to.
  225.  
  226.          e.g., $MAX-DUPLICATES=5
  227.  
  228.          Note however, that the higher the figure here, the slower your
  229.          installation will proceed, because the installer will have to loop
  230.          through the $DEST lines at least the number of times that you
  231.          specify in $MAX-DUPLICATES. So you really do not want to set the
  232.          value here too high. A maximum of 3 is probably a good trade-off
  233.          for performance reasons. If you do not care much about speed, then
  234.          you can set it to as high as 30.
  235.  
  236.  
  237. 12.   Q. IF I WISH TO USE THE FULL RANGE OF FEATURES IN CHIEF'S INSTALLER PRO,
  238.          WHICH FILES MUST I HAVE ON MY DISTRIBUTION DISKS?
  239.  
  240.       A. Really, the only files that are absolutely necessary are;
  241.               INSTALL.EXE
  242.               WINSTALL.INF
  243.  
  244.            However, if you have only these files on your disk, many features will
  245.            be missing. For an installation program having the full range of features
  246.            offered by Chief Pro, you need all these files on your DISK #1
  247.  
  248.                1.  SETUP.EXE        - loader for the installer
  249.                2.  SETUPINF.INF    - INF file for SETUP.EXE
  250.                3.  INSTALL.EXE        - main installer
  251.                4.  WINSTALL.INF    - INF file for INSTALL.EXE
  252.                 5.  UNINSTAL.EXE        - the uninstaller
  253.         6.  WINSTALL.HLP    - help file for the installation
  254.                7.  WINSTL32.DLL    - WIN32 support DLL
  255.                8.  WINSTALC.DLL    - for the dialog icons
  256.                9.  WINSTALL.TXT    - for the README button
  257.                10. WINSTALL.MSG    - for the message dialog during the install
  258.                11. WINSTALL.WEL    - for the welcome message dialog
  259.                12. WINSTALL.CPR    - for the copyright message dialog
  260.  
  261.                
  262.     ALL these files, except #1 and #2 (SETUP.EXE SETUPINF.INF) CAN
  263.     be compressed on your DISK #1. SETUP.EXE will decompress them
  264.     automatically. Thus, you can follow these steps (or run a DOS
  265.     batch file that goes something like this):
  266.  
  267.         REM --- MAKEDSK1.BAT -----------
  268.         REM --- A DOS BATCH FILE TO COPY INSTALL FILES TO DISK #1
  269.         @ECHO OFF
  270.         C:
  271.         CD \TEMP
  272.         MD C:\TEMP\DIST
  273.         COPY SETUP.EXE C:\TEMP\DIST
  274.         COPY SETUPINF.INF C:\TEMP\DIST
  275.         COMPRESS -r INSTALL.EXE  C:\TEMP\DIST
  276.         COMPRESS -r WINSTALL.INF C:\TEMP\DIST
  277.         COMPRESS -r WINSTALL.HLP C:\TEMP\DIST
  278.         COMPRESS -r WINSTALL.TXT C:\TEMP\DIST
  279.         COMPRESS -r WINSTALL.MSG C:\TEMP\DIST
  280.         COMPRESS -r WINSTL32.DLL C:\TEMP\DIST
  281.         COMPRESS -r WINSTALC.DLL C:\TEMP\DIST
  282.         COMPRESS -r WINSTALL.WEL C:\TEMP\DIST
  283.         COMPRESS -r WINSTALL.CPR C:\TEMP\DIST
  284.         ECHO INSERT DISK #1 IN DRIVE A:
  285.         PAUSE > NUL
  286.         CD C:\TEMP\DIST
  287.         COPY *.* A:\
  288.  
  289.     OR,
  290.     You can create your projects and install disks from the ChiefPro
  291.         Project Manager. When you do so, all these files (except WINSTALL.INF)
  292.         will be compressed and archived in the ChiefPro archive: WINSTALL.BIN,
  293.     on your DISK #1.
  294.      
  295.  
  296. 13.   Q. I WOULD LIKE TO PUT ALL MY APPLICATION'S FILES IN ZIP ARCHIVES AND
  297.          THEN UNZIP THEM AT INSTALL TIME. CAN I DO THIS?
  298.  
  299.       A. The answer is "YES". The easiest way to do this is to put the files
  300.          for each disk in one (or more) ZIP files, put those files on the
  301.          relevant disks, and then use the $UNZIP command on the $DISK# lines.
  302.  
  303.            e.g.,
  304.                $DISK1=$UNZIP;$SOURCEDIR\PROG100.ZIP;$DEST;CONFIRM
  305.                $DISK2=$UNZIP;$SOURCEDIR\PROG200.ZIP;$DEST;CONFIRM
  306.                $DISK3=$UNZIP;$SOURCEDIR\PROG300.ZIP;$DEST\SRC;SKIP
  307.                $DISK4=$UNZIP;$SOURCEDIR\PROG400.ZIP;$DEST\DOC;SKIP;/F=*.XYZ
  308.          
  309.  
  310.       ** NOTE: This feature is not supported in the LITE version.
  311.  
  312. 14.   Q. I HAVE SOME LARGE DATA FILES THAT ARE TOO BIG TO FIT ONTO A SINGLE
  313.          FLOPPY DISK. HOW CAN I SPLIT THEM INTO SMALLER BITS SO THAT THEY
  314.          CAN FIT ONTO FLOPPIES?
  315.  
  316.       A. You can do this by running the DOS utility SPLIT.EXE, or by selecting
  317.          "Split File" from the CHIEFPRO IDE.
  318.  
  319.          Then you need to put the files on your installation disks, and install
  320.          then in the normal way (via your $DISK# and $DEST lines). You rebuild
  321.          the files by putting appropriate $BUILD-FILE statements in your
  322.          WINSTALL.INF file.
  323.  
  324.       ** NOTE: This feature is not supported in the LITE version.
  325.  
  326. 15.   Q. CAN I RUN A PROGRAM AND THEN WAIT UNTIL IT IS CLOSED?
  327.  
  328.       A. Yes. The recommended way of doing this is to use the EXECWAIT-WINDOW
  329.          batch command.
  330.  
  331.       ** NOTE: This feature is not supported in the LITE version.
  332.          
  333. 16.   Q. HOW CAN I DISABLE SUPPORT FOR LONG FILENAMES UNDER WINDOWS 95 AND
  334.          WINDOWS NT?
  335.  
  336.       A. Put the line:  $LONG-FILENAMES=DISABLED
  337.          in WINSTALL.INF and CHIEFPRO.INI
  338.  
  339.  
  340. 17.   Q. CAN I INSTALL THE BORLAND DATABASE ENGINE (BDE) WITH THIS PROGRAM?
  341.  
  342.       A. The answer is YES. The ChiefPro batch language is rich enough to
  343.          use for this purpose. See for example the template batch files:
  344.              BDE16.CHF, and
  345.              BDE32.CHF in your UTILS directory, for examples.
  346.          
  347.      You can add the BDE files to your projects via the ChiefPro IDE  
  348.  
  349.       ** NOTE: This feature is not supported in the LITE version.
  350.  
  351. 18.   Q. HOW CAN I CHANGE/CUSTOMISE THE MESSAGES GIVEN BY THE INSTALLER?
  352.  
  353.       A. Easily. You can either;
  354.            [a] edit the string tables in UNINST.RC and WINSTALL.RC and
  355.                then produce your own UNINST.DLL and WINSTALL.DLL files,
  356.            or
  357.            [b] edit the strings UNINST.LNS and WINSTALL.LNS, and then
  358.                rename them to UNINST.LNG and WINSTALL.LNG respectively.
  359.  
  360.          ChiefPro will automatically search for the .DLL and .LNG files
  361.          on your DISK #1 in order to load the string tables. The .LNG
  362.          files take precedence over the .DLL files.
  363.  
  364.  
  365. 19.   Q. I OFTEN CUSTOMISE MY INF FILE AFTER IT IS CREATED BY THE CHIEFPRO
  366.          IDE. WHEN NEXT I CREATE A NEW INF FILE FROM THE IDE, MY ORIGINAL
  367.          CUSTOMISATIONS ARE LOST! WHAT CAN I DO TO KEEP THEM?
  368.  
  369.       A. Any customisation of the INF file should only be done AFTER you
  370.          have created your final version of it. However, there is a facility
  371.          to help with your problem. Click on the "Extra ..." button in the
  372.          Project Manager, and put all your customisations in the edit control,
  373.          and save it. This will be added to your INF file after the INF file
  374.          is created.
  375.  
  376.  
  377. 20.   Q. WHEN I CREATE MY INSTALLATION DISKS FROM THE PROJECT MANAGER, I
  378.          NOTICE THAT SOME OF THE "CHIEFPRO" FILES ARE NOT ON MY DISK #1 -
  379.          AND, I NOTICE A FILE CALLED "WINSTALL.BIN". WHAT IS THIS
  380.          FILE DOING THERE?
  381.  
  382.  
  383.       A. WINSTALL.BIN was introduced in v3.00 as a means to avoid cluttering
  384.          your DISK #1 with ChiefPro program and support files. When you
  385.          create your install disks from the Project Manager, the ChiefPro
  386.          files (added automatically to each new project) will be compressed,
  387.          and archived into WINSTALL.BIN. This not only reduces clutter, it
  388.          also saves disk space, and protects the files from being tampered
  389.          with.
  390.  
  391.          Indeed, any file in your project which has ALL these attributes;
  392.                  TARGET DIRECTORY   = $CHIEF
  393.                  USER OPTION #      = -1
  394.                  DISK #             = 1
  395.  
  396.          will be archived into WINSTALL.BIN.
  397.  
  398.          When the files have been archived, the only ChiefPro files which
  399.          will be on your DISK #1 will be;
  400.                  SETUP.EXE
  401.                  SETUPINF.INF
  402.          UNINSTAL.EXE
  403.                  WINSTALL.BIN
  404.         
  405.          When the user runs SETUP.EXE, all the files in WINSTALL.BIN will
  406.          be extracted into the TEMP directory, and then SETUP.EXE will
  407.          load INSTALL.EXE, and the installation will proceed from there.
  408.  
  409.       ** NOTE: This feature is not supported in the LITE version.
  410.  
  411.  
  412. ----------------------------------
  413. Dr Abimbola Olowofoyeku (The Chief)
  414. June 1998
  415. E-mail: laa12@cc.keele.ac.uk
  416.  
  417.