 /*
 *      FILE:
 *              CADKEY ANALYSIS 5
 */

@DefineProject
	@Name           = "CADKEY ANALYSIS"
	@Version        = "6"
	@outdrive       = C
	@subdir         = "\\CADKEY\\CKA\\"
   @Requires         @HardDisk
   @InDiskBell     = 1
@EndProject            


@DefineVars
	@Drive          @A1             = C
	@Dir            @A2             = "\\CADKEY6\\"
	@Dir            @Subdir20       = "\\CDL\\" 
	@Dir            @Subdir30       = "\\CDE\\"
	@Dir            @Subdir40       = "\\PRT\\"
@EndVars

@Display
	@Cls

    This program will install @Name @Version on your computer system
    and verifies the integrity of the distribution files.  You need
    to have CADKEY 6 installed on your system before installing
    @Name.

    For more information on installation, see Chapter 1 in the
    @NAME Reference Manual.
   



	@Pause
@EndDisplay

retry:

@GetOutDrive @A1
	@Suppress A     /* don't display A: */
	@Suppress B     /* or B:                        */

	@Cls

		Choose the drive on which CADKEY is installed.















	Use the <Up Arrow>, <Down Arrow>, <PgUp>, & <PgDn> to move the light-
	bar to the disk drive on which you want to install and then press the
	<Enter> key.
@EndOutDrive

@GetSubdir @A2
	@Cls

	Enter the name of the CADKEY subdirectory. 

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

@If (!( @Exists "@A1:\\@A2\\CADKEY.EXE" ))
@Display
	@Cls

	CADKEY does not exist in @A1:@A2.
   
   Press [Esc] to exit this install or any other key to enter
   another path for CADKEY 6



   @pause
   @Goto retry
@EndDisplay
@EndIf

@definevars
	@drive      @ckadrive = @A1
	@dir        @ckasubdir = "@A2\\CKA\\"
	@drive      @OutDrive2 = @A1
	@dir        @Subdir2 = "\\CDL\\"
	@drive      @OutDrive3 = @A1
	@dir        @Subdir3 = "\\CDE\\"
	@drive      @OutDrive4 = @A1
	@dir        @Subdir4 = "\\PRT\\"
@endvars

@GetOutDrive @ckadrive

	@Suppress A    /* don't display A:  */
	@Suppress B    /* or B:             */

	@Cls

       Choose the drive on which you want @Name installed.














	Use the <Up Arrow>, <Down Arrow>, <PgUp>, & <PgDn> to move the light-
	bar to the disk drive on which you want to install and then press the
	<Enter> key.
@EndOutDrive
@GetSubdir @ckasubdir
	@Cls

	Now you need to specify the path on your disk where
	@Name is to be installed.

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


@GetGroups
	@Cls

     Do you want to use the standard configuration for downloading
     @Name: CDL, CDE, and PART files?  These should be the same as
     the CADKEY 6 subdirectories.






	   EXAMPLE 1                              EXAMPLE 2
     STANDARD CONFIGURATION                 OPTIONAL CONFIGURATION
	      
     C:\CADKEY\_______CDL                   C:\CADKEY
                  |___CDE                   D:\_______CDL
                  |___PRT                        |____CDE
                                                 |____PRT


     Use the [Up Arrow] and [Down Arrow] to move the lightbar. Press
     [Enter] when you have selected your response.


	@SET Y = "YES - Use the standard configuration"
	@SET N = "NO - Download files onto other paths"


@EndGroups

@If ( 'N' [= @Group )
@GetOutDrive @OutDrive2

	@Suppress A    /* don't display A:  */
	@Suppress B    /* or B:             */

	@Cls

       Choose the drive on which you have installed CADKEY 
       CADL files.














	Use the <Up Arrow>, <Down Arrow>, <PgUp>, & <PgDn> to move the light-
	bar to the disk drive on which you want to install and then press the
	<Enter> key.
@EndOutDrive

@GetSubdir @Subdir2
	@Cls

	Now you need to specify the path on your disk where the CADL
	files are installed.

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

@GetOutDrive @OutDrive3

	@Suppress A    /* don't display A:  */
	@Suppress B    /* or B:             */

	@Cls

       Choose the drive on which you have installed CADKEY 
       CDE file.














	Use the <Up Arrow>, <Down Arrow>, <PgUp>, & <PgDn> to move the light-
	bar to the disk drive on which you want to install and then press the
	<Enter> key.
@EndOutDrive

@GetSubdir @Subdir3
	@Cls

	Now you need to specify the path on your disk where the CDE
	files are installed.

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

@GetOutDrive @OutDrive4

	@Suppress A    /* don't display A:  */
	@Suppress B    /* or B:             */

	@Cls

       Choose the drive on which you have installed CADKEY 
       PART files.














	Use the <Up Arrow>, <Down Arrow>, <PgUp>, & <PgDn> to move the light-
	bar to the disk drive on which you want to install and then press the
	<Enter> key.
@EndOutDrive

@GetSubdir @Subdir4
	@Cls

	Now you need to specify the path on your disk where the PART
	files are installed.

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

@EndIf

@DefineDisk
	@Label = "DISK 1 OF 2"

  @File          README.CKA        @Out @A1:\@A2\*.*

	@BeginLib CKA_EXE1.RED

		@File          *.*          @Out @ckadrive:\@ckasubdir\*.*

	@EndLib

   @BeginLib CKA_EXE3.RED

		@File          *.*      @Out @ckadrive:\@ckasubdir\*.*

	@EndLib

   @BeginLib CKA_CDL.RED

	   @If ( 'N' [= @Group )

		    @File          *.*      @Out @OutDrive2:\@Subdir2\*.*

	   @Else

		    @File          *.*      @Out @A1:\@A2\@Subdir20\*.*

	   @EndIf

	@EndLib

@EndDisk

@DefineDisk
	@Label = "DISK 2 OF 2"

	@BeginLib CKA_EXE2.RED

		@File          *.*      @Out @ckadrive:\@ckasubdir\*.*

	@EndLib

   @BeginLib CKA_SUP.RED

		@File          *.*          @Out  @A1:\@A2\*.*

	@EndLib

	@BeginLib CKA_PRT.RED

       @If ( 'N' [= @Group )

		    @File          *.*          @Out @OutDrive4:\@Subdir4\*.*

       @Else

		    @File          *.*          @Out @A1:\@A2\@Subdir40\*.*

       @EndIf

	@EndLib

	@BeginLib CKA_CDE.RED

	   @If ( 'N' [= @Group )

		    @File          *.*      @Out @OutDrive3:\@Subdir3\*.*

	   @Else

		    @File          *.*      @Out @A1:\@A2\@Subdir30\*.*

	   @EndIf

	@EndLib

@EndDisk

@Finish

	@Cls

	@ChDrive (@A1)
	@ChDir ("@A2")

	/* process to add cde to config.dat */
   @If (@system ("cdeadd analysis"))
   @EndIf

	@Cls


	INSTALLATION HAS BEEN SUCCESSFULLY COMPLETED
	THANK-YOU FOR CHOOSING @NAME

	PLEASE READ THE README.CKA FILE IN @A1:@A2
	
	@pause

@EndFinish
/* end-of-file */
