@DefineProject
     @Name = "Numerical Recipes in FORTRAN"
     @Version = "2.01"
     @Outdrive = C
     @Subdir = "\\F32\\BIN"
@EndProject

@DefineVars
     @Qstring @Pathstring = "PATH"
     @Qstring @Licensee = ""
     @Qstring @Keyfile = "NR20KEY.AR"
@EndVars

@DefineDisk
  @Label = "Disk 1 of 1"
  @File NRCOPY.EXE @AskOverWrite
  @File NRHELP.COM @AskOverWrite
  @File NRF20REC.AR @AskOverWrite
  @File NRF20EXA.AR @AskOverWrite
  @File NRF20OTH.AR @AskOverWrite
@EndDisk

@Display
     @Name Version @Version
     This program installs the Numerical Recipes files on your computer.
     You may press the [Esc] key at any time to abort the installation.

     Congratulations on your purchase of a Microsoft FORTRAN compiler
     that includes this special version of the Numerical Recipes Fortran
     Diskette!  This version contains all the material that is in the
     regular version (as distributed by Cambridge University Press),
     plus some extra helpful hints for using the programs with Microsoft
     compilers, including the 32-bit Microsoft FORTRAN PowerStation.

     Your purchase of a Microsoft FORTRAN compiler also entitles you to
     purchase the book "Numerical Recipes in FORTRAN: The Art of Scientific
     Computing", and other Numerical Recipes products, from Cambridge
     University Press at a 20% discount.  See the included flier for
     details and an order form.

            @Pause
@EndDisplay

@Display

     General information:

     The Numerical Recipes routines consist of more than 600 individual
     files (including both the recipes and the sample driver routines).
     Fully unpacked, this large number of files requires excessive disk
     space, and degrades the performance of programs that scan the full
     directory tree.  Furthermore, few users ever want to use more than
     a small number of the routines at any one time.

     We therefore supply the routines in the form of a small number of
     compressed archive files, and a special dearchiving program called
     NRCOPY.  When properly installed, NRCOPY becomes a command that is
     available from any working directory.  On request, it creates a copy
     of any desired routine.  You can use, modify, or delete this copy:
     a fresh copy can always be obtained by the NRCOPY command.

            @Pause
@EndDisplay

@Display
     (General information, continued...)

     We strongly recommend that you use the compressed archive files in
     this manner.  Not only is it convenient and compact, it also keeps
     the master Numerical Recipes files from becoming accidentally
     corrupted or modified.  If, however, you insist on unpacking all
     600+ files, the NRCOPY program will allow you to do this.  Simply
     complete this installation and then type NRHELP for further info.

     In order for NRCOPY to be available from any working directory, its
     executable file must be located in a subdirectory that is in your
     DOS path.  Furthermore, in order for NRCOPY to be able to locate
     its necessary archive files, _they_ must be in a subdirectory in
     your DOS path.  Since the total number of files is quite small, it
     is usually convenient to use an existing subdirectory, rather than
     to create a new one and add it to the path.  On the next screen, you
     will be asked to choose an existing subdirectory, or to authorize
     creation of a new one (with or without adding it to the PATH
     statement in your AUTOEXEC.BAT file).
     @Pause
@EndDisplay

@GetGroups
     @SET A = "Use an existing subdirectory in path."
     @SET B = "Create new subdirectory and modify AUTOEXEC.BAT"
     @SET C = "Create new subdirectory but don't modify AUTOEXEC.BAT"
     @Cls
  How should a subdirectory in the path be chosen to receive the files?






     Your current path is:

@Pathstring

     If there is a suitable subdirectory in your current path, then
     choose the top option.  (If your path contains \F32\BIN, the top
     option is recommended.) If not, choose the middle or bottom option.
     If you choose the bottom option, then the NRCOPY command will work
     only when your working directory is the specified subdirectory.

     Use the [Up Arrow], [Down Arrow], [PgUp], & [PgDn] keys to move the 
     highlight bar to the type of installation you prefer.  Press [Enter]
     to select that installation.  Press [Esc] to abort.
@EndGroups

@GetOutDrive
     Which disk drive is your selected subdirectory on?











     Use [Up Arrow] and [Down Arrow] keys.  Press [Enter] to select.

     (Depending on your previous answer, the selected subdirectory will
     be either in your current path, or else a new one that you want to
     create.)  As a reminder, your current path is:

@Pathstring
@EndOutDrive

@If (@DiskFree @OutDrive < 450000)
@Display


     CAUTION: Your selected output drive appears to have only @DiskFree @OutDrive
     free bytes.  The Numerical Recipes installation requires
     approximately 450000 free bytes.

     You may quit the installation now, or (if you think that the install
     program has incorrectly sized your disk) you may continue.  If the
     install program fills your disk, it will so advise you and quit.



           @Pause
@EndDisplay
@Endif

@GetSubdir
     @Cls
     Now choose the subdirectory name.

     Depending on your previous answers, the selected subdirectory will
     be either in your current path, or else a new one that you want to
     create.  As a reminder, your current path is:

@Pathstring

     Enter the subdirectory name, beginning with a '\'. (Since you
     already chose an output disk drive, do not re-enter the drive.)
     The suggested default is '\F32\BIN', which should already be
     in your path if you have installed the Microsoft FORTRAN
     PowerStation compiler with default choices.

     Use [Backspace] to delete, [Esc] to clear.  Press [Enter] when
     you are satisfied with the choice.

@Prompt = " Enter a subdirectory name "


@EndSubdir

@If ('B' [= @Group)
  @SetAutoexec
    @AskOverwrite
    @Path = "@Outdrive:\\@Subdir"
  @EndAutoexec
@EndIf

@Display
     You are almost done.  The final step is for you to provide your name,
     or the name of the individual or company to whom this diskette copy is
     licensed.  This information is used to personalize the NRCOPY program.
     Entering it also confirms your acceptance of the following

                        DISCLAIMER OF WARRANTY
          THE PROGRAMS INSTALLED BY THIS ROUTINE  (AND ON THE ORIGINAL
     DISKETTE)  ARE PROVIDED   "AS IS"   WITHOUT WARRANTY OF ANY KIND.
     WE MAKE NO WARRANTIES, EXPRESS OR IMPLIED,  THAT THEY ARE FREE OF
     ERROR,   OR  ARE  CONSISTENT  WITH  ANY  PARTICULAR  STANDARD  OF
     MERCHANTABILITY, OR THAT THEY WILL MEET YOUR REQUIREMENTS FOR ANY
     PARTICULAR APPLICATION.  THEY SHOULD NOT BE RELIED ON FOR SOLVING
     A PROBLEM  WHOSE INCORRECT SOLUTION  COULD  RESULT IN INJURY TO A
     PERSON OR LOSS OF PROPERTY.  IF YOU DO USE THEM IN SUCH A MANNER,
     IT IS  AT YOUR OWN RISK.  THE AUTHORS AND PUBLISHER  DISCLAIM ALL
     LIABILITY   FOR  DIRECT,   INDIRECT,   OR  CONSEQUENTIAL  DAMAGES
     RESULTING FROM YOUR USE OF THE PROGRAMS.
  @Pause
@EndDisplay
@GetString @Licensee

     Please enter your name, or the name of the individual or company
     to whom this diskette copy is licensed (generally the original
     purchaser).  By doing so, you confirm your acceptance of the
     DISCLAIMER OF WARRANTY that was shown on the previous screen.

     Please be aware that the programs on this disk are licensed for
     use on a single IBM PC-compatible machine for each disk purchased,
     and that it is a violation of copyright to install them on more
     than one machine, or to copy them to any other machine once they
     have been installed.

     If you do not accept the above DISCLAIMER OF WARRANTY, or if this
     installation is not compatible with copyright restrictions, you
     should abort this installation by pressing [Esc] twice now.

     @Prompt = " Enter name of licensee, and press [Return] "
@EndString
@If ("@Licensee" == "")
@GetString @Licensee

     Sorry, you did not enter a valid licensee name.  Please try again:

     Please enter your name, or the name of the individual or company
     to whom this diskette copy is licensed (generally the original
     purchaser).  By doing so, you confirm your acceptance of the
     DISCLAIMER OF WARRANTY that was previously displayed.

     If you do not accept the DISCLAIMER OF WARRANTY, or if this
     installation is not compatible with copyright restrictions, you
     should abort this installation by pressing [Esc] twice now.

     @Prompt = " Enter name of licensee, and press [Return] "
@EndString
@EndIf
@If ("@Licensee" == "")
   @Abort
@EndIf
@DefineVars
     @Qstring @Hash = "@HASHIT("@Licensee")"
@EndVars
@MkDir("@OutDrive:\\@Subdir")
@Write("@OutDrive:\\@Subdir\\@Keyfile","wt","@Hash@Licensee\n")

@Finish
@ChDrive @OutDrive
@ChDir "@Subdir"
     Installation of @Name version @Version
     is now complete.

     When you exit this screen, you will be in the working directory
     @Outdrive:@Subdir.
     The NRHELP and NRCOPY commands will be fully functional.  We
     recommend that you try NRHELP immediately, since it contains
     additional information on how to use the Numerical Recipes routines,
     annotated lists of all the routines, and other useful information.

     Once the above directory is in your PATH, the NRHELP and NRCOPY
     commands will work from any DOS prompt.  If you selected the install
     option that automatically modified your AUTOEXEC.BAT file, this will
     become true after you reboot your machine.  Otherwise, you may need
     to modify your AUTOEXEC.BAT file with a text editor, or else manually
     include the above directory in your PATH with the PATH command.
     
     In the unlikely event that you are unable to get NRHELP to execute,
     read the file NRHELP.TXT, located on the original diskette.
     
     @Pause
     @Exit
@EndFinish
