@DefineProject
	@Name 		= "Imagine - 3D People" 		
	@Version	   = "1.0"
	@Subdir 	   = "\\IMAGINE\\PEOPLE"	
	@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

@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 @Meshes = "@Subdir"
   @Dir @Project = "@Subdir"
@EndVars

@GetSubdir @Meshes
	@Cls
   Now you need to specify the location for the mesh models (3DS) to be 
   placed.


	@Prompt = "Which mesh subdirectory ?"
@EndSubdir

@GetSubdir @Project
	@Cls
   Now you need to specify the location for the project file (PRJ) to be 
   placed.


	@Prompt = "Which project subdirectory ?"
@EndSubdir

@DefineDisk
	@Label = "Installation Disk"
   @File IMP_PRJ.EXE @Overwrite @Out @OutDrive:@Project\*.*
   @File IMP_MSH.EXE @Overwrite @Out @OutDrive:@Meshes\*.*
   @File IMP_IMG.EXE @Overwrite @Out @OutDrive:@Subdir\*.*
@EndDisk

@Finish 
	@ChDrive @OutDrive 
	@ChDir "@Meshes" 
   @Cls

   Unpacking mesh models:

   @Spawn( "IMP_MSH" )
   @Delete( "IMP_MSH.EXE" )

   @Cls
	@ChDir "@Project" 
   Unpacking project file:

   @Spawn( "IMP_PRJ" )
   @Delete( "IMP_PRJ.EXE" )

	@ChDir "@Subdir" 

   @Spawn( "IMP_IMG" )
   @Delete( "IMP_IMG.EXE" )

	@Cls
   @Name has been successfully installed


	@Pause

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

