/*-------------------------------------------------------------------------*/
/*   INSTALL.SCR                                                           */
/*   Install script for 5.25/360K floppies for LapTop DataServer           */
/*   Modified                                                              */
/*-------------------------------------------------------------------------*/
/*   The following option ranges are used :-                               */
/*                                                                         */
/*  15  New system                                                         */
/*  16  upgrade                                                            */
/*  17  tutorial                                                           */
/*  18  remote data                                                        */
/*  19  pzazz                                                              */
/*                                                                         */
/*-------------------------------------------------------------------------*/
/*  Variables to be changed based on IRI product line.                     */
/*    @Name  = the short name of the product (ie. DataServer or SMS)       */ 
/*    @SubDir = default directory for installation files                   */
/*    @InstallDir = default directory for installation files               */
/*    @Application = the lone name of the product                          */
/*                    (ie. DataServer                                      */
/*-------------------------------------------------------------------------*/

@DefineProject                                                             
   @Name     = "EXPRESS/EIS"
   @Version  = "4.0"
   @OutDrive = C                              /* default output drive    */
   @Subdir   = "EIS"                                                
   @Requires @HardDisk
@EndProject

@DefineVars
    @Dir   @InstallDir  =  "EIS"               /* default install top dir */
    @QString @Action    =  "install"
    @QString @Application = "Express/EIS"
 @EndVars

@Display
  @Cls
                          Installation Program for
        Δ
        Ν         άάάάά
        ί         Ϋ   Ϋ
        ί         Ϋ                                 Ϋ   Ϋ
        Ϋ ΫΫάάάά άΫά άάάάάά άάάάά ΫΫάάάάά άάάάάάά άάΫάά ά άάάάάά ΫΫάάάά
        Ϋ Ϋ    Ϋ  Ϋ  Ϋ    Ϋ Ϋ   ί Ϋ  Ϋ  Ϋ Ϋ    Ϋ    Ϋ   Ϋ Ϋ    Ϋ Ϋ    Ϋ
        Ϋ Ϋ    Ϋ  Ϋ  Ϋ    Ϋ Ϋ     Ϋ  Ϋ  Ϋ Ϋ    Ϋ    Ϋ   Ϋ Ϋ    Ϋ Ϋ    Ϋ
        Ϋ Ϋ    Ϋ  Ϋ  ΫάάάάΫ Ϋ     Ϋ  Ϋ  Ϋ ΫάάάάΫά   Ϋ   Ϋ ΫάάάάΫ Ϋ    Ϋ

           άάάάά άάάάάά άάάάά άάάάάά ά    ά άάάάά άάάάάά άάάάάά άάάάά
           Ϋ   ί Ϋ    Ϋ Ϋ   ί Ϋ    Ϋ Ϋ    Ϋ Ϋ   ί Ϋ      Ϋ    Ϋ Ϋ   ί
           Ϋ     Ϋίίίίί ίίίίΫ Ϋ    Ϋ Ϋ    Ϋ Ϋ     Ϋ      Ϋίίίίί ίίίίΫ
           Ϋ     ΫάάάάΫ άάάάΫ ΫάάάάΫ ΫάάάάΫ Ϋ     Ϋάάάάά Ϋάάάάά άάάάΫ


                            Copyright 1991,1992
                            All Rights Reserved


  @Pause
@EndDisplay

/*-------------------------------------------------------------------------*/
/*  Check that the recipient PC has at least version 3.0 of PC-DOS         */
/*-------------------------------------------------------------------------*/

@If (@OSMajor < 3)
  @Display
    @Cls


                             ΙΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝ»
                             Ί               Ί
                             Ί    WARNING    Ί
                             Ί               Ί
                             ΘΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΌ



        You currently have version @OsMajor.@OsMinor of DOS installed.
        @Name requires a minimum DOS version of 3.0

        The Install procedure will terminate.


        ΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝ

    @PauseMsg = "Press any key to terminate"
    @StopRun
  @EndDisplay
@EndIf


/*-------------------------------------------------------------------------*/
/*         Tell the user some basic stuff about the install process        */
/*-------------------------------------------------------------------------*/

@Display
  @Cls

                 ΙΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝ»
                                                           Ί@cr                 Ί   Express/EIS  Installation
                 ΘΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΌ


    The installation program will ask you questions about how you
    wish to have @Name installed.
    
    No action will be taken until you complete your selections.


    At any time, you may press [Esc] to quit.





  @Pause
@EndDisplay

/*-------------------------------------------------------------------------*/
/*                 New system or upgrade of install                        */
/*-------------------------------------------------------------------------*/


@GetOption

                          Select the type of install.



 





                                         

                    Highlight your choice and press [Enter].





  @Option 15 = " New Express/EIS System"
  @Option 16 = " Upgrade existing Express/EIS System"
  
  @EndOption

  @GetOption 
    @CheckBox      
    @LocalWindow(8, 39)
                  Select the options you wish to install.
          The Express/EIS tutorial requires 3 megabytes of disk space.
     






                                         

                 Press [Spacebar] to mark or unmark an option.
                 Press [Enter] to continue.@Eol
  @Option 17 = "Express/EIS tutorial"
  @Option 18 = "Remote data access code"
  @Option 19 = "Pizazz printing utility"
  @Option 20 = "Windows PIF and icon files"
  @EndOption


/*-------------------------------------------------------------------------*/
/*            GET OUTPUT DRIVE and BASE INSTALL SUBDIRECTORY               */
/*-------------------------------------------------------------------------*/

@GetOutDrive
@cr             Select the disk drive for the @Name @Action.@cr
  @Suppress A                 /* don't allow drive A as a choice */
  @Suppress B                 /* don't allow drive B as a choice */













                    Highlight your choice and press [Enter].
@EndOutDrive

/*-------------------------------------------------------------------------*/
/*        Check for  disk space                              */
/*-------------------------------------------------------------------------*/
@If (16 [= @Option) 
  @If (@DiskFree @OutDrive < 9000000)
    @Display
    @Cls

        The @Name upgrade requires at least 9 megabytes of 
        disk space for installation.  INSTALL has detected that you 
        have @DiskFree @OutDrive bytes free.

        To provide more disk space, delete the existing EISCODE database 
        from @OutDrive, and restart the installation procedure.

        The Install procedure will terminate.

    @Pause
    @exit
    @EndDisplay
    @EndIf
@ElseIf (17 [= @Option) 
  @If (@DiskFree @OutDrive < 14000000)
    @Display
    @Cls

        @Name with the tutorial option requires at least 14 
        megabytes of disk space for the installation.  INSTALL has detected 
        that you have @DiskFree @OutDrive bytes free.

        The Install procedure will terminate.

    @Pause
    @exit
    @EndDisplay
    @EndIf
@ElseIf (@DiskFree @OutDrive < 11000000)
  @Display
    @Cls

        @Name requires at least 11 megabytes of disk space for the
        installation.  INSTALL has detected that you have @DiskFree @OutDrive
        bytes free.

        The Install procedure will terminate.

    @Pause
    @exit
  @EndDisplay
@EndIf

/*-------------------------------------------------------------------------*/
/*        Get the directory for the installing selections                  */
/*-------------------------------------------------------------------------*/

@GetSubDir @InstallDir
  @Cls

     Enter the name of the directory for the @Action.  If the 
     directory you specify does not exist, it will be created for you.

     Press [Enter] to use the default.

     Example:   @InstallDir

  @Prompt = "Ν"
@EndSubDir
@Let @SubDir = @InstallDir



@Display

      Files will be put in the following directory:


                 ΙΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝ»
                                                           Ί@cr                 Ί   @OutDrive:@InstallDir
                 ΘΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΌ


    The @InstallDir directory will contain the files necessary to run
    @Name.  Subdirctories will be created under @InstallDir to 
    improve the efficiency of @Name.

  @Pause
@EndDisplay


/*--------------------------------------------------------------------------*/
/*         PERFORM ACTUAL INSTALLATION INTO USERS DIRECTORIES               */
/*--------------------------------------------------------------------------*/

@GetOption
@LocalWindow(13, 39) @Eol

              ΙΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝ»
                                                                 Ί@Cr              Ί            Completing the @Action
              ΘΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΝΌ

                        Your selection is now complete.

           To begin transferring files to your disk, select CONTINUE.
           To leave the installation program now, select QUIT.





   

         
            If you select CONTINUE, please allow the install to finish 
            copying all the necessary files.

                     Highlight your choice and press [Enter].@Eol
    @Option 1001 = "CONTINUE"
    @Option 1000 = "QUIT"
@EndOption

@If (1000 [= @Option)
  @exit
  @EndIf

/* -------------------------------------------------------------------------*/
/*                Create EIS subdirectories                                 */
/*--------------------------------------------------------------------------*/

@If (@Exists "@OutDrive:@InstallDir" == 0)
     @MkDir ("@OutDrive:@InstallDir")
@EndIf 

@If (15 [= @Option)
    @If (@Exists "@OutDrive:@InstallDir\\ICONS" == 0)
        @MkDir ("@OutDrive:@InstallDir\\ICONS")
        @EndIf 
    @If (@Exists "@OutDrive:@InstallDir\\SCREENS" == 0)
        @MkDir ("@OutDrive:@InstallDir\\SCREENS")
        @EndIf 
    @If (@Exists "@OutDrive:@InstallDir\\MENUS" == 0)
        @MkDir ("@OutDrive:@InstallDir\\MENUS")
        @EndIf 
    @If (@Exists "@OutDrive:@InstallDir\\SNAPSHOT" == 0)
        @MkDir ("@OutDrive:@InstallDir\\SNAPSHOT")
        @EndIf 
    @If (@Exists "@OutDrive:@InstallDir\\TABLES" == 0)
        @MkDir ("@OutDrive:@InstallDir\\TABLES")
        @EndIf 
    @If (@Exists "@OutDrive:@InstallDir\\RODB" == 0)
        @MkDir ("@OutDrive:@InstallDir\\RODB")
        @EndIf 
    @If (@Exists "@OutDrive:@InstallDir\\VIEWS" == 0)
        @MkDir ("@OutDrive:@InstallDir\\VIEWS")
        @EndIf 
@EndIf

@If (17 [= @Option)
   @If (@Exists "@OutDrive:@InstallDir\\TUTOR" == 0) 
       @MkDir ("@OutDrive:@InstallDir\\TUTOR")
       @EndIf
   @If (@Exists "@OutDrive:@InstallDir\\TUTOR\\SCREENS" == 0) 
       @MkDir ("@OutDrive:@InstallDir\\TUTOR\\SCREENS")
       @EndIf
   @If (@Exists "@OutDrive:@InstallDir\\TUTOR\\MENUS" == 0) 
       @MkDir ("@OutDrive:@InstallDir\\TUTOR\\MENUS")
       @EndIf
   @If (@Exists "@OutDrive:@InstallDir\\TUTOR\\SNAPSHOT" == 0) 
       @MkDir ("@OutDrive:@InstallDir\\TUTOR\\SNAPSHOT")
       @EndIf
   @If (@Exists "@OutDrive:@InstallDir\\TUTOR\\TABLES" == 0) 
       @MkDir ("@OutDrive:@InstallDir\\TUTOR\\TABLES")
       @EndIf
   @If (@Exists "@OutDrive:@InstallDir\\TUTOR\\RODB" == 0) 
       @MkDir ("@OutDrive:@InstallDir\\TUTOR\\RODB")
       @EndIf
   @If (@Exists "@OutDrive:@InstallDir\\TUTOR\\VIEWS" == 0) 
       @MkDir ("@OutDrive:@InstallDir\\TUTOR\\VIEWS")
       @EndIf
@EndIf
/*--------------------------------------------------------------------------*/
/*                DEFINE INSTALLATION DISK CONTENTS                         */
/*--------------------------------------------------------------------------*/

@Display
 @Cls
@EndDisplay

@DefineDisk
  @Label = "Disk 1"
    @File EISCODE.001    @Out \@InstallDir\EISCODE.DB @Decompress
@EndDisk

@DefineDisk
  @Label = "Disk 2"
  @File EISCODE2.001    @Out \@InstallDir\EISCODE2.DB @Decompress 
@EndDisk

@DefineDisk
  @Label = "Disk 3"
  @File EISCODE2.002    @Appendto \@InstallDir\EISCODE2.DB @Decompress
  @File EISTBLS.001      @Out \@InstallDir\EISTBLS.DB @Option 15 @Decompress
  @File EISPRSNL.001     @Out \@InstallDir\EISPRSNL.DB @Option 15 @Decompress
  @File EISTEXT.001      @Out \@InstallDir\EISTEXT.DB  @Option 15 @Decompress
  @BeginLib ICONS.LIB
       @File     BUT3DS.PCX  @Out \@InstallDir\ICONS\*.* @Option 15
       @File       CALC.PCX  @Out \@InstallDir\ICONS\*.* @Option 15
       @File   CLIPBORD.PCX  @Out \@InstallDir\ICONS\*.* @Option 15
       @File    EISLOGO.PCX  @Out \@InstallDir\ICONS\*.* @Option 15
       @File   ENVELOPE.PCX  @Out \@InstallDir\ICONS\*.* @Option 15
       @File      FLASH.PCX  @Out \@InstallDir\ICONS\*.* @Option 15
       @File        JET.PCX  @Out \@InstallDir\ICONS\*.* @Option 15
       @File      LOGO1.PCX  @Out \@InstallDir\ICONS\*.* @Option 15
       @File      LOGO2.PCX  @Out \@InstallDir\ICONS\*.* @Option 15
       @File     LOGO32.PCX  @Out \@InstallDir\ICONS\*.* @Option 15
       @File       MAIL.PCX  @Out \@InstallDir\ICONS\*.* @Option 15 
       @File      MONEY.PCX  @Out \@InstallDir\ICONS\*.* @Option 15 
       @File   MONEYBUY.PCX  @Out \@InstallDir\ICONS\*.* @Option 15 
       @File       NEWS.PCX  @Out \@InstallDir\ICONS\*.* @Option 15 
       @File   OFFTOOLS.PCX  @Out \@InstallDir\ICONS\*.* @Option 15 
       @File   PERSONEL.PCX  @Out \@InstallDir\ICONS\*.* @Option 15 
       @File     RPTCAB.PCX  @Out \@InstallDir\ICONS\*.* @Option 15 
       @File   SHADEBOX.PCX  @Out \@InstallDir\ICONS\*.* @Option 15 
       @File       STOP.PCX  @Out \@InstallDir\ICONS\*.* @Option 15 
       @File   TVCAMERA.PCX  @Out \@InstallDir\ICONS\*.* @Option 15 
       @File    WEATHER.PCX  @Out \@InstallDir\ICONS\*.* @Option 15 
       @File      WORLD.PCX  @Out \@InstallDir\ICONS\*.* @Option 15 
   @EndLib
   @EndDisk

@DefineDisk
  @Label = "Disk 4"
   @BeginLib UPGRADE.LIB
       @File    EISUTIL.400  @Out \@InstallDir\*.* @Option 16
       @File   NEWCOLRS.400  @Out \@InstallDir\*.* @Option 16
       @File    EISAUTO.400  @Out \@InstallDir\*.* @Option 16
       @File    NEWTBLS.400  @Out \@InstallDir\*.* @Option 16
       @File    EISDIAL.400  @Out \@InstallDir\*.* @Option 16
       @File     LABELS.400  @Out \@InstallDir\*.* @Option 16
       @File    CHGTEXT.400  @Out \@InstallDir\*.* @Option 16
       @File   CHGPRSNL.400  @Out \@InstallDir\*.* @Option 16
       @File   FRMCOLID.400  @Out \@InstallDir\*.* @Option 16
       @File   COLORUSE.400  @Out \@InstallDir\*.* @Option 16
       @File    CHGTBLS.400  @Out \@InstallDir\*.* @Option 16
       @File   NEWPRSNL.400  @Out \@InstallDir\*.* @Option 16
       @File   COMMANDS.400  @Out \@InstallDir\*.* @Option 16
       @File    EISUPG4.BAT  @Out \@InstallDir\*.* @Option 16
       @File    EISUPG4.INF  @Out \@InstallDir\*.* @Option 16
       @File    EISUPG4.EIF  @Out \@InstallDir\*.* @Option 16
   @EndLib
   @File TUTTBLS.001       @Out \@InstallDir\TUTOR\TUTTBLS.DB @Option 17 @Decompress 
   @File TUTDATA.001       @Out \@InstallDir\TUTOR\TUTDATA.DB @Option 17 @Decompress   
   @File TUTPRSNL.001      @Out \@InstallDir\TUTOR\TUTPRSNL.DB @Option 17 @Decompress
   @File EISSTART.EIF     @Out \@InstallDir\TUTOR\EISSTART.EIF @Option 17
   @File EISTUTOR.BAT     @Out \@InstallDir\TUTOR\EISTUTOR.BAT @Option 17
   @File REMCODE.EIF      @Out \@InstallDir\REMCODE.EIF @Option 18 
   @File EISPZP.EXE       @Out \@InstallDir\EISPZP.EXE  @Option 19
   @File EIS.BAT          @Out \@InstallDir\EIS.BAT     @Option 15
   @File EIS4.PIF         @Out \@InstallDir\EIS4.PIF    @Option 20
   @File EIS.ICO          @Out \@InstallDir\EIS.ICO     @Option 20
   @EndDisk

@Finish
  @Cls
@ChDrive @OutDrive
@ChDir "@InstallDir"
@Eol
@Cls

   The installation of @Name is now complete.  
   The @OutDrive:@InstallDir 
   directory contains the files needed to run @NAME.


   If you have any questions about editing your files or customizing
   your installation of @NAME, refer to the Installation
   documentation.

          

@Pause
@EndFinish
