/*
 *
 *              INSTALL.DAT
 *              FaxWorks LAN 2.60A, Dated 1/13/93, JAK
 *
 */

@DefineProject
        @Name           ="FaxWorks LAN"
        @Version        ="2.60"
        @OutDrive       =F
        @SubDir         ="\\FaxWorks"
	@Requires	@HardDisk
@EndProject
@DefineVars
	@Dir	 	@InDir = "X"
	@Integer 	@Disks = 2
	@Integer 	@PCL   = 5
        @Integer        @ReqSpace = 2750000
        @Integer        @NetInstall =0
        @Integer        @Temp  = 0
@EndVars

@Display
	@Cls


                      FaxWorks LAN 2.60 Installation
                      ------------------------------

     This procedure will install @Name on your Network and set

     up the Administrator.  You must install FaxWorks LAN on a Network

     drive.  To install this version of FaxWorks you will need to give

     FULL ACCESS RIGHTS to all users who will be using this version

     of FaxWorks LAN.




               FaxWorks LAN 2.60, (C) SofNet Inc. 1990, 1991, 1992


	@Pause
@EndDisplay

@GetOutDrive @OutDrive
        @Suppress A
	@Suppress B
	@Cls
    Enter the drive on which to install @Name.
    This drive letter must be seen as the same drive letter by all
    Workstations that will be using FaxWorks LAN.

    Use the UP arrow and DOWN
    arrow to select a drive
    then press Enter.





@EndOutDrive

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




                       FaxWorks LAN 2.60 Installation
                       ------------------------------

       You don't have enough free space on the output drive you have
     selected.  Output disk drive only has @DiskFree @OutDrive bytes of free disk
   space.  @Name 2.60 requires @ReqSpace of free hard drive space.

          Create some room on your Network drive or choose another
      Network drive with enough space to install @Name 2.60.


                      FaxWorks installation terminated.


        @Pause
        @EndDisplay
        @Finish
                @System "Cls"
        @EndFinish
        @EndIf
@EndDisplay

@GetSubdir @SubDir
	@Cls
    Enter the name of the directory on drive @OutDrive which will
    contain the @Name software.


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

/*
 *	This is where we try to find out what they want to do.
 *      109=SendFax, 110=Class1, 121=Class2
 */

@GetOption
	@Cls
 Select the fax hardware found in your computer.

 Use the UP arrow and DOWN arrow to select the Fax Hardware, then press Enter.

        @Option 110="Adtech Companion"
        @Option 121="Adtech Externally Yours"
        @Option 121="Adtech PerfectDataFax"
	@Option 110="Adtech Smart Connection"
        @Option 121="ASKEY 9424AH (Send/Receive)"
	@Option 109="ASKEY 9624SH (SendFax)"
	@Option 109="AST Notebook (send-only)"
	@Option 110="ATI 2400 ETCI (send-only)"
        @Option 109="Best Data 4824P"
	@Option 109="Best Data 4824SF"
	@Option 101="CAS Interface Device"
	@Option 109="Cardinal MB 2248F (SendFax)"
	@Option 109="Cardinal MB 2250F 24/48"
	@Option 109="Cardinal MB 2296F 24/96"
        @Option 121="Cardinal MB 2296SR (Class 2)"
	@Option 110="Class 1 TR29/EIA-578"
        @Option 121="Class 2 TR29/EIA-2388"
	@Option 109="CompuAdd (TI2000/3000, send-only)"
        @Option 121="CompuCom Combo (internal)"
        @Option 121="Dallas fax"
	@Option 110="Datarace ActionFax"
	@Option 110="DellFax"
        @Option 121="Digitan HI IQ DS 92"
	@Option 109="Digitan HI IQ ZX1896 (send-only)"
	@Option 110="DoveFax"
        @Option 121="Easytel"
	@Option 110="GRiDFax"
        @Option 122="GVC FM 9696"
        @Option 102="Hayes/Quadram JT-FAX 9600"
        @Option 110="IBM L40SX"
	@Option 121="Image Comm. Twincom 96i"
	@Option 110="Image Comm. Twincom Commuter"
        @Option 121="Image Comm. 14,400"
        @Option 109="Incomm Midget Mgxfxe (Sendfax)"
	@Option 109="Incomm Midget Mgxfxi (Sendfax)"
        @Option 121="Incomm Vision PC 2442"
	@Option 101="Intel Connection CoProcessor (CCP)"
	@Option 101="Intel SatisFAXtion"
	@Option 109="Logicode 4824 (external, send-only)"
	@Option 109="Logicode 4824 (internal, send-only)"
	@Option 109="Logicode 9624 (internal, send-only)"
        @Option 121="Logicode Quicktel"
        @Option 121="Macronix MaxLite"
        @Option 121="MegaHertz 96/24 MNP5"
        @Option 121="MegaHertz P224FM"
        @Option 121="MegaHertz T324FM"
        @Option 122="MICC 9624SA"
        @Option 123="Multitech MT932EAF"
        @Option 123="Multitech MT1432 Series"
        @Option 123="Multitech MT224 Series"
        @Option 126="NEC UltraLite 286V"
        @Option 121="Nuvotel Internal 14400"
        @Option 121="Nuvotel Internal 9600"
        @Option 110="Nuvotel Internal 96424"
        @Option 121="Nuvotel Internal 96924"
        @Option 121="Nuvotel Pegasus 14400"
        @Option 121="Nuvotel Pegasus 9600"
        @Option 110="Nuvotel Pegasus 96424"
        @Option 121="Nuvotel Pegasus 96924"
        @Option 110="Nuvotel Voyager 96424PFX"
        @Option 126="Omnitel"
	@Option 121="Practical Periph. PM2400 FX96"
        @Option 121="Practical Periph. PM2400 FX96SA"
	@Option 109="Practical Periph. PM2400 NM3 (send-only)"
	@Option 109="Practical Periph. PM2400 S/FAX (send-only)"
	@Option 109="Practical Periph. PM2400 TB3 (send-only)"
        @Option 102="QuadRam/Hayes JT-FAX 9600"
	@Option 110="Rockwell 224ATF (Class 1)"
        @Option 126="Sierra SendFax Send/Receive"
        @Option 109="Sierra SendFax (send-only)"
	@Option 109="SmartSend SendFax"
        @Option 101="Spectrafax"
        @Option 126="Tandon NB/386SX"
        @Option 121="TechPower TP96/24 SR"
        @Option 121="TechPower TP96/24P SR"
	@Option 110="The Complete Modem Plus"
        @Option 126="TI Travelmates 2000/3000"
        @Option 121="Toshiba 2000 SXE/3100 (Megahertz)"
        @Option 126="Touchbase WorldPort 2496"
        @Option 121="Ucom Traveller"
	@Option 110="UDS Fax32"
	@Option 109="Unisys Laptop/Notebook (send-only)"
        @Option 126="US Robotics Worldport 2496"
        @Option 110="US Robotics Sportster with Fax"
        @Option 110="US Robotics Courier HST with Fax"
        @Option 122="Viva 9624i"
        @Option 121="Zoltrix Zofax 96/24 (Enhanced)"
        @Option 121="Zoltrix Zofax 96/24 (Standard)"
	@Option 109="Zoltrix ZoFax 1896 (send-only)"
	@Option 109="Zoltrix ZX1848 (send-only)"
	@Option 109="Zoltrix ZX1896 (send-only)"
	@Option 121="Zoom FC96/24"
	@Option 121="Zoom FX96/24"
	@Option 109="Zoom HC2400S 4800 (internal, send-only)"
	@Option 109="Zoom HC2400S 9600 (internal, send-only)"
	@Option 109="Zoom MX2400S 4800 (external, send-only)"
	@Option 109="Zoom MX2400S 9600 (external, send-only)"
@EndOption

@Display
        @If(101[=@Option)



                       FaxWorks LAN 2.60 Installation
                       -------------------------------

       You have selected an Intel Fax Board/CAS compatible interface.
       To run FaxWorks successfully on your machine you must install
       FaxWorks on the same drive that includes the CAS software.


       If you don't have the CAS software on the same drive, run the
       install again and select the drive where you have your CAS
       drivers.



        @Pause
        @EndIf
@EndDisplay

@If(101[=@Option)
	@DefineVars
		@QString	@SendT = "DCX"
		@QString	@RecvT = "DCX"
                @QString        @Class = "CAS"
        @EndVars
@ElseIf(102[=@Option)
	@DefineVars
		@QString	@SendT = "G3R"
		@QString	@RecvT = "G3R"
                @QString        @Class = "jt9600"
	@EndVars
@ElseIf(109[=@Option)
	@DefineVars
		@QString	@SendT = "G3R"
		@QString	@RecvT = "G3R"
                @QString        @Class = "sierraso"
	@EndVars
@ElseIf(110[=@Option)
	@DefineVars
		@QString	@SendT = "G3R"
		@QString	@RecvT = "G3R"
                @QString        @Class = "class1"
	@EndVars
@ElseIf(121[=@Option)
	@DefineVars
		@QString	@SendT = "G3R"
		@QString	@RecvT = "G3F"
                @QString        @Class = "class2"
	@EndVars
@ElseIf(122[=@Option)
	@DefineVars
		@QString	@SendT = "G3R"
                @QString        @RecvT = "G3F"
                @QString        @Class = "micc9624"
	@EndVars
@ElseIf(123[=@Option)
	@DefineVars
		@QString	@SendT = "G3R"
                @QString        @RecvT = "G3R"
                @QString        @Class = "multitec"
        @EndVars
@ElseIf(126[=@Option)
	@DefineVars
		@QString	@SendT = "G3R"
                @QString        @RecvT = "G3F"
                @QString        @Class = "sierra"
        @EndVars
@EndIf

@DefineVars
        @QString @UserName = "Administrator"
@EndVars

@GetString @UserName


        Enter the name or designation of the person who will be
        responsible for the administration of the fax server software.

        (e.g., Nancy, Juliane, PostMaster, FaxMan, Supervisor, etc.)

        The admininstrator will be responsible for adding new users
        and configuring their setups for FaxWorks.  The administrator
        will also be able to enable/disable user accounts.


        @Prompt = " < Enter the Name for Administrator > "
@EndString

@DefineDisk
 @If(@Disks ==1)
        @Label = "FaxWorks LAN, Version 2.60 Disk 2"
 @ElseIf(@Disks ==2)
        @Label = "FaxWorks LAN, Version 2.60 Disk 1"
 @EndIf

        @File DISK.ID      @Out receive\temp.tmp

        @If(101[=@Option)
                @File CASSTART.BAT              @Out FAXSTART.BAT
                @File CASDOWN.BAT               @Out FAXDOWN.BAT
                @File CAS.CFG                   @Out PROGRAMS\FAXWORKS.CFG


        @Else
                @File FAXSTART.BAT @Out *.*
                @File FAXDOWN.BAT  @Out *.*
                @File SCH.CFG      @Out PROGRAMS\FAXWORKS.CFG

        @EndIf

        @File INST1.INI    @Out license\*.*
        @File INST1.INI    @Out *.*
        @File INST2.INI    @Out *.*
        @File INST3.INI    @Out *.*
        @File Pkunzip.exe  @Out *.*
        @File FaxWorks.PHN @Out admin.usr\*.*
        @File FaxWorks.PHN @Out programs\*.*
        @File User.Lst     @Out programs\*.*
        @File FWCONFIG.ZIP @Out *.*
        @File FaxWorks.Ovl @Out Programs\FaxWorks.Ovl
        @File FD25_LF.ZIP  @Out convert\*.*
  @If(@PCL ==5)
	@File FD25_L1.ZIP @Out fonts\*.*
	@File FD25_L2.ZIP @Out fonts\*.*
	@File FD25_L3.ZIP @Out fonts\*.*
  @EndIf

	@EndDisk
	@DefineDisk
        @Label = "FaxWorks LAN, Version 2.60 Disk 2"

        @File  Install.Exe   @Out Winstall\\*.*
        @File  FaxWorks.X    @Out Winstall\\*.*
        @File  FAXITDB.DL    @Out Winstall\\*.*
        @File  FAXITUTL.DL   @Out Winstall\\*.*
        @File  FAXITSCH.X    @Out Winstall\\*.*
        @File  README.TXT    @Out Winstall\\*.*
        @File  READDDE.TXT   @Out Winstall\\*.*
        @File  FONTTEST.WR   @Out Winstall\\*.*
        @File  FAXNUMS.FD    @Out Winstall\\*.*
        @File  SHELL.DL      @Out Winstall\\*.*
        @File  DDEML.DL      @Out Winstall\\*.*
        @File  FAXITDRV.D    @Out Winstall\\*.*
        @File  SOFSCH.DL     @Out Winstall\\*.*
        @File  IMGCAS.DL     @Out Winstall\\*.*

        @If(101[=@Option)
        @File  CASDLL.DL     @Out Winstall\\*.*
        @File  IMGPCX.DL     @Out Winstall\\*.*
        @File  IMGTIF.DL     @Out Winstall\\*.*

        @ElseIf(110[=@Option)
        @File  IMGC1.DL      @Out Winstall\\*.*
        @File  IMGPCX.DL     @Out Winstall\\*.*
        @File  IMGTIF.DL     @Out Winstall\\*.*

        @ElseIf(121[=@Option)
        @File  IMGG3R.DL     @Out Winstall\\*.*
        @File  IMGG3N.DL     @Out Winstall\\*.*
        @File  IMGPCX.DL     @Out Winstall\\*.*
        @File  IMGTIF.DL             @Out Winstall\\*.*

        @ElseIf(122[=@Option)
        @File  IMGG3R.DL             @Out Winstall\\*.*
        @File  IMGG3N.DL             @Out Winstall\\*.*
        @File  IMGPCX.DL             @Out Winstall\\*.*
        @File  IMGTIF.DL             @Out Winstall\\*.*

        @ElseIf(123[=@Option)
        @File  IMGG3R.DL             @Out Winstall\\*.*
        @File  IMGPCX.DL             @Out Winstall\\*.*
        @File  IMGTIF.DL             @Out Winstall\\*.*

        @ElseIf(102[=@Option)
        @File  IMGJT.DL              @Out Winstall\\*.*
        @File  IMGPCX.DL             @Out Winstall\\*.*
        @File  IMGTIF.DL             @Out Winstall\\*.*

        @ElseIf(109[=@Option)
        @File  IMGSFR.DL             @Out Winstall\\*.*
        @File  IMGPCX.DL             @Out Winstall\\*.*
        @File  IMGTIF.DL             @Out Winstall\\*.*

        @ElseIf(126[=@Option)
        @File  IMGSFR.DL             @Out Winstall\\*.*
        @File  IMGSFN.DL             @Out Winstall\\*.*
        @File  IMGPCX.DL             @Out Winstall\\*.*
        @File  IMGTIF.DL             @Out Winstall\\*.*

        @EndIf

        @File SCHPRG.ZIP                        @Out *.*
        @File SCHEDULE.ZIP                      @Out *.*
        @File JT9600.SCH        @Option 102     @Out SCHEDULE\\SCH.EXE
        @File SIERRASO.SCH      @Option 109     @Out SCHEDULE\\SCH.EXE
        @File CLASS1.SCH        @Option 110     @Out SCHEDULE\\SCH.EXE
        @File CLASS2.SCH        @Option 121     @Out SCHEDULE\\SCH.EXE
        @File MICC9624.SCH      @Option 122     @Out SCHEDULE\\SCH.EXE
        @File CLASS2.SCH        @Option 123     @Out SCHEDULE\\SCH.EXE
        @File SIERRA.SCH        @Option 126     @Out SCHEDULE\\SCH.EXE

        @If(101[=@Option)
                @File CASMAN.EXE                @Out schedule\LOCKMAN.EXE
        @Else
                @File LOCKMAN.EXE               @Out schedule\*.*
                @File SCH.386                   @Out schedule\*.*
        @EndIf

        @File LOGOFILE.PCX                      @Out PROGRAMS\*.*
        @File INSTALL.OVL                       @Out FFINST.EXE

@EndDisk

@SetConfig
	@AskOverwrite
	@Buffers=30
	@Files=30
@EndConfig

@Finish
        @ChDrive @OutDrive
	@ChDir "@SubDir"
        @If(@Exists "receive\\temp.tmp")
                @System "del receive\\temp.tmp"
	@EndIf
	@If(@PCL ==5)
                @System "pkunzip fonts\\fd25_l1.zip fonts "
                @System "del fonts\\fd25_l1.zip"
                @System "pkunzip fonts\\fd25_l2.zip fonts "
		@System "del fonts\\fd25_l2.zip"
                @System "pkunzip fonts\\fd25_l3.zip fonts "
		@System "del fonts\\fd25_l3.zip"
                @System "echo -F@OutDrive:@SubDir\\FONTS> CONVERT\\CDCFAX.CFG"
                @System "echo -T@OutDrive:@SubDir>> CONVERT\\CDCFAX.CFG"
                @System "echo -IPCL>> CONVERT\\CDCFAX.CFG"
	@Else
                @System "echo -F@OutDrive:@SubDir\\CONVERT> CONVERT\\CDCFAX.CFG"
                @System "echo -IPCL>> CONVERT\\CDCFAX.CFG"
	@EndIf
        @System "pkunzip convert\\fd25_lf.zip convert "
        @System "del convert\\fd25_lf.zip"
        @System "pkunzip fwconfig.zip "
        @System "pkunzip schedule.zip"
        @System "pkunzip SCHPRG.ZIP PROGRAMS "
        @System "del schprg.zip"
        @System "del *.ZIP"
        @System "echo FaxWorks LAN = @Class, FaxWorks Lan >>inst1.ini"
        @System "echo BasePath=@OutDrive:@SubDir >> inst2.ini"
        @System "copy /b inst1.ini+inst2.ini+inst3.ini winstall\\install.ini"
        @System "del inst2.ini"
        @System "del inst1.ini"
        @System "del inst3.ini"
        @System "del license\\inst1.ini"
        @System "echo 000080U021 @UserName > programs\\temp"
        @System "ffinst programs\\user.lst programs\\temp"
        @System "del programs\\temp"
        @System "del ffinst.exe"
        @System "del pkunzip.exe"

        @System "echo SNDT*@SendT                                                     *>> Programs\\FaxWorks.CFG"
        @System "echo RCVT*@RecvT                                                     *>> Programs\\FaxWorks.CFG"

        @If(101[=@Option)
                @System "echo AEOL*0                                                       *>> PROGRAMS\\FAXWORKS.CFG"
        @ElseIf(102[=@Option)
                @System "echo AEOL*0                                                       *>> PROGRAMS\\FAXWORKS.CFG"
        @ElseIf(109[=@Option)
                @System "echo AEOL*1                                                       *>> PROGRAMS\\FAXWORKS.CFG"
        @ElseIf(110[=@Option)
                @System "echo AEOL*1                                                       *>> PROGRAMS\\FAXWORKS.CFG"
        @ElseIf(121[=@Option)
                @System "echo AEOL*0                                                       *>> PROGRAMS\\FAXWORKS.CFG"
        @ElseIf(122[=@Option)
                @System "echo AEOL*0                                                       *>> PROGRAMS\\FAXWORKS.CFG"
        @ElseIf(123[=@Option)
                @System "echo AEOL*0                                                       *>> PROGRAMS\\FAXWORKS.CFG"
        @ElseIf(126[=@Option)
                @System "echo AEOL*1                                                       *>> PROGRAMS\\FAXWORKS.CFG"
        @Endif

        @If(101[=@Option)
                @System "echo -ODCX>> CONVERT\\CDCFAX.CFG"
        @Else
                @System "echo IMGO*IMGOUT.DLL                                              *>> PROGRAMS\\FAXWORKS.CFG"
                @System "echo IMGI*IMGIN.DLL                                               *>> PROGRAMS\\FAXWORKS.CFG"
                @System "echo -OGP3>> CONVERT\\CDCFAX.CFG"
        @EndIf
        @If(@PCL ==4)
                @System "copy CONVERT\\CDCFAX.CFG CONVERT\\CDCPCL4.CFG"
                @System "del  CONVERT\\CDCFAX.CFG"
	@EndIf

        @Cls


                    FaxWorks LAN, Version 2.60 Installation
                    ---------------------------------------

   Now Install is going to run FWCONFIG.EXE.  This program will help the

   administrator configure Fax Hardware setup.  You MUST configure your

   Fax Hardware setup and SAVE your configuration to run FaxWorks.

   FWCONFIG also allows Administrator to ADD users, DELETE users, and CHANGE

   user configurations.  Remember, only the administrator can perform user

   management functions, and these functions can only be carried out using

   FWCONFIG.  To make any other changes after the installation is completed,

   you can run FWCONFIG from your FAXWORKS directory.

        EXAMPLE:  @Outdrive:@Subdir\FWCONFIG @UserName

@System "pause"

        @System "FWconfig @UserName"
	@Cls


                     FaxWorks LAN, Version 2.60 Installation
                     ---------------------------------------

The installation of @Name has completed successfully.  To load

the Fax Server Software type 'FaxStart' from the FaxWorks directory:

        @OutDrive:@SubDir>FaxStart

To bring the Fax Server down, type 'FaxDown' from your FaxWorks directory:

        @OutDrive:@SubDir>FaxDown

To run FaxWorks in Non-Resident mode on a Workstation, type 'FaxWorks'
followed by User Name:

        @OutDrive:@SubDir>FaxWorks <User Name>

OR type 'FwRes' to run in Resident mode:

        @OutDrive:@SubDir>FwRes <User Name>

        @Pause
@EndFinish
/* End of INSTALL.DAT */
