home *** CD-ROM | disk | FTP | other *** search
/ PC Gamer 7 / 1995-06_Disc_7.iso / az / install.dat < prev    next >
Text File  |  1995-03-23  |  5KB  |  202 lines

  1. /*
  2.  *   FILE: 
  3.  *      AZ Demo install
  4.  */
  5.  
  6. @DefineProject
  7.     @Immediate = 1
  8.     @Name     = "Absolute Zero Demo"
  9.     @Version  = "0.1 Demo"
  10.     @OutDrive = C 
  11.     @Subdir   = "AZ"    
  12. @EndProject
  13.  
  14. @DefineVars
  15.     @Integer @Continue= 1
  16. @EndVars
  17.  
  18.  
  19. @if (@EMMavail <7000k)
  20.   @Display
  21.     Absolute Zero needs at least 7 megs of RAM free.
  22.     ------------------------------------------------
  23.     You do not currently have enogh free memory to run Absolute Zero.
  24.     You may want to consider making a boot disk. Read the "readme.txt"
  25.     file after the installation is done for further instructions.
  26.     Absolute zero will now continue installing...
  27.  
  28.     @Pause
  29.   @EndDisplay
  30. @Endif
  31.  
  32.  
  33. @Display
  34.    @Cls
  35.  
  36.     This program will install @Name on your computer. 
  37.     Simply press the [Esc] key at any time to abort the 
  38.     installation. 
  39.  
  40.     Press the ENTER key to use the default options.  Otherwise, 
  41.     type your choice and press the ENTER key.
  42.  
  43.     If you make a mistake while typing, press the BACKSPACE key
  44.     and then retype your choice.
  45.  
  46. @Pause
  47. @EndDisplay
  48.  
  49. @GetOutDrive
  50.    @Cls
  51.  
  52.  @Suppress(0,1)
  53.    
  54.  
  55.  
  56.  
  57.    On which disk drive do you wish to install @Name?
  58.  
  59. @EndOutDrive
  60.  
  61.  
  62. @GetSubdir
  63.    @Cls
  64.  
  65.     Now you need to specify the disk destination subdirectory.
  66.     This directory is the location on your hard disk where @Name
  67.     files you will be installed.
  68.  
  69.     The default is now set at @OutDrive @Subdir.
  70.  
  71.    @Prompt = "Which subdirectory ([Enter] = @Subdir)?"
  72.  
  73. @EndSubdir
  74.  
  75. @If (@DirExists("@OutDrive:\\@Subdir"))
  76.    @Display
  77.       
  78.       There's already a directory called @Subdir on disk
  79.       @OutDrive:!  Please choose another name for the
  80.       AZ installation directory, or change the name of the
  81.       @Subdir directory and restart this installation.
  82.       Aborting installation...
  83.  
  84.       @Pause
  85.       @Exit
  86.     @EndDisplay
  87. @EndIf
  88.  
  89. @MkDir("@Outdrive:\\@Subdir")
  90.  
  91. @GetOption @Prompt = "Demo Files"  @LocalWindow(15,35)
  92.  
  93.      Please select whether you want a full installation, taking appox.
  94.      40Meg of space or a partial installation requiring around 13Meg.
  95.  
  96.      Full installation installs both the demo of the interface and the
  97.      demo of the main game to your hard drive.  Partial installation
  98.      only installs the main game to your hard drive. You can still run
  99.      the interface but it will run slower from the CDrom-drive. 
  100.      We recommend a full installation.
  101. @Option 1600 = "FULL"
  102. @Option 1700 = "PARTIAL"
  103. @EndOption
  104.  
  105. @If(1600 [= @option) 
  106.   @if (@DiskFree (@Outdrive) < 40000k)
  107.     @if (@DiskFree (@Outdrive) < 13000k)
  108.        @Display
  109.        
  110.        @Outdrive: drive has only @DiskFree (@Outdrive) bytes free.
  111.        You need 40Meg free to do a full installation of Absolute Zero.
  112.        Free up some space in your hard drive and reinstall Absolute Zero.
  113.  
  114.  
  115.           @pause
  116.        @exit
  117.        @EndDisplay
  118.     @else
  119.        @GetOption  @LocalWindow(10,35)
  120.  
  121.        @Outdrive: drive has only @DiskFree (@Outdrive) bytes free.
  122.        You need 40Meg free to do a full installation of Absolute Zero.
  123.        However, you have enough space for a partial instalation.
  124.        The main game will be installed but the interface will run from 
  125.        the CD-drive and run slower that normal.
  126.        @ClearOption(1600)
  127.        @option  1700 = "Continue with partial installation"
  128.        @option  1600 = "               Exit"
  129.        @EndOption
  130.        @if (1600 [= @option)
  131.           @exit
  132.        @endif
  133.     @endif
  134.  @endif
  135. @endif
  136.  
  137.  
  138. @If(1700 [= @option) 
  139.   @if (@DiskFree (@Outdrive) < 13000k)
  140.     @Display
  141.  
  142.  
  143.     @Outdrive: drive has only @DiskFree (@Outdrive) bytes free. You need
  144.     13Meg free to install Absolute Zero. Free up some hard drive 
  145.     space and install Absolute Zero again. 
  146.   
  147.  
  148.           @Pause
  149.     @Exit
  150.     @EndDisplay
  151.   @endif
  152. @endif
  153.  
  154. @ChDrive(@StartupDrive)
  155. @ChDir("@StartupDir")
  156.  
  157. @DefineDisk
  158. @label = "Disk 1" 
  159. @BeginLib  Azdemo 
  160. @File *.* @Out @Outdrive:\\@Subdir\\GAME\\*.*  
  161. @EndLib
  162. @File readme.txt @Out @Outdrive:\\@Subdir\\*.* 
  163.  
  164. @If(1600 [= @option) 
  165. @File azdata\intanim.rsc  @Out @Outdrive:\\@Subdir\\GAME\\AZDATA\\*.*
  166. @File azdata\intpctr1.rsc @Out @Outdrive:\\@Subdir\\GAME\\AZDATA\\*.*
  167. @File azdata\intpctr2.rsc @Out @Outdrive:\\@Subdir\\GAME\\AZDATA\\*.*
  168. @File azdata\intsprt.rsc  @Out @Outdrive:\\@Subdir\\GAME\\AZDATA\\*.*
  169. @File azdata\tunanim1.rsc @Out @Outdrive:\\@Subdir\\GAME\\AZDATA\\*.*
  170. @File azdata\tunanim2.rsc @Out @Outdrive:\\@Subdir\\GAME\\AZDATA\\*.*
  171. @File azdata\map\mapbg.rsc @Out @Outdrive:\\@Subdir\\GAME\\AZDATA\\MAP\\*.*
  172. @File azdata\map\mapo2a.rsc  @Out @Outdrive:\\@Subdir\\GAME\\AZDATA\\MAP\\*.*
  173. @Endif
  174. @EndDisk
  175.  
  176. @if (1600 [= @option)
  177. @Write("@OutDrive:\\@Subdir\\GAME\\CONFIG.FIL","wt","@Outdrive:\\@Subdir\\GAME")
  178. @Endif
  179.  
  180. @If(1700 [= @option)
  181. @Write("@OutDrive:\\@Subdir\\GAME\\CONFIG.FIL","wt","@StartupDrive:\\AZ\\")
  182. @Endif
  183.  
  184. @Write("@OutDrive:\\@Subdir\\GAME\\azdemo.bat","wt","@Outdrive:\\@Subdir\\GAME\\azif\n")
  185. @Write("@OutDrive:\\@Subdir\\GAME\\azdemo.bat","at","@Outdrive:\\@Subdir\\GAME\\azgame\n")
  186.  
  187. @Finish
  188.    @Cls
  189.  
  190.    @Name is finished installing!  Please take a moment 
  191.    to check the README.TXT file for instructions and comments.
  192.  
  193.    @Pause
  194.  
  195. @ChDrive(@Outdrive)
  196. @ChDir("@Subdir")
  197.  
  198. @execute("edit","readme.txt")
  199.  
  200. @EndFinish
  201.  
  202.