@DefineProject
	@Name 		= "Civil Detailor" 		
	@Version	   = "1.0 Demo"
	@Subdir 	   = "\\IMAGINE\\CDETLR"	
	@OutDrive 	= C
@EndProject

@Display
	@Cls
                      Imagine @Name
                         Version @Version
                      Demonstration Version

	This program will install @Name 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.

	Each question has a default answer.  If the default answer is
	correct, press the ENTER key in response to the question.
	Otherwise, type the answer and then press the ENTER key.

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

   @Pause
@EndDisplay

@GetGroups
   Which AutoCAD release are you using?

   @Set a = "No AutoCAD"
   @Set b = "AutoCAD Release 11"
   @Set c = "AutoCAD Release 12"
@EndGroups

@GetOutDrive
   @If( @Removable(A) )
      @Suppress A
   @Endif
   @If( @Removable(B) )
      @Suppress B
   @Endif
	@Cls

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













@EndOutDrive

@If( @DiskFree @OutDrive < 4M )
   @Display
      @Cls
      DISK SPACE:

         @Name requires 4.0 megabytes of available disk space.

         You need to free some disk space on the selected drive to be
         able to install @Name



      @Pause
      @Abort
   @EndDisplay
@EndIf

@GetSubdir
	@Cls
	Now you need to specify the disk destination subdirectory. The
	subdirectory is the location on your disk where @Name
	will be installed. 


	@Prompt = "Which subdirectory ?"
@EndSubdir

@DefineVars
   @Dir @Process = "@Subdir"
@EndVars

@GetSubdir @Process
	@Cls
   Now you need to specify the location for the IPAS routines to be 
   placed.

   The six IPAS routine calls will need to be added the PXP program
   selection menu in your 3D Studio set file.

      Example:
         USER-PROG1 = "@OutDrive:@Subdir\cdfnce.pxp","Barriers"
         USER-PROG2 = "@OutDrive:@Subdir\cdtlne.pxp","Telephone"
                            -or-
         USER-PROG1 = "process\cdfnce.pxp","Barriers"
         USER-PROG2 = "process\cdtlne.pxp","Telephone"

       These are fully described in the Civil Detailor manual.

	@Prompt = "Which IPAS subdirectory ?"
@EndSubdir

@DefineDisk
	@Label = "Installation Disk"
   @File CD_R11.EXE @Group b @Overwrite @Out @OutDrive:@Subdir\cd.exe
   @File CD_R12.EXE @Group ac @Overwrite @Out @OutDrive:@Subdir\cd.exe
   @File CIVDET.GIF @Group abc @Overwrite @Out @OutDrive:@Subdir\*.*
   @File IPASIPXP.EXE @Group abc @Overwrite @Out @OutDrive:@Process\*.*
@EndDisk

@SetAutoexec
   @AskOverwrite
   @SetAppend( "ACAD","@OutDrive:\\@SubDir" )
   @SetAppend( "ISCALE","@OutDrive:\\@SubDir" )
@EndAutoexec

@Finish 
	@ChDrive @OutDrive 
	@ChDir "@Process" 
   @Cls

   Unpacking texture maps:

   @Spawn( "IPASIPXP" )
   @Delete( "IPASIPXP.EXE" )
	@ChDir "@Subdir" 
   @Spawn( "CD" )
   @Delete( "CD.EXE" )

	@Cls
   Imagine @Name Demo has been successfully installed


   The six IPAS routine calls will need to be added the PXP program
   selection menu in your 3D Studio set file.

      Example:
         USER-PROG1 = "@OutDrive:@Subdir\cdfnce.pxp","Barriers"
         USER-PROG2 = "@OutDrive:@Subdir\cdwall.pxp","Cnc Barriers"
         USER-PROG3 = "@OutDrive:@Subdir\cdgrl.pxp","Guard Rails"
         USER-PROG4 = "@OutDrive:@Subdir\cdstrp.pxp","Stripes"
         USER-PROG5 = "@OutDrive:@Subdir\cdtrk.pxp","Transit"
         USER-PROG6 = "@OutDrive:@Subdir\cdtlne.pxp","Telephone"

      Refer to the Civil Detailor manual for complete description


	@Pause

	@ChDrive @OutDrive 
	@ChDir "@Subdir" 
@EndFinish

