/*
 *  AutoSurf installation DAT file - media control for 3 1/2 (1.44) meg
 *  floppy disks.
 *  This DAT file can be used with either the full AutoCAD R12AS
 *  installation or as a stand alone AutoSurf installation.
 *
 *  MODIFICATION LOG:
 *  -----------------
 *  09/24/1993  : RNF   - initial completion, ready for QA testing
 *  09/28/1993  : RNF   - added option to skip installation of AutoSurf
 *                        support files and allow user to manually update
 *                        these files.
 * 10/04/1993   : RNF   - changed all XMSG references from ASURFXMSG to DATXMG
 *                        starting at message number 501, next available is 550
 * 10/07/1993   : RNF   - added IGES translator files to Disk 4 and 5 in the ASBONUS1
 *                        and ASBONUS2 library files, also replaced all message from 
 *                        starting at 501 to start at 125.
 *                      - needed to add the @Group directive along with the @Append
 *                        commands so not to append when the file exists but the group
 *                        list didn't include installing the previous part.
 * 10/09/1993   : RNF   - Modified check for support file pre-existance, now allow the
 *                        choice to automatically append to files or manually update them
 *                        later.  Also, needed to add VPSETUP.LSP to SAMPLE2.lib block.
 *                      - Made several verbage changes per QA suggestions.
 * 10/11/1993   : RNF   - Added IGESCFG.EXE to the ASBONUS2 library on Disk 5
 * 10/31/1993   : RNF   - Modified messages 166 and 167 in the Automatic appending block.
 *                      - Added check for ACAD.HLP in Automatic appending block, now I will
 *                        install ASURF.HLP and if automatically appending, then I will append
 *                        ASURF.HLP to the bottom of ACAD.HLP.
 *
 */


@DefineProject
   @If (@FULLINST == 0)
	@NAME           = "AutoCAD 386"  /* Must match ACAD R12 disks */
	@VERSION        = "R12AS"        /* Must match ACAD R12 disks */
	@Language       = @EN @Endlang
	@ABANNER        = "    AutoSurf  R2 / 386    "
	@SUBDIR         = "\\ACAD"
	@OUTDRIVE       = C
	@GROUP          = "U"
	@Requires         @HardDisk
	@UPDATE         = (0)    /* Bugfix = 1, Regular = 0 */
	/* For updates,  set disk label in @if at end of file */
   @Endif
@EndProject

@If (@FullINST == 0)
@DefineVars
	@Dir            @Subdir2        = "@Subdir\\SUPPORT"    /* SUPPORT directory type */
	@Dir            @Subdir3        = "asbonus"             /* ASBONUS directory type */

/* For updates,  set disk label in @if at end of file */

/* Remember to also update the space requirements in the user messages */
	@Integer        @ASURFEXE       =  5000000
	@Integer        @ASURFXTRA      =  9500000
	@Integer        @Temp           =        0
	@Integer        @Free           =        0
	@Integer        @International  =        0

	@Integer        @SKIP_FILES     =        0
@EndVars

@WELCOME
	@CLS
@if (@Language == @EN)
	@DATXMSG(176, "This program will install the ENGLISH version of AutoSurf R2")
	@DATXMSG(177, "on your computer.")
@endif


  @pause
    @If (@CPU < 386)
	@DATXMSG(125, "AutoSurf requires an 80386 or 80486 CPU.")
	@DATXMSG(2,"\tYour computer is running on a 80@CPU CPU.")


	@Pause
    @Endif

     @If ((@OSMajor * 100 + @OSMinor) < 330)
	@DATXMSG(126, "AutoSurf requires DOS version 3.30 or higher.")

	@Pause
     @Endif

	@CLS

	@DATXMSG(127,"This program will install AutoSurf R2 on your computer system")
	@DATXMSG(128,"and checks the distribution disks for errors.")

	@DATXMSG(129,"You must specify the drive and directory where AutoCAD R12AS was")
	@DATXMSG(130,"installed.  AutoSurf specifically requires AutoCAD R12AS and will")
	@DATXMSG(131,"not run with any other version.  If you have not yet installed")
	@DATXMSG(132,"AutoCAD R12AS, hit escape now and install AutoCAD R12AS before")
	@DATXMSG(133,"proceeding.")


	@PAUSE
	@cls

	@DATXMSG(134,"Each screen of this program offers a choice and a default response.")
	@DATXMSG(135,"Press the RETURN key to accept the default.  Otherwise, type or ")
	@DATXMSG(136,"select another response and then press the RETURN key.")
	@DATXMSG(137,"If you make a mistake while typing, press the BACKSPACE key and")
	@DATXMSG(138,"retype the entry.")

	@DATXMSG(140,"You can press the ESC key at any time to cancel the installation")
	@DATXMSG(141,"and return to the operating system.")



	@PAUSE
@EndWelcome

@IF (@update == 1)
    @SetGroup(A)    /* Install all files on Updates */
@Else

SELECTASURF:
@Getgroups
	@CheckBox
	@DATXMSG(142,"Here you select the parts of AutoSurf you want to install.")







	@SET U = "@DATXMSG(143,"Install all AutoSurf files              (14500000 bytes)")"
	@SET P = "@DATXMSG(144,"AutoSurf Executables/Support files      ( 5000000 bytes)")"
	@SET X = "@DATXMSG(145,"AutoSurf Tutorials/Samples/Bonus files  ( 9500000 bytes)")"

	@DATXMSG(146,"Use the up and down cursor keys to scroll through the list.")
	@DATXMSG(147,"The SPACE_BAR key is used to toggle the YES/NO state of the")
	@DATXMSG(148,"current selection.  Press the RETURN key to accept the selection(s).")

	@DATXMSG(149,"Press the ESC key to abort.")
@EndGroups

@Display
	@Cls
	@If ('U' [= @Group || 'P' [= @Group || 'X' [= @Group)


    @DATXMSG(82,"\tSELECTED FOR INSTALLATION:")

	@If ('U' [= @Group)    @DATXMSG(150,"Install all AutoSurf files.")             @EndIf
	@If ('P' [= @Group)    @DATXMSG(151,"AutoSurf Executables/Support files.")     @EndIf
	@If ('X' [= @Group)    @DATXMSG(152,"AutoSurf Tutorials/Samples/Bonus files.") @EndIf

	@Pause
	@IF ('U' [= @GROUP)
	    @SETGROUP(P)
	    @SETGROUP(X)
	@Endif
	@ELSE
	@DATXMSG(154,"No AutoSurf files were selected for installation.  If you do not")
	@DATXMSG(155,"want to install AutoSurf at this time, press the ESC key to abort.")


	   @Pause
	   @GOTO SELECTASURF
	@Endif
@EndDisplay

/* Compute amount of disk space needed to install selected files */

@If ('P' [= @Group)
	@Equal(@FREE = @ASURFEXE)
@Endif

@If ('X' [= @Group)
	@Equal(@TEMP = @ASURFXTRA + @FREE)
	@Equal(@FREE = @TEMP)
@Endif
@Endif /* Not an update */

SelectDrv:
@GetOutDrive
	@Suppress A      /* don't display A: */
	@Suppress B      /* or B:            */
	@CLS
    @DATXMSG(16,"\tOn which disk drive do you want to install the selected files?")
















    @DATXMSG(17,"\tUse the up and down cursor keys to scroll through the")
    @DATXMSG(18,"\tlist of disk drives.  Press the RETURN key when you have ")
    @DATXMSG(19,"\tselected a drive.")

@EndOutDrive

@If (@WriteDisk @OutDrive == 1)  /* Is selected drive writeable? */
       @GetOption

    @DATXMSG(111,"\tThe selected output disk drive is read only.")
    @DATXMSG(112,"\tDo you want to select another drive?")
       @LocalWindow(12,40)
	     @Option  20 = "@DATXMSG(113,"Abort Install")"
	     @option  21 = "@DATXMSG(77,"Select another drive")"
       @EndOption

   @If(21 [= @Option)
	 @ClearOption(21)
	 @GoTO SelectDRV
   @Else
	 @Abort
   @Endif
@EndIf

@If (@update == 0)   /* Can't check space avaiable on updates */

   @If (@DiskFree  @OutDrive < @FREE)
	   @GetOption

    @DATXMSG(72,"\tThe selected output disk drive only has @DiskFree @OutDrive bytes free.")
    @DATXMSG(73,"\tTo install the files you have selected, @FREE bytes are ")
    @DATXMSG(74,"\trequired.")

    @DATXMSG(75,"\tDo you want to install on this drive anyway or select another drive?")
	   @LocalWindow(12,40)
		 @Option  10 = "@DATXMSG(76,"Continue")"
		 @option  11 = "@DATXMSG(77,"Select another drive")"
	   @EndOption
   @EndIf

   @If(11 [= @Option)
	 @ClearOption(11)
	 @GoTO SelectDRV
   @Endif
@Endif

Selectsubdir:
@GetSubdir
	@CLS

    @DATXMSG(20,"\tHere you specify the name of the directory where the selected files")
    @DATXMSG(21,"\twill be installed.  By default, the name of this directory is:")
	      @SUBDIR.

	@DATXMSG(156,"AutoSurf R2 requires AutoCAD R12AS and unless R12AS was")
	@DATXMSG(157,"previously installed on a different disk drive, or under a")
	@DATXMSG(158,"different root directory, choose the default by pressing the")
	@DATXMSG(159,"RETURN key.")

    @DATXMSG(25,"\tTo change the directory name, backspace over the directory name")
    @DATXMSG(26,"\tand type a new name.  Press the RETURN key when you have finished ")
    @DATXMSG(27,"\ttyping the name.")

	@PROMPT = "@DATXMSG(28," Which subdirectory ? ")"
@EndSubdir


@If ('P' [= @Group)  /* Need SUPPORT */
@GetSubdir @Subdir2
	@Default = "@Subdir\\SUPPORT\\"
	@CLS

	@DATXMSG(160,"Here you specify the name of the directory where AutoSurf")
	@DATXMSG(161,"support files will be installed.  By default, the name of")
	@DATXMSG(162,"this directory is:")
	      @SUBDIR2

    @DATXMSG(32,"\tThe program locates it below the root directory of the disk")
    @DATXMSG(33,"\tdrive you selected.  If you have no preference, choose the")
    @DATXMSG(34,"\tdefault by pressing the RETURN key.")

    @DATXMSG(35,"\tTo change the directory name, backspace over the directory name")
    @DATXMSG(36,"\tand type a new name.  Press the RETURN key when you have finished")
    @DATXMSG(37,"\ttyping the name.")

	@PROMPT = "@DATXMSG(38," Support files subdirectory ? ")"
@EndSubdir

@Endif /* Support directory needed */
@ENDIF /* Not Full Install */


@IF ( @Exists "@OutDrive:@SubDir2\\ACAD.HLP"    ||
      @Exists "@OutDrive:@SubDir2\\ACAD.MNL"    ||
      @Exists "@OutDrive:@SubDir2\\ACADR12.LSP" )
	@GetOption
	@DATXMSG(163,"The AutoSurf installation program has detected the existance of the")
	@DATXMSG(164,"following files in:  ") @OutDrive:@SubDir2
	@IF ( @Exists "@OutDrive:@SubDir2\\ACAD.HLP"   )        ACAD.HLP        @Endif
	@IF ( @Exists "@OutDrive:@SubDir2\\ACAD.MNL"   )        ACAD.MNL        @Endif
	@IF ( @Exists "@OutDrive:@SubDir2\\ACADR12.LSP")        ACADR12.LSP     @Endif

	@DATXMSG(165,"This installation program needs to append information to the bottom")
	@DATXMSG(166,"of these files to enable automatic loading of the AutoSurf")
	@DATXMSG(167,"application at the time AutoCAD R12AS is run.")

	@DATXMSG(168,"If you select the 'Manually update' option below, you will need to")
	@DATXMSG(169,"explicitly load the AutoSurf application before attempting to ")
	@DATXMSG(170,"access any of the AutoSurf commands, or append the information to")
	@DATXMSG(171,"these files yourself at a later time.  For more information on")
	@DATXMSG(172,"appending see the AutoSurf Installation Guide - Loading AutoSurf.")

	@DATXMSG(173,"It is recommended that you append the information at this time.")

	@LocalWindow(20,38)


	   @Option 114 = "@DATXMSG(174,"Automatically append")"
	   @Option 115 = "@DATXMSG(175,"  Manually update   ")"
	@EndOption
@Endif


	/* ASURF Disk 1 - EXECUTABLES */
@DefineDisk
       @LABEL = "ASURF 1"
       @File    ASURF1.MID               @Group APX @Out ASURF.MID
       @File    README.ASF               @Group APX @Out README.ASF
       @File    ASURF.PT1        @Packed @Group AP  @Out ASURF.EXP
@EndDisk



	/* Asurf Disk 2 - EXECUTABLES / SUPPORT / TUTORIALS */
@DefineDisk
       @LABEL = "ASURF 2"
       @File    ASURF2.MID               @Group APX @Out      ASURF.MID
       @File    ASURF.PT2        @Packed @Group AP  @AppendTo ASURF.EXP

       @BeginLib SUPPORT.LIB
	  @File   AS_BUTNS.DCL   @Packed @Group AP  @Out \\@Subdir2\\*.*
	  @File   ASFILTER.DCL   @Packed @Group AP  @Out \\@Subdir2\\*.*
	  @File   BLENDSF.DCL    @Packed @Group AP  @Out \\@Subdir2\\*.*
	  @File   BMAKE.DCL      @Packed @Group AP  @Out \\@Subdir2\\*.*
	  @File   CREATEAG.DCL   @Packed @Group AP  @Out \\@Subdir2\\*.*
	  @File   EXPL3D.DCL     @Packed @Group AP  @Out \\@Subdir2\\*.*
	  @File   EXTRDSF.DCL    @Packed @Group AP  @Out \\@Subdir2\\*.*
	  @File   FILLET3D.DCL   @Packed @Group AP  @Out \\@Subdir2\\*.*
	  @File   FILLETSF.DCL   @Packed @Group AP  @Out \\@Subdir2\\*.*
	  @File   FLOWSF.DCL     @Packed @Group AP  @Out \\@Subdir2\\*.*
	  @File   INTERSF.DCL    @Packed @Group AP  @Out \\@Subdir2\\*.*
	  @File   JOIN3D.DCL     @Packed @Group AP  @Out \\@Subdir2\\*.*
	  @File   LOFTSF.DCL     @Packed @Group AP  @Out \\@Subdir2\\*.*
	  @File   OFFSETVW.DCL   @Packed @Group AP  @Out \\@Subdir2\\*.*
	  @File   PROJECT.DCL    @Packed @Group AP  @Out \\@Subdir2\\*.*
	  @File   REVOLVE.DCL    @Packed @Group AP  @Out \\@Subdir2\\*.*
	  @File   RULESF.DCL     @Packed @Group AP  @Out \\@Subdir2\\*.*
	  @File   SECTION.DCL    @Packed @Group AP  @Out \\@Subdir2\\*.*
	  @File   SPLINE.DCL     @Packed @Group AP  @Out \\@Subdir2\\*.*
	  @File   SURFDISP.DCL   @Packed @Group AP  @Out \\@Subdir2\\*.*
	  @File   SURFVAR.DCL    @Packed @Group AP  @Out \\@Subdir2\\*.*
	  @File   SWEEPSF.DCL    @Packed @Group AP  @Out \\@Subdir2\\*.*
	  @File   UTILITY.DCL    @Packed @Group AP  @Out \\@Subdir2\\*.*
						 
	  @File   ASFILTER.LSP   @Packed @Group AP  @Out \\@Subdir2\\*.*
	  @File   SURFVAR.VAR    @Packed @Group AP  @Out \\@Subdir2\\*.*
	  @File   ASURF.DWG      @Packed @Group AP  @OUT \\@Subdir2\\*.*
	  @File   ASURF.HLP      @Packed @Group AP  @OUT \\@Subdir2\\*.*
	  @File   ASURF.LSP      @Packed @Group AP  @OUT \\@Subdir2\\*.*
	  @File   ASURF.MNU      @Packed @Group AP  @OUT \\@Subdir2\\*.*
	  @File   ASURF.MSG      @Packed @Group AP  @OUT \\@Subdir2\\*.*
	  @File   ASURF.PGP      @Packed @Group AP  @OUT \\@Subdir2\\*.*
	  @File   ASURF_ON.MNU   @Packed @Group AP  @OUT \\@Subdir2\\*.*

	  @File   ASURFB.MNL     @Packed @Group AP  @OUT      \\@Subdir2\\ASURF.MNL
	  @File   ACAD.MNL       @Packed @Group AP  @AppendTo \\@Subdir2\\ASURF.MNL
	  @File   ACAD.MNL       @Packed @Group AP  @OUT      \\@Subdir2\\ACADR12.MNL
	  @File   ACAD12.MNL     @Packed @Group AP  @AppendTo \\@Subdir2\\ACADR12.MNL

	  @IF (114 [= @Option)          /*  APPEND to existing files  */
	      @File   ASURF.HLP      @Packed @Group AP  @AppendTo \\@Subdir2\\ACAD.HLP
	      @File   ASURFA.MNL     @Packed @Group AP  @AppendTo \\@Subdir2\\ACAD.MNL
	      @File   ASURFA.LSP     @Packed @Group AP  @AppendTo \\@Subdir2\\ACADR12.LSP
	  @ElseIf (115 [= @Option)      /*  MANUALLY update file, source files installed below  */
	  @Else                         /*  Files NOT found, create them now  */
	      @File   ACAD.HLP       @Packed @Group AP  @OUT      \\@Subdir2\\ACAD.HLP
	      @File   ASURF.HLP      @Packed @Group AP  @AppendTo \\@Subdir2\\ACAD.HLP
	      @File   ACAD.MNL       @Packed @Group AP  @OUT      \\@Subdir2\\ACAD.MNL
	      @File   ASURFA.MNL     @Packed @Group AP  @AppendTo \\@Subdir2\\ACAD.MNL
	      @File   ACADR12.LSP    @Packed @Group AP  @OUT      \\@Subdir2\\ACADR12.LSP
	      @File   ASURFA.LSP     @Packed @Group AP  @AppendTo \\@Subdir2\\ACADR12.LSP
	  @Endif  /*  SKIP_FILES  */

	  @File   ASURF.MNC      @Packed @Group AP  @OUT \\@Subdir2\\source\\*.*
	  @File   ASURF.MND      @Packed @Group AP  @OUT \\@Subdir2\\source\\*.*

		/*  Install the AutoSurf support source file  */
	  @File   ASURFA.MNL     @Packed @Group AP  @OUT \\@Subdir2\\source\\*.*
	  @File   ASURFA.LSP     @Packed @Group AP  @OUT \\@Subdir2\\source\\*.*
	  @File   ASURFB.MNL     @Packed @Group AP  @OUT \\@Subdir2\\source\\*.*
	  @File   ACAD12.MNL     @Packed @Group AP  @OUT \\@Subdir2\\source\\*.*
      @EndLib

      @BeginLib TUTORIAL.LIB
	  @File   BLENDSF1.DWG   @Packed @Group AX  @Out TUTORIAL\\*.*
	  @File   BLENDSF2.DWG   @Packed @Group AX  @Out TUTORIAL\\*.*
	  @File   CORNERSF.DWG   @Packed @Group AX  @Out TUTORIAL\\*.*
	  @FilE   FILLETSF.DWG   @Packed @Group AX  @Out TUTORIAL\\*.*
	  @File   LOFTSF.DWG     @Packed @Group AX  @Out TUTORIAL\\*.*
	  @File   MESHSF.DWG     @Packed @Group AX  @Out TUTORIAL\\*.*
	  @File   PRIMSF1.DWG    @Packed @Group AX  @Out TUTORIAL\\*.*
	  @File   REVOLVSF.DWG   @Packed @Group AX  @Out TUTORIAL\\*.*
	  @File   SWEEPSF1.DWG   @Packed @Group AX  @Out TUTORIAL\\*.*
	  @File   T_PUMP.DWG     @Packed @Group AX  @Out TUTORIAL\\*.*
	  @File   T_SURFS.DWG    @Packed @Group AX  @Out TUTORIAL\\*.*
	  @File   T_WHEEL.DWG    @Packed @Group AX  @Out TUTORIAL\\*.*
	  @File   TUBESF1.DWG    @Packed @Group AX  @Out TUTORIAL\\*.*
      @EndLib
@EndDisk


	/* ASURF Disk 3 - SAMPLE 1 */
@DefineDisk
       @LABEL =  "ASURF 3"
       @File     ASURF3.MID              @Group AX  @Out ASURF.MID

       @BeginLib SAMPLE1.LIB
	  @File   ASHOWER.DWG    @Packed @Group AX  @Out SAMPLE\\*.*
	  @File   ASTICK.DWG     @Packed @Group AX  @Out SAMPLE\\*.*
      @EndLib
@EndDisk

	/* Asurf Disk 4 - SAMPLE 2 */
@DefineDisk
       @LABEL = "ASURF 4"
       @File     ASURF4.MID              @Group AX  @Out ASURF.MID

       @BeginLib SAMPLE2.LIB
	  @File   ASLIGHT.DWG    @Packed @Group AX  @Out SAMPLE\\*.*
	  @File   ASPUMP.DWG     @Packed @Group AX  @Out SAMPLE\\*.*
	  @File   ASTWIST.DWG    @Packed @Group AX  @Out SAMPLE\\*.*
	  @File   TABLETAS.DWG   @Packed @Group AX  @Out SAMPLE\\*.*
	  @File   VPSETUP.LSP    @Packed @Group AX  @Out SAMPLE\\*.*
      @EndLib

       @BeginLib ASBONUS1.LIB
	  @File   IGES2MOD.EXE   @Packed @Group AX  @Out ASBONUS\\*.*
	  @File   IGES.CFG       @Packed @Group AX  @Out ASBONUS\\*.*
      @EndLib

@EndDisk

	/* Asurf Disk 5 - ASBONUS */
@DefineDisk
       @LABEL = "ASURF 5"
       @File     ASURF5.MID              @Group AX  @Out ASURF.MID
       @BeginLib ASBONUS2.LIB
	  @File   CSF2MOD.EXE    @Packed @Group AX  @Out ASBONUS\\*.*
	  @File   DES2MOD.EXE    @Packed @Group AX  @Out ASBONUS\\*.*
	  @File   FORD2MOD.EXE   @Packed @Group AX  @Out ASBONUS\\*.*
	  @File   VDA2MOD.EXE    @Packed @Group AX  @Out ASBONUS\\*.*
	  @File   MOD2CSF.EXE    @Packed @Group AX  @Out ASBONUS\\*.*
	  @File   MOD2DES.EXE    @Packed @Group AX  @Out ASBONUS\\*.*
	  @File   MOD2FORD.EXE   @Packed @Group AX  @Out ASBONUS\\*.*
	  @File   MOD2IGES.EXE   @Packed @Group AX  @Out ASBONUS\\*.*
	  @File   MOD2VDA.EXE    @Packed @Group AX  @Out ASBONUS\\*.*
	  @File   IGESCFG.EXE    @Packed @Group AX  @Out ASBONUS\\*.*
	  @File   CSF.CFG        @Packed @Group AX  @Out ASBONUS\\*.*
	  @File   DES.CFG        @Packed @Group AX  @Out ASBONUS\\*.*
	  @File   FORD.CFG       @Packed @Group AX  @Out ASBONUS\\*.*
	  @File   VDA.CFG        @Packed @Group AX  @Out ASBONUS\\*.*
	  @File   README.TRN     @Packed @Group AX  @Out ASBONUS\\*.*
      @EndLib
@EndDisk


@IF (@UPDATE == 1)
/*    @Chain = "disk_label" */
@Elseif ('G' [= @Group || 'H' [= @Group)
    @Chain = "AME 1"
@Endif

