/*
 *	FILE: PCMILER.DAT
 *
 *	DESC:
 *This file contains the script-like parameters that are used to install
 *PC*MILER V. 6.0.
 */

@DefineProject
	@Name 		= "PC*MILER" 			/* Product Textual Name:  */
	@Version	= "6.00"
	@Subdir	=   "\\PCMILER\\"
	@OutDrive 	= C
	@Requires @HardDisk
/*	@Requires 12600000 */
@InDiskBell = 1
@EndProject

@DefineVars
  @QSTRING @USER = ""
  @QSTRING @COMP = ""
  @QSTRING @SERIAL = ""
@EndVars

@Display



                  @NAME Version @VERSION Installation


               Copyright (c) 1992 by ALK Associates, Inc


    Welcome to the @NAME installation program.  This program will copy
    the files needed to install @NAME Version @VERSION on your system.









                             @pause
    @cls




    @NAME Installation requires you to follow a series of instructions.
    Please insert the proper diskette when you are prompted for it.
    Please note the following before continuing:


        1)  @NAME requires 16.0 MB of hard disk space.

        2)  If you already have PC*MILER loaded on your system, the
            installation program will prompt you for removing the
            the old copy of PC*MILER from the @Subdir directory.

        3)  @NAME requires your PC to be running DOS Version 3.00
            or later.


     Press the <ESC> key to abort the installation at any time.





                             @pause
    @cls
@If (@OSMajor < 3)

      @Name requires that your operating system version be at least 3.00.
      Your are currently running version @OsMajor.@OsMinor.

	@Pause 	@Abort


@Else @if(@RAMTotal < 525*1024)
      Your system only has @RAMTotal bytes of conventional RAM installed.
      This is insufficient.
	@Pause
	@Abort

@EndIf

@EndDisplay

@if(!@Exists "@InDrive:\\pcmiler.reg" )

@GetString @USER
   PC*MILER installation is requesting the following information:

   1) Name of person @NAME will be registered to
   2) Name of company
   3) Serial number of @NAME
   @USER
@PROMPT = " Your name? "
@EndString


@GetString @COMP
   @COMP
@PROMPT = " Company Name? "
@EndString

@GetString @SERIAL
   The serial number for @Name can be found on the "A" diskette
   @SERIAL
@PROMPT = " Serial number? "
@EndString

@Write ("@InDrive:\\pcmiler.reg", "wt", "@USER   of   @COMP   Serial #:@SERIAL\n");
@EndIf

@GetOutDrive
      @CLS

           On which disk drive do you wish to install @NAME













      Use the [Up Arrow], [Down Arrow], [Pg Up], & [Pg Dn] keys to move
      the bar to the disk drive you wish to install to and then press the
      [Enter] key.
@EndOutDrive


/*@GetSubDir
      @CLS


      Now you need to specify the destination subdirectory.  The
      subdirectory is the location on your disk where the @NAME system
      @VERSION will be installed.

      @PROMPT = "Which subdirectory ([Enter] = @SubDir) ?"

@EndSubDir*/

@GetOption
   @Cls

   Select the type of installation that you wish to perform:







   @Option 1 = "Full PC*MILER installation"
   @Option 0 = "PC*MILER without RouteMap"
   @Option 2 = "Partial Installation to recover from previous installation error"








   Installing PC*MILER without RouteMap will save about 1.5 MB on your
   hard disk.

@EndOption

@if((@Exists "@OutDrive:\\@Subdir\\pcmiler.exe") && (1[=@Option || 0[=@Option))
@GetOption
    The installation program has detected a previous version of PC*MILER
    already installed in @OutDrive:@Subdir.  Do you wish to:



   @Option 5 = "Have the installation program remove the previous version of PC*MILER"
   @Option 6 = "Abort"


@EndOption
@Endif

@Display
@If (5 [= @Option)

     The installation program will now remove the previous version of PC*MILER
     by DELETING all files in the @Outdrive:@Subdir directory


     @Pause
     @System "del @Outdrive:@Subdir\\*.exe"
     @System "del @Outdrive:@Subdir\\pcm*.*"
     @System "del @Outdrive:@Subdir\\short*.*"
     @System "del @Outdrive:@Subdir\\serv*.*"
     @System "del @Outdrive:@Subdir\\geo*.*"
     @System "del @Outdrive:@Subdir\\*.chr"
     @System "del @Outdrive:@Subdir\\*.bgi"
     @System "del @Outdrive:@Subdir\\*.pdt"
     @System "del @Outdrive:@Subdir\\*.mnu"
     @System "del @Outdrive:@Subdir\\*.cfg"
     @System "del @Outdrive:@Subdir\\*.tab"
     @system "del @Outdrive:@Subdir\\grf\\*.dat"
     @system "del @Outdrive:@Subdir\\grf\\*.grf"


     @Cls

     The old version of PC*MILER has been removed.

     @Pause

@Endif
@if (6 [= @Option)
  @Abort
@endif
@EndDisplay


@If (2 [= @Option )
  @GetOption
     @Cls
       To recover from a previous installation diskette error, select
       the diskette which caused the installation failure.














       If the damaged diskette is not in the list, choose the
       diskette that would be installed before the damaged diskette.

       @Option 3 = "Disk A"
       @Option 4 = "Disk E"
       @Option 5 = "Disk G"
    @EndOption

@EndIf

@Display

@If (1 [= @Option)
      @if (@DiskFree @OutDrive < 16000000)
         The selective output disk drive is too small.  You need
         16.0 MB of free space to install.
         @Pause
         @Abort
      @EndIf
@EndIf
@If (0 [= @Option)

      @if (@DiskFree @OutDrive < 15500000)
         The selective output disk drive is too small.  You need
         15.5 MB of free space to install.
         @Pause
         @Abort
      @EndIf

@EndIf

@EndDisplay


@If ((1 [= @Option) || ( 3 [= @Option)|| (0 [=@Option))
@DefineDisk
	@LABEL = "PCMILER A"

@FILE  pcmiler.cfg  @Out *.*

@File  pcmiler.reg  @Out *.*

	@BeginLib PCMEXE.LIF
		@File    PCMILER.EXE
	@EndLib



	@BeginLib MAIN.LIF
		@File    PCMTIME.CFG
		@File    PCMILER.BAT  @OutAbs @OutDrive:\pcmiler.bat
		@File   GEOCODEN.STN
		@File    OPTIONS.EXE
		@File    PCMINST.LST
		@File   PCMILER2.SCR
		@File   PCMLOGO2.SCR
		@File    PCMHELP.MNU
		@File     PCMTXT.DAT
		@File   GEOCODEX.STA
		@File     PCMKEY.MNU
		@File     PCMRAM.EXE
		@File     PCMCITY.IN
		@File    PCMCITY.FMT
		@File      PCMZIP.IN
		@File    SYNONYM.TAB
		@File   PCMHELPB.MNU
		@File   EDITPRNT.EXE
		@File      SAMPLE.IN  @Out routes\*.*
		@File     SAMPLE2.IN  @Out routes\*.*
	@EndLib

	@BeginLib GEOCPT.LIF
		@File    GEOCODE.CPT
		@File    GEOCODE.RTN
	@EndLib



     @BeginLib GEOCZN.001
        @File        GEOCZN.001 @Out geocode.czn @Decompress
     @EndLib
     @BeginLib GEOCZN.002
        @File        GEOCZN.002 @AppendTo geocode.czn @Decompress
     @EndLib
     @BeginLib GEOCZN.003
        @File        GEOCZN.003 @AppendTo geocode.czn @Decompress
     @EndLib
@EndDisk

@DefineDisk
    @LABEL = "PCMILER B"
     @BeginLib GEOCZN.004
        @File        GEOCZN.004 @AppendTo geocode.czn @Decompress
     @EndLib



     @BeginLib SERV05.LIF
        @File    SERVALL.TRN
     @EndLib

     @BeginLib GEOALP.001
        @File        GEOALP.001 @Out geocode.alp @Decompress
     @EndLib

     @BeginLib GEOALP.002
        @File        GEOALP.002 @AppendTo geocode.alp @Decompress
     @EndLib

     @BeginLib GEOALP.003
        @File        GEOALP.003 @AppendTo geocode.alp @Decompress
     @EndLib

@EndDisk

@DefineDisk
    @LABEL = "PCMILER C"
     @BeginLib GEOALP.004
        @File        GEOALP.004 @AppendTo geocode.alp @Decompress
     @EndLib


     @BeginLib SERV04.LIF
        @File    SERVALL.TOT
        @File    SERVALL.BDR
     @EndLib



	@BeginLib SERV01.LIF
		@File    SERVALL.CST
		@File    SERVALL.JCT
		@File    SERVALL.BPT
		@File    SERVALL.IPT
		@File    SERVALL.NPT
		@File    SERVALL.LPT
		@File    SERVALL.EPT
		@File    SERVALL.ESM
		@File    SERVALL.EVL
		@File    SERVALL.ERT
	@EndLib



 @BeginLib SERVINX.001
  @File     SERVINX.001 @Out servall.inx @Decompress
 @EndLib

     @BeginLib SERVINX.002
        @File       SERVINX.002 @AppendTo servall.inx @Decompress
      @EndLib

@EndDisk


@DefineDisk
 @LABEL = "PCMILER D"

     @BeginLib SERVINX.003
        @File       SERVINX.003 @AppendTo servall.inx @Decompress
      @EndLib


	@BeginLib SHORT01.LIF
		@File   SHORTALL.CST
		@File   SHORTALL.JCT
		@File   SHORTALL.BDR
		@File   SHORTALL.BPT
		@File   SHORTALL.IPT
		@File   SHORTALL.NPT
		@File   SHORTALL.LPT
		@File   SHORTALL.EPT
		@File   SHORTALL.ESM
		@File   SHORTALL.EVL
		@File   SHORTALL.ERT
	@EndLib

     @BeginLib SERVLKS.001
        @File       SERVLKS.001 @Out servall.LKS @Decompress
      @EndLib


     @BeginLib SERVLKS.002
        @File       SERVLKS.002 @AppendTo servall.LKS @Decompress
      @EndLib


	@BeginLib SHORT06.LIF
		@File   SHORTALL.TRN
	@EndLib


	@BeginLib SERV07.LIF
		@File    SERVALL.DIR
	@EndLib



	@BeginLib SHORT04.LIF
		@File   SHORTALL.TOT
	@EndLib


@EndDisk

@EndIf  /* Endif A block of diskettes */

@If ((1[=@Option)||(0[=@Option)||(3[=@Option)||(4[=@Option))
@DefineDisk
 @LABEL = "PCMILER E"

     @BeginLib SHORTINX.001
        @File       SHORTINX.001 @Out shortall.inx @Decompress
      @EndLib


     @BeginLib SHORTINX.002
        @File       SHORTINX.002 @AppendTo shortall.inx @Decompress
      @EndLib

     @BeginLib SHORTINX.003
        @File       SHORTINX.003 @AppendTo SHORTALL.INX @Decompress
      @EndLib


	@BeginLib SHORT05.LIF
		@File   SHORTALL.NIX
	@EndLib



	@BeginLib SHORT03.LIF
		@File   SHORTALL.NDS
		@File   SHORTALL.DIR
	@EndLib


     @BeginLib GEOZIP.001
        @File       GEOZIP.001 @Out GEOCODE.ZIP @Decompress
      @EndLib
@EndDisk


@DefineDisk
 @LABEL = "PCMILER F"

     @BeginLib GEOZIP.002
        @File       GEOZIP.002 @AppendTo GEOCODE.ZIP @Decompress
      @EndLib



	@BeginLib SERV06.LIF
		@File    SERVALL.NDS
	@EndLib



     @BeginLib SHORTLKS.001
        @File       SHORTLKS.001 @Out shortall.LKS @Decompress
      @EndLib


     @BeginLib SHORTLKS.002
        @File       SHORTLKS.002 @AppendTo  shortall.LKS @Decompress
      @EndLib


     @BeginLib GEONID.001
        @File       GEONID.001 @Out GEOCODE.NID @Decompress
      @EndLib


     @BeginLib GEONID.002
        @File       GEONID.002 @AppendTo  GEOCODE.NID @Decompress
      @EndLib


	@BeginLib SERV03.LIF
		@File    SERVALL.NIX
	@EndLib


@EndDisk

@EndIf /* End E block of diskettes */

@If ((1[=@Option)||(3[=@Option)||(4[=@Option)||(5[=@Option))
@DefineDisk
 @LABEL = "PCMILER G"


	@BeginLib GDMAPEXE.LIF
		@File      GDMAP.EXE
		@File   MAPMENU1.MNU
  @File    PRINTER.CFG
	@EndLib


@FILE  CRDINX.GRF  @Out grf\*.*

	@BeginLib PRTDRV1.LIF
		@File         BD.PDT
	@EndLib

@FILE  INXFIL.GRF  @Out grf\*.*


	@BeginLib MLCFIL.LIF
		@File     MLCFIL.GRF   @Out grf\*.*
		@File     LKSPTR.GRF   @Out grf\*.*
		@File     CRDPTR.GRF   @Out grf\*.*
	@EndLib


	@BeginLib LKSFIL.LIF
		@File     LKSFIL.GRF   @Out grf\*.*
	@EndLib


	@BeginLib MAP1.LIF
		@File     MEXICO.DAT    @Out grf\*.*
		@File     CANMAP.DAT    @Out grf\*.*
	@EndLib

	@BeginLib PRTDRV2.LIF
		@File    SELECTP.EXE
	@EndLib

@FILE  CRDFIL.GRF  @Out grf\*.*

	@BeginLib DRIVERS.LIF
		@File       GOTH.CHR
		@File       LITT.CHR
		@File       SANS.CHR
		@File       TRIP.CHR
		@File     PC3270.BGI
		@File    IBM8514.BGI
		@File       HERC.BGI
		@File     EGAVGA.BGI
		@File        CGA.BGI
		@File        ATT.BGI
	@EndLib

@FILE  GEONODE.CRD @Out *.*

	@BeginLib MAP2.LIF
		@File   SMALLMAP.DAT  @Out grf\*.*
	@EndLib
@EndDisk

@EndIf  /* End G block of diskettes */

/*@SetAutoexec
  @AskOverwrite
  @Path = "@OutDrive:@Subdir"
@EndAutoexec*/


@SetConfig
   @AskOverwrite
   @Files = 20
@EndConfig



@Finish
        @CLS


        @Name Version @Version installation is now complete.




        Enter "PCMILER" from the @OutDrive: prompt to execute.




        @PAUSE
      @CLS
Please answer the following questions before running PC*MILER.


        @ChDrive @OutDrive
        @ChDir "@SubDir"
        @System  "OPTIONS"


@If (1[=@Option)
        @Execute "SELECTP"," "
@EndIf

@EndFinish
/* end-of-file */
