@DefineProject
	@Name 		= "Imagine - 3D Surf" 		
	@Version	   = "1.0"
	@Subdir 	   = "\\3DSURF"	
	@OutDrive 	= C
	@Group	 	= "a"
@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

@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 @Studio = "\\3DS2"
   @Dir @Maps = "@Subdir\\MAPS"
   @Dir @Process = "@Subdir"
   @Dir @Matlib = "@Studio\\MATLIBS"
@EndVars

@GetSubdir @Studio
	@Cls
   Now you need to specify the location for the example data files
   to be placed.

   This should be the directory that you normally run 3D Studio from.

	@Prompt = "Which examples directory ?"
@EndSubdir

@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\3dsurf.pxp","3D Surf"
                            -or-
         USER-PROG1 = "@OutDrive:@Studio\process\3dsurf.pxp","3D Surf"

	@Prompt = "Which IPAS subdirectory ?"
@EndSubdir

@GetSubdir @Matlib
	@Cls
   Now you need to specify the location for the materials library 
   to be placed.

   This directory should be the same as MAT-PATH in your 3D Studio
   set file. You will need to use this library to use the IPAS program.


	@Prompt = "Which materials library subdirectory ?"
@EndSubdir

@DefineDisk
	@Label = "Program Disk"
   @File IPAS_PXP.EXE @Group a @Overwrite @Out @OutDrive:@Process\*.*
   @File GROUND.EXE @Group a @Overwrite @Out @OutDrive:@Maps\*.*
   @File 3DSURF.MLI @Group a @Overwrite @Out @OutDrive:@Matlib\*.*
   @File 3DSURF.EXE @Group a @Overwrite
   @File EXAMPLES.EXE @Group a @Overwrite @Out @OutDrive:@Studio\*.*
@EndDisk

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

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

   Unpacking texture maps:

   @Spawn( "GROUND" )
   @Delete( "GROUND.EXE" )
	@ChDir "@Studio" 
   @Spawn( "EXAMPLES" )
   @Delete( "EXAMPLES.EXE" )
	@ChDir "@Process" 
   @Spawn( "IPAS_PXP" )
   @Delete( "IPAS_PXP.EXE" )
	@ChDir "@Subdir" 
   @Spawn( "3DSURF" )
   @Delete( "3DSURF.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\3dsurf.pxp","3D Surf"


   @Name has been installed in a convertable demo format.

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

	@Pause

@EndFinish

