@DefineProject
	@Name 		= "Imagine - Detailor Demo" 		
	@Version	   = "1.0"
	@Subdir 	   = "\\IMAGINE\\DETAILOR"	
	@OutDrive 	= C
@EndProject

@Display
	@Cls
                     @Name Version @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 < 3M )
   @Display
      @Cls
      DISK SPACE:

         @Name requires 3.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 @Maps = "@Subdir\\MAPS"
   @Dir @Process = "@Subdir"
@EndVars

@GetSubdir @Maps
	@Cls
   Now you need to specify the location for the material maps to be 
   placed.

   This directory will also need to be added to a MAP-PATH in your
   3D Studio set file if it is not already on it.


	@Prompt = "Which maps subdirectory ?"
@EndSubdir

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

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

      Example:
         USER-PROG1 = "@OutDrive:@Subdir\adfnce.pxp","Fences"
         USER-PROG2 = "@OutDrive:@Subdir\adwall.pxp","Walls"
                            -or-
         USER-PROG1 = "process\adfnce.pxp","Fences"
         USER-PROG2 = "process\adwall.pxp","Walls"

	@Prompt = "Which IPAS subdirectory ?"
@EndSubdir

@DefineDisk
	@Label = "Demo Disk"
   @File IPAS_PXP.EXE @Group abc @Overwrite @Out @OutDrive:@Process\*.*
   @File AD_R11.EXE @Group b @Overwrite @Out @OutDrive:@Subdir\ad.exe
   @File AD_R12.EXE @Group ac @Overwrite @Out @OutDrive:@Subdir\ad.exe
   @File AD_MATD.EXE @Group abc @Overwrite @Out @OutDrive:@Maps\*.*
@EndDisk

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

@Finish 
	@ChDrive @OutDrive 
	@ChDir "@Maps" 
   @Cls

   Unpacking texture maps:

   @Spawn( "AD_MATD" )
   @Delete( "AD_MATD.EXE" )
   @Spawn( "IPAS_SXP" )
   @Delete( "IPAS_SXP.EXE" )
	@ChDir "@Process" 
   @Spawn( "IPAS_PXP" )
   @Delete( "IPAS_PXP.EXE" )
	@ChDir "@Subdir" 
   @Spawn( "AD" )
   @Delete( "AD.EXE" )

	@Cls
   @Name has been successfully installed


   A map directory @OutDrive:@Maps needs to added to your 3D Studio
   3DS.SET file. 3D Studio requires the mapping path for the materials
   to be located at rendering time.

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

      Example:
         USER-PROG1 = "@OutDrive:@Process\adfnce.pxp","Fences"
         USER-PROG2 = "@OutDrive:@Process\adwall.pxp","Walls"


   @Name has been installed in a convertable demo format.

   To convert to a fully working copy run SIKEY and record the key
   number. Call 303-759-1024 or Fax the key number to 303-759-0928
   to receive your password.
       

	@Pause

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

