/*
 *      FILE:
 *      INSTDJ.420
 */

@DefineProject
	@Name           = "Data Junction"
	@Version        = "4.2"
	@Subdir         = "\\DJ42"
	@OutDrive       = C
	@Group          = "A"
@EndProject
@DefineVars
	@Qstring @UserName = ""
	@Qstring @SerialNo = ""
@EndVars

@Display
	@Cls

	Welcome to @Name!       

	This program will install @Name Version @Version on your
	computer system and verify the integrity of the distribution disk(s).
	You may press the [Esc] key at any time to abort the installation.

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


@Pause
@EndDisplay



@If ((@NetBIOS != 0) && (@Exists "@InDrive:STD.DID" ||
			 @Exists "@InDrive:PROF.DID" ||
			 @Exists "@InDrive:ADV.DID" ||
			 @Exists "@InDrive:ARC.DID") )

  @Display  
  @Cls

			 ***  WARNING!  ***

    You purchased the single-user license of Data Junction - which must
    be installed on a local hard disk of a single machine.  Make sure
    you do not violate your software license by installing Data Junction
    on a network.

  @Pause
  @EndDisplay

@Else
@EndIf



@GetOption
	@Cls
	Choose the type of installation to be performed.  The blinking
	item is the current selection.





	@Option 100 = "Full Installation"
	@Option 101 = "Partial Installation"

	If you are installing for the first time, you must select 
	"Full Installation."

	If a full installation has occurred previously, you may choose
	"Partial Installation."

	After making selection, press RETURN to continue or ESC to abort.
@EndOption

@If (101 [= @Option)
  @GetOption
	@Cls
	






	@Option 102 = "Install convert options only"
	@Option 103 = "Install *.L?B and STYLES.DJX files only"

	If you choose the 1st option, you will be able to select and 
	install one or more convert .EXE files.

	If you choose the 2nd option, the master .L?B and .DJX files
	will be copied over your existing .L?B and .DJX files.
  @EndOption
@EndIf  

@If (103 [! @Option)

  @Display
	@Cls
	@Name works with a great many different file types.  In the 
	next screen you will be asked to identify the different types 
	of files that you might be converting with @Name.

	You will be able to select all file types or any combination of 
	file types.  If you choose to select a combination of file types,
	you can always re-install later to select other file types.  

  @If (100 [= @Option)
     @If (@Exists "@InDrive:STD.DID")
	If you select all of the convert options for the Standard
	Edition, 2.8 megabytes of disk space will be used by the install.
     @ElseIf (@Exists "@InDrive:PROF.DID")
	If you select all of the convert options for the Professional
	Edition, 3.9 megabytes of disk space will be used by the install.
     @ElseIf (@Exists "@InDrive:ADV.DID" || @Exists "@InDrive:LAN.DID"
					 || @Exists "@InDrive:ARC.DID")
	If you select all of the convert options for the Advanced
	Edition, 6.8 megabytes of disk space will be used by the install.
     @EndIf
  @EndIf

	@Pause
  @EndDisplay
@GetOption
  @If (@Exists "@InDrive:ADV.DID" || @Exists "@InDrive:LAN.DID"
				  || @Exists "@InDrive:ARC.DID")
  @Option 11 = "ASCII             " @CheckBox
  @Option 47 = "ACCPAC+ Acct      " @CheckBox
  @Option 51 = "ACT!              " @CheckBox
  @Option 61 = "Acucobol          " @CheckBox
  @Option 66 = "ArcList (Group 1) " @CheckBox
  @Option 12 = "askSam            " @CheckBox
  @Option 25 = "Binary/EBCDIC     " @CheckBox
  @Option 20 = "Btrieve/Xtrieve   " @CheckBox
  @Option 21 = "Clarion           " @CheckBox
  @Option 41 = "C-ISAM            " @CheckBox
  @Option 27 = "c-tree            " @CheckBox
  @Option 57 = "Database Gateway  " @CheckBox
  @Option 56 = "DataBoss          " @CheckBox
  @Option 15 = "dBASE             " @CheckBox
  @Option 49 = "db-Vista          " @CheckBox
  @Option 29 = "DataEase          " @CheckBox
  @Option 30 = "DataFlex          " @CheckBox
  @Option 65 = "DataPerfect       " @CheckBox
  @Option 13 = "DIF               " @CheckBox
  @Option 14 = "Enable            " @CheckBox
  @Option 28 = "Excel             " @CheckBox
  @Option 62 = "GoldMine          " @CheckBox
  @Option 54 = "IBM IXF           " @CheckBox
  @Option 58 = "IntelFax PhoneBook" @CheckBox
  @Option 42 = "Informix          " @CheckBox
  @Option 16 = "Lotus 1-2-3       " @CheckBox
  @Option 11 = "Mathcad           " @CheckBox
  @Option 48 = "Maximizer         " @CheckBox
  @Option 44 = "MicroFocus Cobol  " @CheckBox
  @Option 59 = "Microsoft Works DB" @CheckBox
  @Option 40 = "Oracle            " @CheckBox
  @Option 22 = "Paradox           " @CheckBox
  @Option 17 = "Q&A               " @CheckBox
  @Option 49 = "Raima Data Manager" @CheckBox
  @Option 24 = "R:BASE            " @CheckBox
  @Option 52 = "S-Plus            " @CheckBox
  @Option 50 = "SAS               " @CheckBox
  @Option 53 = "SPSS              " @CheckBox
  @Option 57 = "SQL Server        " @CheckBox
  @Option 60 = "SQLBase           " @CheckBox
  @Option 46 = "Solomon Acct      " @CheckBox
  @Option 64 = "Statistica        " @CheckBox
  @Option 23 = "SuperCalc4        " @CheckBox
  @Option 26 = "SYLK              " @CheckBox
  @Option 55 = "Systat            " @CheckBox
  @Option 45 = "WordPerfect       " @CheckBox
  @Option 43 = "XdB               " @CheckBox
  @Option 63 = "ZIM               " @CheckBox
  @ElseIf (@Exists "@InDrive:PROF.DID")
  @Option 11 = "ASCII             " @CheckBox
  @Option 51 = "ACT!              " @CheckBox
  @Option 12 = "askSam            " @CheckBox
  @Option 25 = "Binary/EBCDIC     " @CheckBox
  @Option 20 = "Btrieve           " @CheckBox
  @Option 21 = "Clarion           " @CheckBox
  @Option 27 = "c-tree            " @CheckBox
  @Option 56 = "DataBoss          " @CheckBox
  @Option 15 = "dBASE             " @CheckBox
  @Option 29 = "DataEase          " @CheckBox
  @Option 30 = "DataFlex          " @CheckBox
  @Option 65 = "DataPerfect       " @CheckBox
  @Option 13 = "DIF               " @CheckBox
  @Option 14 = "Enable            " @CheckBox
  @Option 28 = "Excel             " @CheckBox
  @Option 62 = "GoldMine          " @CheckBox
  @Option 58 = "IntelFax PhoneBook" @CheckBox
  @Option 16 = "Lotus 1-2-3       " @CheckBox
  @Option 11 = "Mathcad           " @CheckBox
  @Option 48 = "Maximizer         " @CheckBox
  @Option 59 = "Microsoft Works DB" @CheckBox
  @Option 22 = "Paradox           " @CheckBox
  @Option 17 = "Q&A               " @CheckBox
  @Option 24 = "R:BASE            " @CheckBox
  @Option 23 = "SuperCalc4        " @CheckBox
  @Option 26 = "SYLK              " @CheckBox
  @Option 45 = "WordPerfect       " @CheckBox
  @ElseIf (@Exists "@InDrive:STD.DID")
  @Option 11 = "ASCII             " @CheckBox
  @Option 12 = "askSam            " @CheckBox
  @Option 15 = "dBASE             " @CheckBox
  @Option 13 = "DIF               " @CheckBox
  @Option 14 = "Enable            " @CheckBox
  @Option 58 = "IntelFax PhoneBook" @CheckBox
  @Option 16 = "Lotus 1-2-3       " @CheckBox
  @Option 11 = "Mathcad           " @CheckBox
  @Option 59 = "Microsoft Works DB" @CheckBox
  @Option 17 = "Q&A               " @CheckBox
  @Option 45 = "WordPerfect       " @CheckBox
  @EndIf
		  Use up/down arrow to move up or down through list.
		 List may be longer than the number of entries shown.
















		       Use space bar to toggle between Yes/No.
		Press Y to select all; press N to clear all selections.
			     Press RETURN when finished.
@EndOption
@EndIf









/* This is for 5.25 inch 360k and 3.5 inch 720k installs */

/*  @If ((@DiskSize @Indrive < 750000))    */
/*     @DefineDisk                                                                                                                                                                                                      */
/*      @Label = "DISK 1"                                                                                                                                                                               */



  /* End of 360k & 720k diskette install */










/* This is for 5.25" 1.2mb and 3.5" 1.44mb high density installs */


@If ((@DiskSize @Indrive < 1500000) && (@DiskSize @Indrive > 1200000))
    @DefineDisk
	@Label = "DISK 1"
    @BeginLib README.RED
		@File     README.TXT
    @EndLib
      @If (102 [! @Option)
	   @BeginLib DJLIB1.RED
		@File     STYLES.DJX @Out djtools\*.* 
		@File   DBASEI00.LTB @Out djtools\dbase\*.* 
		@File   DBASEI01.LTB @Out djtools\dbase\*.* 
		@File   FOXBAS00.LTB @Out djtools\foxbase\*.* 
		@File   DBASEI00.LFB @Out djtools\dbase\*.* 
		@File   DBASEI01.LFB @Out djtools\dbase\*.* 
		@File   FOXBAS00.LFB @Out djtools\foxbase\*.* 
		@File   FOXPRO00.LTB @Out djtools\foxbase\*.* 
		@File   FOXPRO00.LFB @Out djtools\foxbase\*.* 
		@File   CLIPPE00.LTB @Out djtools\clipper\*.*
		@File   CLIPPE00.LFB @Out djtools\clipper\*.*
		@File   REFLEX00.LFB @Out djtools\reflex\*.*
		@File   MICROS00.LTB @Out djtools\mword\*.* 
		@File   MACINT00.LTB @Out djtools\dlmascii\*.* 
		@File   WORDPE00.LTB @Out djtools\wordperf\*.* 
		@File   WORDPE01.LTB @Out djtools\wordperf\*.* 
		@File   WORDPE02.LTB @Out djtools\wordperf\*.* 
		@File   WORDPE03.LTB @Out djtools\wordperf\*.*
		@File   MICROS00.LFB @Out djtools\mword\*.* 
		@File   MACINT00.LFB @Out djtools\dlmascii\*.* 
		@File   WORDPE00.LFB @Out djtools\wordperf\*.* 
		@File   WORDPE01.LFB @Out djtools\wordperf\*.* 
		@File   WORDPE02.LFB @Out djtools\wordperf\*.* 
		@File   WORDPE03.LFB @Out djtools\wordperf\*.* 
		@File   ACT11P00.LTB @Out djtools\dlmascii\*.*
		@File   PERSON00.LTB @Out djtools\diary\*.*
		@File   PERSON00.LFB @Out djtools\diary\*.*
		@File   ENABLE00.LTB @Out djtools\enable\*.*
		@File   ENABLE00.LFB @Out djtools\enable\*.*
		@File   MATHCA00.LTB @Out djtools\mathcad\*.*   
		@File   MATHCA00.LFB @Out djtools\mathcad\*.*
		   @EndLib

	 @If (@Exists "@InDrive:PROF.DID" || @Exists "@InDrive:ADV.DID" || @Exists "@InDrive:LAN.DID")

	   @BeginLib DJLIB2.RED            
		     @File   ACT20C00.LTB @Out djtools\act2\*.*
		     @File   ACT20A00.LTB @Out djtools\act2\*.*
		     @File   ACT20H00.LTB @Out djtools\act2\*.*
		     @File   ACT20N00.LTB @Out djtools\act2\*.*
		     @File   ACT20N01.LTB @Out djtools\act2\*.*
       @File   ACT20N02.LTB @Out djtools\act2\*.*
       @File   ACT20I00.LFB @Out djtools\act2\*.*
       @File   ACT20I00.LTB @Out djtools\act2\*.*
       @File   ACT11P00.LFB @Out djtools\ctree\*.*
       @File   ACTWIN00.LTB @Out djtools\actwin\*.*
	   @EndLib      

    @BeginLib DJLIB3.RED
       @File   DACGLA00.LFB @Out djtools\dac4\*.*
       @File   DACAPV00.LFB @Out djtools\dac4\*.*
       @File   DACAPC00.LFB @Out djtools\dac4\*.*
       @File   DACARC00.LFB @Out djtools\dac4\*.*
       @File   DACINP00.LFB @Out djtools\dac4\*.*
       @File   DACGLA00.LTB @Out djtools\dac4\*.*
       @File   DACAPV00.LTB @Out djtools\dac4\*.*
       @File   DACARC00.LTB @Out djtools\dac4\*.*
       @File   DACINP00.LTB @Out djtools\dac4\*.*
       @File   DACAPC01.LFB @Out djtools\dac4\*.*
       @File   DACGLA01.LFB @Out djtools\dac4\*.*
       @File   DACGLA01.LTB @Out djtools\dac4\*.*
       @File   DACAPV02.LFB @Out djtools\dac4\*.*
       @File   DACARC02.LFB @Out djtools\dac4\*.*
       @File   DACAPV02.LTB @Out djtools\dac4\*.*
       @File   DACARC02.LTB @Out djtools\dac4\*.*
       @File   PLATIN00.LTB @Out djtools\platinum\*.*
    @EndLib

    @BeginLib DJLIB4.RED
       @File  PEACHA00.LFB @Out djtools\peach\*.*
       @File  PEACHG00.LFB @Out djtools\peach\*.*
       @File  PEACHA01.LFB @Out djtools\peach\*.*
       @File  PEACHP00.LFB @Out djtools\peach\*.*
       @File  PEACHI00.LFB @Out djtools\peach\*.*
       @File  PEACHA00.LTB @Out djtools\peach\*.*
       @File  PEACHG00.LTB @Out djtools\peach\*.*
       @File  PEACHA01.LTB @Out djtools\peach\*.*
       @File  PEACHP00.LTB @Out djtools\peach\*.*
       @File  PEACHI00.LTB @Out djtools\peach\*.*
    @EndLib


	 @EndIf

      @EndIf
      @If (102 [! @Option && 103 [! @Option)
	   @BeginLib DJRTL.RED                     /* S,P,A */
		     @File   DJ4CNNCT.RTL            
		     @File     DJ4SYS.RTL            
		     @File   RTLINKST.COM            
	   @EndLib
    @BeginLib DJRTL2.RED
       @File    DJ4TCON.RTL
    @EndLib
		@File   CONNLIST.DJX @Out djtools\*.*   /* S,P,A */
      @EndIf

      @If (102 [! @Option && 103 [! @Option)
	   @BeginLib MAIN.RED
		     @File     EZCNVT.BAT  /* S,P,A */
		     @File         FE.EXE
		     @File    DJADMIN.EXE
		     @File         DJ.EXE
	   @EndLib
	   @BeginLib DJHELP.RED          /* S,P,A */
		     @File   DATAJCTN.HLP @Out djtools\*.*
	   @EndLib
	   @BeginLib DJPACK.RED          /* S,P,A */
		     @File     DJPACK.EXE
	   @EndLib

      @EndIf

	   @BeginLib CONEXE1A.RED
		     @File    CONFASC.EXE @Option 11
		     @File    CONDASC.EXE @Option 11
		     @File      CONQA.EXE @Option 17
		     @File   CONFIELD.EXE @Option 11
	   @EndLib
	   @BeginLib CONEXE1B.RED
		     @File     CONASK.EXE @Option 12
		     @File    CONENAB.EXE @Option 14
		     @File    CONDBSE.EXE @Option 15
		     @File    CONL123.EXE @Option 16
		     @File   CON123R3.EXE @Option 16
	   @EndLib
	   @BeginLib CONEXE1C.RED
		     @File     CONDIF.EXE @Option 13
		     @File      CONWP.EXE @Option 45
	   @EndLib      
    @BeginLib CONEXE1D.RED
       @File     CONQA4.EXE @Option 17
       @File   CONINTPB.EXE @Option 58
       @File   CONMSWDB.EXE @Option 59
    @EndLib
  
  @If (@Exists "@InDrive:ARC.DID" || @Exists "@InDrive:LAN.DID")
    @BeginLib CONEXE4A.RED
	 @File     CONARC.EXE @Option 66
    @EndLib
  @EndIf
  
  
  @If (@Exists "@InDrive:STD.DID")
    @EndDisk
	
  @Else
    @EndDisk
    @DefineDisk
      @Label = "DISK 2"
	   @BeginLib CONEXE2A.RED
		     @File    BTRIEVE.EXE
       @File      BLOAD.BAT
       @File    BUNLOAD.BAT
		     @File    CONBTRV.EXE @Option 20
		     @File    CONCLAR.EXE @Option 21
		     @File   CLIDXBLD.EXE @Option 21
		     @File     CONACT.EXE @Option 51
		     @File    CONPDOX.EXE @Option 22
	   @EndLib
	   @BeginLib CONEXE2B.RED
		     @File     CONSC4.EXE @Option 23
		     @File    CONRBSE.EXE @Option 24
       @File      CONDP.EXE @Option 65
	   @EndLib
	   @BeginLib CONEXE2C.RED
		     @File     CONBIN.EXE @Option 25
		     @File    CONSYLK.EXE @Option 26
		     @File   CONCTREE.EXE @Option 27
		     @File   CONEXCEL.EXE @Option 28 
		     @File     CONMXZ.EXE @Option 48
	   @EndLib        
    @BeginLib CONEXE2D.RED
       @File   CONDEASE.EXE @Option 29
       @File   CONDFLEX.EXE @Option 30
    @EndLib
    @BeginLib CONEXE2E.RED
       @File   CONDFLX3.EXE @Option 30
       @File   CONDBOSS.EXE @Option 56
       @File    CONGOLD.EXE @Option 62
    @EndLib
    @EndDisk

  @EndIf



  @If (@Exists "@InDrive:ADV.DID" || @Exists "@InDrive:LAN.DID"
				  || @Exists "@InDrive:ARC.DID")

  @DefineDisk
	@Label = "DISK 3"
	   @BeginLib CONEXE3A.RED
		@File     CONORA.EXE @Option 40
		@File   CONCISAM.EXE @Option 41
	   @EndLib
	   @BeginLib CONEXE3B.RED
		@File    CONFRMX.EXE @Option 42
		@File     CONXDB.EXE @Option 43
	   @EndLib
	   @BeginLib CONEXE3C.RED
		@File   CONFMXOL.EXE @Option 42
		@File     CONZIM.EXE @Option 63
		@File      DEFDD.PGM @Option 63
	   @EndLib
	   @BeginLib CONEXE3D.RED
		@File   CONMFCBL.EXE @Option 44
	   @EndLib
	   @BeginLib CONEXE3E.RED
		@File     CONSOL.EXE @Option 46
		@File    CONFSOL.EXE @Option 46
		@File      SUSRA.EXE @Option 46
  @File      MUSRA.EXE @Option 46
		@File    CONACPC.EXE @Option 47
		@File   ACPCBIND.EXE @Option 47
		@File     CONSAS.EXE @Option 50
	   @EndLib
	   
  @EndDisk


  @DefineDisk
	@Label = "DISK 4"
	   @BeginLib CONEXE3F.RED
		@File     CONXQL.EXE @Option 20
	   @EndLib
	   @BeginLib CONEXE3G.RED
		@File     CONCTP.EXE @Option 27
		@File     CONRDM.EXE @Option 49
		@File    CONSPSS.EXE @Option 53
		@File   CONSTATI.EXE @Option 64
	   @EndLib
	   @BeginLib CONEXE3H.RED
		@File      XQLPO.EXE @Option 20
		@File    XQLUTIL.EXE @Option 20
		@File      BUTIL.EXE @Option 20
		@File      XLOAD.BAT @Option 20
		@File    XUNLOAD.BAT @Option 20
		@File   CONSPLUS.EXE @Option 52
	   @EndLib
	   @BeginLib CONEXE3I.RED
		@File     CONIXF.EXE @Option 54
		@File    CONSYST.EXE @Option 55
		@File    CONSQLS.EXE @Option 57
	   @EndLib
    @BeginLib CONEXE3J.RED
	 @File   CONSQLBS.EXE @Option 60
	 @File    CONACBL.EXE @Option 61
    @EndLib
  

       @File    HOLDEMO.EXE
       @File     TSRINT.EXE
       @File     REDUCE.EXE

  @EndDisk

  @EndIf



@EndIf              /*  Big EndIf for 2 disk install blocks  */








@GetOutDrive

@If   (@Exists "@InDrive:STD.DID" ||
       @Exists "@InDrive:PROF.DID" ||
       @Exists "@InDrive:ADV.DID")

	@Suppress F
	@Suppress G
	@Suppress H
	@Suppress I
	@Suppress J
	@Suppress K
	@Suppress L
	@Suppress M
	@Suppress N
	@Suppress O
	@Suppress P
	@Suppress Q
	@Suppress R
	@Suppress S
	@Suppress T
	@Suppress U
	@Suppress V
	@Suppress W
	@Suppress X
	@Suppress Y
	@Suppress Z
	@Cls
	On which disk drive do you wish to install @Name?


@Else

	@Cls
	On which disk drive do you wish to install @Name?

@EndIf
@EndOutDrive
@Display
@If (@Removable != 0)
	Sorry.  You cannot install @Name on a floppy with less than
	1.4 megabytes of disk space.  Also, you can select no more 
	than two convert .EXE files.  You will have to perform multiple
	installs, creating separate program disks for the converts you
	intend to use.

	@Pause
@EndIf
@EndDisplay
@GetSubdir
	@Cls
	Now you need to specify the subdirectory on your disk where the 
	@Name system will be installed.



	@Prompt = "Which subdirectory ([Enter] = @Subdir) ?"

@EndSubdir

@Display
	@Cls
	The @Name files will be copied to @OutDrive:@Subdir.


	@Pause
@EndDisplay


/* @Display                                                                                                                                                                                                                                                                                                                                                                                                                                                     */
/*      @Cls                                                                                                                                                                                                                                                                                                                                                                                                                                                                            */
/*       The install program will add @OutDrive:@Subdir to the PATH                     */
/*       setting in your AUTOEXEC.BAT file.  If no AUTOEXEC.BAT                                                         */
/*       exists, one will be created on your boot disk.                                                                                                                         */
/*                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              */
/*                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              */
/* @Pause                                                                                                                                                                                                                                                                                                                                                                                                                                                                       */
/* @EndDisplay                                                                                                                                                                                                                                                                                                                                                                                                                          */
/*                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              */
/* @SetAutoexec                                                                                                                                                                                                                                                                                                                                                                                                                 */
/*      @AskOverwrite                                                                                                                                                                                                                                                                                                                                                                                                   */
/*      @Path = "@OutDrive:@Subdir"                                                                                                                                                                                                                                                                                     */
/* @EndAutoexec                                                                                                                                                                                                                                                                                                                                                                                                                 */


@GetString @UserName
	@Cls

	Next you must provide a name to identify the licensed user of
	@Name.  Type any name up to 24 characters.


	@Prompt = "Type User Name and press RETURN."

@EndString

@GetString @SerialNo
	@Cls
	
    Now you must type the Serial Number for your copy of @Name.
    The Serial Number can be found on the back of the User's Guide.

@Prompt = "Type your Serial Number and press RETURN to complete the install."

@EndString

@Finish
	@Cls
	@ChDrive @OutDrive
	@ChDir "@SubDir"
  @If (@Exists "@InDrive:LAN.DID")
	@Execute "djadmin","-creat @SerialNo \"@UserName\" @OutDrive:@Subdir\\djtools 1"
  @Else
	@Execute "djadmin","-creat @SerialNo \"@UserName\" @OutDrive:@Subdir\\djtools 0"
  @EndIf        
      The installation was NOT completed.       
      @Pause
@EndFinish

/* end-of-file */
