/*
 * INSTALL.DAT
 *
 * Project: Locator
 * Version: 2.4
 *
 */
@DefineProject
	@Name = "The Locator"
	@Version = "2.5"
    @OutDrive = C
    @Subdir   = "\\LOCATOR"
    @Requires @HardDisk
@EndProject

@DefineVars
    @Dir @DBFDir = "CAPCITY"
@EndVars

/*
 *                               * SCREEN 1 *
 */
@Display
    @LocalWindow(22,39)
    @Cls
				  WELCOME!
				 **********
    You are now installing version @Version of @Name,
    Industry's leading Database Software Program for Engineering and 
    Purchasing Professionals.

    Keys that you may use during the installation:

    *  Press the <ENTER> key to accept the highlighted option in response
       to any question.

    *  To move between menu items, use the <> arrow keys.

    *  If you make a mistake while typing, press the <BACKSPACE> key and
       then retype the answer.

    *  You may press the <ESC> key at any time to abort the installation. 

    @Pause
@EndDisplay


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

	This product requires DOS Version 3.3 or higher.

    @Pause
    @Abort
    @EndIf
@EndDisplay

/*
 *                               * SCREEN 2 *
 */
@GetOutDrive
    @Suppress A
    @Suppress B
    @LocalWindow(10,39)
    @Cls

    Use the <> keys to place the gray bar over the disk drive on which
    you wish to install @Name. After your selection
    press the <Enter> key.












    Note - If you have only one disk drive on you computer, the normal
	   designation will be "Drive C:".

@EndOutDrive

/*
 *                               * SCREEN 3 *
 */
@GetSubdir
    @LocalWindow(10,43)
    @Cls

    @Name is normally installed in the subdirectory
    @SubDir. To install it here, press <ENTER> now.











    If you would like to install @Name in another
    subdirectory, <BACKSPACE> to erase @SubDir and type your
    choice. Then press <ENTER>.
@EndSubdir

/*
 * Reset the attribute of any previous copy of LOCATOR.EXE which may have
 * been installed in the directory.
 */
@If (@Exists "@OutDrive:@SubDir\\LOCATOR.EXE")
   @ChMod("@OutDrive:@SubDir\\LOCATOR.EXE","r-")
   @Delete("@OutDrive:@SubDir\\locator.exe")
   @Delete("@OutDrive:@SubDir\\anntalk.exe")
   @Delete("@OutDrive:@SubDir\\@DBFDir\\*.*")
@EndIf

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

    The @OutDrive drive has only @DiskFree @OutDrive bytes. A full
    installation of this product requires approximately 5,000,000
    free bytes. After escaping from the installation, please delete
    any old or unused files from your hard drive and restart the
    installation program.
    @Pause
    @Abort
    @EndIf
@EndDisplay

/*
 * Note about installation on a server.
 */
@Display
    @If (@DriveRemote(@OutDrive))


    You have selected a network drive for installation. After
    installing the Industrial Locator, you may get an error message 
    about insufficient file handles.

    The Industrial Locator requires a minimum of 61 file handles.
    Your server MUST be configured with at LEAST 61 files for the
    Industrial Locator to run.


    @Pause
    @EndIf
@EndDisplay


/*
 *                               * SCREEN 4-A *
 */
@GetOption
    @LocalWindow(8,39)
    @Cls

    Would you like to install the Locator as a DOS application under
    Microsoft Windows? 






    @Option 110        = "No"
    @Option 109        = "Yes"

@EndOption




/*
 *                               * SCREEN 4-B *
 */
@Display
    @If (109 [= @Option)
    Attention Windows Users:

    The Locator will run as a DOS application under Windows 3.0 and higher.
    After installing the Locator from DOS, please read the file:
			 \WINDOWS\LOCWIN.TXT
    using the Windows Notepad for further instructions.

    @Pause


    @EndIf
@EndDisplay

/*
 *                               * SCREEN 5 *
 */

@DefineDisk
	@Label = "Disk #1"
	@BeginLib LOCATOR.001
		@File MANUPTR.DBF @Size 56941 @Out CAPCITY\MANUPTR.DBF
		@File MANUIDS.DBF @Size 8805 @Out CAPCITY\MANUIDS.DBF
		@File HEADPTR.DBF @Size 286391 @Out CAPCITY\HEADPTR.DBF
		@File IDS.DBF @Size 557475 @Out CAPCITY\IDS.DBF
		@File CALENDAR.DBF @Size 48562 @Out CAPCITY\CALENDAR.DBF
		@File CLNTHEAD.DBF @Size 87530 @Out CAPCITY\CLNTHEAD.DBF
		@File LOCATOR.VGA @Size 97001 @Out CAPCITY\LOCATOR.VGA
		@File PRODDESC.TXT @Size 206555 @Out CAPCITY\PRODDESC.TXT
		@File SUPPADDR.DBF @Size 1382083 @Out CAPCITY\SUPPADDR.DBF
		@File SUPPLINE.DBF @Size 157179 @Out CAPCITY\SUPPLINE.DBF
		@File LOCATOR.TXT @Size 1411 @Out CAPCITY\LOCATOR.TXT
		@File VERSION.DBF @Size 87 @Out CAPCITY\VERSION.DBF
		@File FEATPROD.DBF @Size 41239 @Out CAPCITY\FEATPROD.DBF
		@File PRODNOTE.USR @Size 98 @Out CAPCITY\PRODNOTE.USR
		@File LOCATOR.EGA @Size 36238 @Out CAPCITY\LOCATOR.EGA
		@File SUPPNOTE.USR @Size 98 @Out CAPCITY\SUPPNOTE.USR
		@File LOCATOR.EXE @Size 333853 @Out LOCATOR.EXE
		@File PROFILES.NEW @Size 2048 @Out PROFILES.NEW
		@File RETRY.EGA @Size 4412 @Out RETRY.EGA
		@File LOCWIN.TXT @Size 2369 @Out LOCWIN.TXT
		@File INET.TXT @Size 1412 @Out INET.TXT
		@File LOCATOR.ICO @Size 766 @Out LOCATOR.ICO
		@File RETRY.VGA @Size 6039 @Out RETRY.VGA
		@File ANNTALK.EXE @Size 298801 @Out ANNTALK.EXE
	@EndLib
@EndDisk


@DefineDisk
	@Label = "Disk #2"
	@BeginLib LOCATOR.002
		@File ANNTALK.EXE @AppendTo ANNTALK.EXE
		@File HELP.DBF @Size 11776 @Out HELP.DBF
		@File INET.EGA @Size 28371 @Out INET.EGA
		@File INET.VGA @Size 70702 @Out INET.VGA
	@EndLib
@EndDisk

/*
 *                               * SCREEN 6-A *
 */
@SetConfig
    @AskOverWrite
    @Files=61
@EndConfig

/*
 *                               * SCREEN 6-B *
 */
@Finish
    @ChDrive @OutDrive
    @ChDir "@SubDir"

/*
 * Copy back any user notations to the regional subdirectory.
 */
    @If (@Exists "@OutDrive:@SubDir\\prodnote.usr")
	@Copy("@OutDrive:@SubDir\\prodnote.usr","@OutDrive:@SubDir\\@DBFDir\\*.*"))
	@Copy("@OutDrive:@SubDir\\suppnote.usr","@OutDrive:@SubDir\\@DBFDir\\*.*"))
    @EndIf

/*
 * If the locator was installed on a network drive then change it to
 * readonly so that multiple users can access the program simultaneously.
 */
    @If (@DriveRemote(@OutDrive))
	@ChMod("@OutDrive:@SubDir\\LOCATOR.EXE","r+")
    @Endif
    @If (@Exists "@OutDrive:@SubDir\\@DBFDir\\HEADPTR.CMX")
	@Delete("@OutDrive:@SubDir\\@DBFDir\\*.CMX")
    @EndIf
    @If (@Exists "@OutDrive:@SubDir\\@DBFDir\\HEADPTR.CDX")
	@Delete("@OutDrive:@SubDir\\@DBFDir\\*.CDX")
    @EndIf
    @If (@Exists "@OutDrive:@SubDir\\HEADID.NTX")
	@Delete("@OutDrive:@SubDir\\*.NTX")
    @EndIf

/*
 * Copy the help file to the windows directory if it exists
 */
    @If (@Exists("@OutDrive:\\windows\\win.ini"))
	@Copy("@OutDrive:@SubDir\\locwin.txt","@OutDrive:\\windows\\locwin.txt")
    @Endif

/*
 * Copy the sponsor files if it exists
 */
    @If (@Exists("@InDrive:\\sponsor.vga"))
	@Copy("@InDrive:\\sponsor.vga","@OutDrive:@SubDir\\@DBFDir\\sponsor.vga")
    @EndIf
    @If (@Exists("@InDrive:\\sponsor.ega"))
	@Copy("@InDrive:\\sponsor.ega","@OutDrive:@SubDir\\@DBFDir\\sponsor.ega")
    @Endif



/*
 * Run the configuration program so they can setup the relevant Locator
 * data.
 */
 /*    @spawn("setup") */


      Thank you for installing The Industrial Locator!

      You can now access the Locator by doing the following:
    
      1. Reboot your machine.

      2. Change directory to the Locator subdirectory. For example,
	 if the Locator was installed in the \LOCATOR subdirectory,
	 the command would be:
			     CD \LOCATOR

      3. Type LOCATOR to start the Industrial Locator Program."
    
@Pause

@EndFinish
/* end-of-file */
