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