/*             ABRA CADABRA SOFTWARE, INC.              */
/*   ABRAPAY INSTALLATION PROGRAM FOR EVALUATION SYSTEM 3 INCH    */

/* define project parameters   */

@DefineProject
	@Name = "AbraPay"
	@Version = "2"
	@OutDrive = C
	@Subdir = "\\AbraDemo"
@EndProject

/*  message to users        */

@Display
	@cls
     This program will install the @Name Evaluation System on
  your computer system.  It will also verify the configuration of your
  computer and adjust as needed.  If this is not possible, this program
  will tell you what must do to your system in order to run @Name.









                                 AbraPay
                    Payroll and Labor Distribution System
               Copyright (c) 1990-94 Abra Cadabra Software, Inc.
          All Rights Reserved.  Unauthorized Duplication Prohibited.
                             (813) 579-1111    
	@pause

@EndDisplay

/*  Get drive for installation    */

@GetOutDrive
 @Suppress A  /* will not display on list  */
 @Suppress B  /* will not display on list  */
	@cls
	On which drive do you wish to install @Name?















   Use the ARROW KEYS to move the highlight bar to the disk drive
   of your choice and then press <Enter>.

@EndOutDrive


/* Set subdirectory for installation    */

@GetSubDir
	@cls
 Please specify the directory on drive @Outdrive where the @Name
 system should reside.  If you are not sure, press <Enter> using
 the default AbraDemo directory.
	@prompt = " Which Subdirectory [AbraDemo] = @SubDir"
@EndSubDir


@If (@Exists "@OutDrive:@Subdir\\PAY.EXE")
   @GetOption
   @Cls
   An AbraPay system is in @OutDrive:@Subdir.  Use the ARROW KEYS to 
   move the highlight bar to the selection of your choice and press <Enter>.

   @Option 5 = "Stop Installation"
   @Option 6 = "Overwrite current AbraPay system"

   @EndOption

  @If (5 [=@Option)
     @Display
     @Cls
   
     Installation stopped.


     @Abort

     @EndDisplay
   @Endif
@Endif

@Setconfig
@Askoverwrite
     @files=41
     @buffers=8
@EndConfig

@SetAutoexec
@Askoverwrite
      @path = "@Outdrive:@Subdir"
@EndAutoExec


@Display
 @cls
 

 Your system configuration:

              DOS Version: @OSMajor.@Osminor
 RAM Installed (in bytes): @Ramtotal
             Input Drive : @Indrive
            Output Drive : @Outdrive with @DiskFree @Outdrive free
      You are running on an 80@CPU CPU











 @pause

 @cls

 @If (((@OSMajor * 100) + @OSMinor) < 330)

       @Name requires that your operating system version be at least 3.30.
       You are currently running version @OSMajor.@OSMinor
       @Pause
 @ElseIf (@RAMTotal < (640 * 1000))

       @Name requires that your conventional RAM be at least 640K.
       You currently have @RamTotal installed.
       @Pause
 @ElseIf (@DiskFree @OutDrive < 2000000))
       This program requires that your @Outdrive drive have at least
       2,000,000 bytes available.
       @pause
 @Else 
       Your computer system has been evaluated and appears to be suitable
       for the program installation of the @Name Evaluation System.
 @Endif














 @pause


 @Enddisplay


@DefineDisk            
@Label = "DISK 1"

   @BeginLib ZSI.LIB
       @If (@Exists "@Outdrive:\\@Subdir\\ZSI\\HSETUP.DBF") 
           @File pr*.* @out zsi\pr*.*
       @Else
           @File *.* @out zsi\\*.*
           /* entire you company is written  
            if there is no abra 2000 you co.*/
       @Endif
   @EndLib

   @If (@Exists "@Outdrive:\\@Subdir\\complist.dbf")
     @Else @file complist.dbf @out complist.dbf
   @Endif

   @If (@Exists "@Outdrive:\\@Subdir\\complist.ntx")
     @Else @file complist.ntx @out complist.ntx
   @Endif
   				
   @If (@Exists "@Outdrive:\\@Subdir\\parms.dbf")
      @Else @file parms.dbf @out parms.dbf
   @Endif

   @file payovl.001 @out payovl.ovl @decompress

   @file payovl.002 @appendto payovl.ovl @decompress
   @file payovl.003 @appendto payovl.ovl @decompress


   @BeginLib pay2.lib
   @file *.* @out *.*
   @EndLib

   @BeginLib files2.lib
   @file *.* @out files\\*.*
   @EndLib

@EndDisk

@DefineDisk            
@Label = "DISK 2"

   @BeginLib fontfile.lib
      @file *.* @out laser\\*.*
   @EndLib

@EndDisk



/* finish install */

@Finish
  @cls
  AbraPay installation is nearly complete.  If you modified your
  config.sys and autoexec.bat file you will need to reboot, then
  type in 'AbraPay' <press enter> at any DOS prompt to begin. 

  If you did not modify your config.sys and autoexec.bat file you
  may type in 'AbraPay' <press enter> now to begin.

  AbraPay evaluation system has all the capabilities the base
  system  does except the ability to print checks, set up a company,
  and change tax tables.
     @ChDrive @Outdrive
     @ChDir "@SubDir"
     @System "echo echo off >abrapay.bat"
     @System "echo @OutDrive: >>abrapay.bat"
     @System "echo CD@Subdir >>abrapay.bat"
     @System "echo pay >>abrapay.bat"
     @System "echo echo off >paydemo.bat"
     @System "echo @OutDrive: >>paydemo.bat"
     @System "echo CD@Subdir >>paydemo.bat"
     @System "echo pay >>paydemo.bat"
     @execute "PAY","DEMO2854YARNCOURT22042"

@EndFinish
/* end of file  */

