@DefineProject
	@Name = 	"Generic CADD"
	@Version =	"6.0"
	@OutDrive =	C
	@SubDir =	"CADD6"
        @Group =        "z"
	@Terse
@EndProject

@GetOutDrive
	@Cls
		On which drive should @Name be installed?
	@Suppress A
	@Suppress B
@EndOutDrive

@GetSubDir
	@Prompt = "Where should @Name 6.0 be installed?"
@EndSubDir

@DefineVars
	@Dir @Drawing = "@SubDir\\GCD"
	@Dir @Comp =	"@SubDir\\CMP"
	@Dir @Hatch =	"@SubDir\\HCH"
	@Dir @Font =	"@SubDir\\FNT"
	@Dir @Macros =	"@SubDir\\MCR"
@EndVars

@GetSubDir      @Drawing
	@Prompt = "Where should the sample drawings be installed?"
@EndSubDir

@GetSubDir	@Comp
	@Prompt = "Where should the sample components be installed?"
@EndSubDir

@GetSubDir	@Hatch
	@Prompt = "Where should the hatches be installed?"
@EndSubDir

@GetSubDir	@Font
	@Prompt = "Where should the fonts be installed?"
@EndSubDir

@GetSubDir	@Macros
	@Prompt = "Where should the sample macros be installed?"
@EndSubDir
@GetGroups
	@CheckBox
	@Cls

                Select Which parts of @Name 6.0 to install















    **   Use cursor keys to move to item. Press <SPACEBAR> to select.   **
    **   Press [ENTER] when done selecting to continue installing.      **
     @Set z = "FULL INSTALLATION                               (11974190 bytes)"
     @Set c = "CORE FILES - ALWAYS INSTALL FIRST TIME!          (3430867 bytes)"
     @Set a = "AutoCAD Import/Export (DXF, DWG) utilities        (657049 bytes)"
     @Set b = "Bill of Material Program                          (361408 bytes)"
     @Set x = "AutoCAD style fonts                              (1661031 bytes)"
     @Set o = "Fillable outline fonts                           (2149637 bytes)"
     @Set r = "Architectural Sample Symbols                      (376407 bytes)"
     @Set e = "Electronic Sample Symbols                        (1294335 bytes)"
     @Set n = "Engineering Sample Symbols                         (68897 bytes)"
     @Set u = "Business Sample Symbols                           (794855 bytes)"
     @Set h = "On-line, context sensitive Help system            (407203 bytes)"
     @Set d = "Sample Drawings and Template Drawings             (672696 bytes)"
     @Set p = "HPGL Import                                        (99805 bytes)"
     @EndGroups

@If ('c' [= @Group || 'z' [= @Group || 'd' [= @Group)
        @ChDrive @OutDrive
        @MkDir ("@Drawing")
        @ChDir "@Drawing"
        @ChangeExt ("DWG", "GCD", "Rename existing DWG files to Generic CADD 6.0 GCD files? (Y/N)")
        @ChDrive @InDrive
@EndIf

@If ('c' [= @Group || 'z' [= @Group)

        @GetOption
                               Pick default units.
                   @Option 1 = "English (inches)"
                   @Option 2 = "Metric (mm)"
        @EndOption
@EndIf
@DefineDisk
@Label = "Disk 1 (1.2M)"

        @File bomzip.exe @Group bz @Size 361408
        @File pointer.exe @Group cz @Size 28809  
	@File fontstuf.exe @Group cz @Size 49700 
        @File macros.exe @Out \@Macros\*.* @Group cz @Size 42439
        @File d2g.exe @Group az @Size 266219
        @File hpzip.exe @Group pz @Size 99805
        @File engcmps.exe @Out \@Comp\*.* @Group nz @Size 68897
        @File paper.exe @Group cz @Size 107016
        @File smvideo.exe @Group cz @Size 417979 
        @File lgvideo.exe @Group cz @Size 607496 
        @File aconzip.exe @Group az @Size 390830        
        @File archcmps.exe @Out \@Comp\*.* @Group rz @Size 376407
        @File sampgcds.exe @Out \@Drawing\*.* @Group dz @Size 672696
        @File hches.exe @Out \@Hatch\*.* @Group cz @Size 35236
        

@EndDisk
@DefineDisk
@Label = "Disk 2 (1.2M)"
        
        @File tutcmps.exe @Out \@Comp\*.* @Group cz @Size 15824
        @File setup.exe @Group cz @Size 512875
        @File helpzip.exe @Group hz @Size 407203
        @File acadfnts.exe @Out \@Font\*.* @Group xz @Size 1661031
        @File eleccmps.exe @Out \@Comp\*.* @Group ez @Size 1294335
        @File buscmps.exe @Out \@Comp\*.* @Group uz @Size 794855
        

@EndDisk
@DefineDisk
@Label = "Disk 3 (1.2M)"
        
        @File program.exe @Group cz @Size 1217241
        @File outfnts.exe @Out \@Font\*.* @Group oz @Size 2149637
        @File caddfnts.exe @Out \@Font\*.* @Group cz @Size 389999

@If (2 [= @Option)
	@File metric.exe @Group cz @Size 6253
@EndIf
	@EndDisk /* all sizes end here */

@Finish
	@ChDrive @OutDrive
        
        @ChDir "@Font"	
        @If (@Exists "@OutDrive:\\@Font\\outfnts.exe")
        	@Cls
                           Extracting Outline fonts
        	@System "@OutDrive:\\@Font\\outfnts.exe -o >nul"
        	@Delete ("@OutDrive:\\@Font\\outfnts.exe")
        @EndIf

        @If (@Exists "@OutDrive:\\@Font\\acadfnts.exe")
        	@Cls
                        Extracting AutoCAD style fonts
        	@System "@OutDrive:\\@Font\\acadfnts.exe -o >nul"
        	@Delete ("@OutDrive:\\@Font\\acadfnts.exe")
        @EndIf

        @ChDir "@SubDir"
        @If (@Exists "@OutDrive:\\@SubDir\\program.exe")
        	@Cls
                     Extracting Generic CADD Program files
        	@System "@OutDrive:\\@SubDir\\program.exe -o >nul"
        	@Delete ("@OutDrive:\\@SubDir\\program.exe")
        @EndIf
        
        @ChDir "@Comp"
        @If (@Exists "@OutDrive:\\@Comp\\buscmps.exe")
        	@Cls
                        Extracting business components
        	@System "@OutDrive:\\@Comp\\buscmps.exe -o -d >nul"
        	@Delete ("@OutDrive:\\@Comp\\buscmps.exe")
        @EndIf

	@If (@Exists "@OutDrive:\\@Comp\\eleccmps.exe")        
		@Cls
		       Extracting electronic components
		@System "@OutDrive:\\@Comp\\eleccmps.exe -o -d >nul"
		@Delete ("@OutDrive:\\@Comp\\eleccmps.exe")
	@EndIf

        @ChDir "@SubDir"
        @If (@Exists "@OutDrive:\\@SubDir\\helpzip.exe")
        	@Cls
        	               Extracting Help
        	@System "@OutDrive:\\@SubDir\\helpzip.exe -o >nul"
        	@Delete ("@OutDrive:\\@SubDir\\helpzip.exe")
        @EndIf
        @If ('c' [= @Group || 'z' [= @Group)
        
                @If (@Exists "@OutDrive:\\@SubDir\\smvideo.exe")
        	@Cls
        	             Extracting video info
        	@System "@OutDrive:\\@SubDir\\smvideo.exe -o smvideo.tvd >nul"
        	@System "@OutDrive:\\@SubDir\\smvideo.exe -o vga3.vgd >nul"
        	@System "@OutDrive:\\@SubDir\\smvideo.exe -o ega3.vgd >nul"
        	@System "@OutDrive:\\@SubDir\\smvideo.exe -o vesa16.vgd >nul"
        	@System "@OutDrive:\\@SubDir\\smvideo.exe -o vesa256.vgd >nul"
                @EndIf

                @If (@Exists "@OutDrive:\\@SubDir\\lgvideo.exe")
        	@System "@OutDrive:\\@SubDir\\lgvideo.exe -o lgvideo.tvd >nul"
                @EndIf
        @EndIf
        @ChDir "@Drawing"        
        @If (@Exists "@OutDrive:\\@Drawing\\sampgcds.exe")
        	@Cls
        	Extracting sample drawings and template drawings
        	@System "@OutDrive:\\@Drawing\\sampgcds.exe -o >nul"
        	@Delete ("@OutDrive:\\@Drawing\\sampgcds.exe")
        @EndIf

        @ChDir "@SubDir"
        @If (@Exists "@OutDrive:\\@SubDir\\setup.exe")
        	@Cls
        	    Extracting Configuration and Setup files
        	@System "@OutDrive:\\@SubDir\\setup.exe -o >nul"
        	@Delete ("@OutDrive:\\@SubDir\\setup.exe")
        @EndIf

        @If (@Exists "@OutDrive:\\@SubDir\\aconzip.exe")
        	@Cls
        	            Extracting DXF Utility 
        	@System "@OutDrive:\\@SubDir\\aconzip.exe -o >nul"
        	@Delete ("@OutDrive:\\@SubDir\\aconzip.exe")
        @EndIf

        @If (@Exists "@OutDrive:\\@SubDir\\d2g.exe")
        	@Cls
        	        Extracting AutoCAD DWG Utility
                @System "@OutDrive:\\@SubDir\\d2g.exe -o >nul"
                @Delete ("@OutDrive:\\@SubDir\\d2g.exe")
        @EndIf

        @ChDir "@Comp"
        @If (@Exists "@OutDrive:\\@Comp\\archcmps.exe")
        	@Cls
        	      Extracting architectural components
        	@System "@OutDrive:\\@Comp\\archcmps.exe -o -d >nul"
        	@Delete ("@OutDrive:\\@Comp\\archcmps.exe")
        @EndIf

        @ChDir "@SubDir"        
        @If (@Exists "@OutDrive:\\@SubDir\\bomzip.exe")
        	@Cls
        	               Extracting BOM
        	@System "@OutDrive:\\@SubDir\\bomzip.exe -o >nul"
        	@Delete ("@OutDrive:\\@SubDir\\bomzip.exe")
        @EndIf

        @ChDir "@Font"	
        @If (@Exists "@OutDrive:\\@Font\\caddfnts.exe")
        	@Cls
        	      Extracting standard Generic CADD fonts
        	@System "@OutDrive:\\@Font\\caddfnts.exe -o >Nul"
        	@Delete ("@OutDrive:\\@Font\\caddfnts.exe")
        @EndIf

        @ChDir "@SubDir"
	@If (@Exists "@OutDrive:\\@SubDir\\hpzip.exe")
		@Cls
		          Extracting HPGL converter
		@System "@OutDrive:\\@SubDir\\hpzip.exe -o >nul"
		@Delete ("@OutDrive:\\@SubDir\\hpzip.exe")
	@EndIf

	@If (@Exists "@OutDrive:\\@SubDir\\fontstuf.exe")
		@Cls
		          Extracting Font utilities
		@System "@OutDrive:\\@SubDir\\fontstuf.exe -o >nul"
		@Delete ("@OutDrive:\\@SubDir\\fontstuf.exe")
	@EndIf

	@If (@Exists "@OutDrive:\\@SubDir\\paper.exe")
		@Cls
		      Extracting printer and plotter drivers
		@System "@OutDrive:\\@SubDir\\paper.exe -o >nul"
		@Delete ("@OutDrive:\\@SubDir\\paper.exe")
	@EndIf
        @If ('c' [= @Group || 'z' [= @Group)

	        @If (@Exists "@OutDrive:\\@SubDir\\pointer.exe")
		@Cls
		         Extracting Pointing Device Info
		@System "@OutDrive:\\@SubDir\\pointer.exe -o pointers.tdg >nul"
		@System "@OutDrive:\\@SubDir\\pointer.exe -o dig13.ipd >nul"
                @EndIf
        @EndIf

	@ChDir "@Macros"
	@If (@Exists "@OutDrive:\\@Macros\\macros.exe")
		@Cls
		            Extracting sample macros
		@System "@OutDrive:\\@Macros\\macros.exe -o >nul"
		@Delete ("@OutDrive:\\@Macros\\macros.exe")
	@EndIf

	@ChDir "@Hatch"
	@If (@Exists "@OutDrive:\\@Hatch\\hches.exe")
		@Cls
		            Extracting Hatch Patterns
		@System "@OutDrive:\\@Hatch\\hches.exe -o >nul"
		@Delete ("@OutDrive:\\@Hatch\\hches.exe")
	@EndIf

	@ChDir "@Comp"
	@If (@Exists "@OutDrive:\\@Comp\\tutcmps.exe")
		@Cls
		        Extracting tutorial components
		@System "@OutDrive:\\@Comp\\tutcmps.exe -o >nul"
		@Delete ("@OutDrive:\\@Comp\\tutcmps.exe")
	@EndIf
        
	@If (@Exists "@OutDrive:\\@Comp\\engcmps.exe")
		@Cls
		       Extracting engineering components
		@System "@OutDrive:\\@Comp\\engcmps.exe -o -d >nul"
		@Delete ("@OutDrive:\\@Comp\\engcmps.exe")
	@EndIf

        @ChDir "@SubDir"
	@If (@Exists "@OutDrive:\\@SubDir\\metric.exe")
		@Cls
        	         Extracting Metric information
		@System "@OutDrive:\\@SubDir\\metric.exe -o >nul"
		@Delete ("@OutDrive:\\@SubDir\\metric.exe")
	@EndIf
@If ('c' [= @Group || 'z' [= @Group)
	@OurConfig
	@Spawn ("config.exe")
@EndIf
@Cls
    Install complete!  At DOS prompt, type "CADD" and press <ENTER> to run
    Generic CADD.
@If ('c' [=@Group || 'z' [=@Group)
    
    NOTE: You may need to re-boot for video configuration changes to 
          take effect.
@EndIf
@Pause
@EndFinish








