home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 1995 January / pcw-0195.iso / demos / simon / install.dat < prev    next >
Text File  |  1994-12-31  |  5KB  |  172 lines

  1. /*
  2.  *      FILE:Install.dat
  3.  *
  4.  *      DESC:
  5.  *           Simon The Sorcerer Installer  
  6.  *              
  7.  *              
  8.  */
  9.  
  10. @DefineProject
  11.     @Name           = "Simon the Sorcerer (The Demo)"
  12.     @Version        = "1.00"
  13.     @Subdir         = "SIDEMO"    
  14.     @OutDrive    = C
  15. @EndProject
  16.  
  17. @DefineVars
  18.     @Integer @CopyGame =0
  19.     @Integer @SizeNeeded =2000000
  20.     @Integer @Temp =0
  21. @EndVars
  22.  
  23.  
  24. @Display
  25.     @Cls
  26.  
  27.     @MoveCStr(2,20,95,"╔═══════════════════════════════╗")
  28.     @MoveCStr(3,20,95,"║ Simon the Sorcerer (The Demo) ║")
  29.     @MoveCStr(4,20,95,"╚═══════════════════════════════╝")
  30.     @MoveCStr(5,22, 0,"                                 ")
  31.     @MoveCStr(3,53,0,"  ")
  32.     @MoveCStr(4,53,0,"  ")
  33.     @Move(6,0)
  34.  
  35.     This program will install @Name onto 
  36.     your computer.
  37.  
  38.     You may press the [Esc] key at any time to abort the installation.
  39.     INSTALL will ask you several questions before installing the
  40.     software to your hard drive.
  41.  
  42. @Pause
  43. @EndDisplay
  44.  
  45.  @GetOutDrive @LocalWindow(14,36)
  46.     @Suppress A
  47.     @Suppress B
  48.     @Cls
  49.  
  50.     @MoveCStr(2,20,95,"╔═══════════════════════════════╗")
  51.     @MoveCStr(3,20,95,"║ Simon the Sorcerer (The Demo) ║")
  52.     @MoveCStr(4,20,95,"╚═══════════════════════════════╝")
  53.     @MoveCStr(5,22, 0,"                                 ")
  54.     @MoveCStr(3,53,0,"  ")
  55.     @MoveCStr(4,53,0,"  ")
  56.     @Move(6,0)
  57.  
  58.     On which disk drive do you wish to install
  59.     @Name
  60.  
  61.  
  62. @EndOutDrive
  63.  
  64. @GetSubdir
  65.     @Cls
  66.     @MoveCStr(2,20,95,"╔═══════════════════════════════╗")
  67.     @MoveCStr(3,20,95,"║ Simon the Sorcerer (The Demo) ║")
  68.     @MoveCStr(4,20,95,"╚═══════════════════════════════╝")
  69.     @MoveCStr(5,22, 0,"                                 ")
  70.     @MoveCStr(3,53,0,"  ")
  71.     @MoveCStr(4,53,0,"  ")
  72.     @Move(6,0)
  73.  
  74.     @Name will now be installed to 
  75.     @Subdir subdirectory. To change the name of the subdirectory 
  76.     type the new name in the space below. To accept the current 
  77.     name press [Enter]
  78.  
  79.          @Prompt = "Which subdirectory ([Enter] = @Subdir)"
  80. @EndSubdir
  81.  
  82.  
  83. @FlushOptions()
  84.  
  85.  
  86. @If(@DiskFree(@OutDrive)>@SizeNeeded)
  87. @GetOption @LocalWindow(9,65)
  88.        @Option 1="Yes"
  89.        @Option 2="No"
  90.  
  91.     @Cls
  92.     @MoveCStr(2,20,95,"╔═══════════════════════════════╗")
  93.     @MoveCStr(3,20,95,"║ Simon the Sorcerer (The Demo) ║")
  94.     @MoveCStr(4,20,95,"╚═══════════════════════════════╝")
  95.     @MoveCStr(5,22, 0,"                                 ")
  96.     @MoveCStr(3,53,0,"  ")
  97.     @MoveCStr(4,53,0,"  ")
  98.     @Move(6,0)
  99.  
  100.     Do you wish to copy the game file to your hard disk?
  101.  
  102.  
  103.  
  104.   (It will take up approx 1.2 MB but will improve performance.)
  105.  
  106. @EndOption
  107.     @If(1[=@Option) @CopyGame = 1
  108.     @EndIf
  109. @EndIf
  110.  
  111. @DefineDisk @Label="Disk 1"
  112.     @If(@CopyGame)
  113.         @File DEMOS\SIMON\SIMON.GME @Out SIMON.GME
  114.     @EndIf
  115.     @File DEMOS\SIMON\EFFECTS.VOC @Out EFFECTS.VOC
  116.     @File DISK.ID @Out SAVES\\DISK.ID
  117.     @File DEMOS\SIMON\MT_FM.IBK @Out MT_FM.IBK
  118.     @File DEMOS\SIMON\RUNVGA.EXE @Out RUNVGA.EXE
  119.     @File DEMOS\SIMON\SETD.SND @Out SETD.SND
  120.     @File DEMOS\SIMON\SETUP.EXE @Out SETUP.EXE
  121.     @File DEMOS\SIMON\TBLLIST @Out TBLLIST
  122.     @File DEMOS\SIMON\STRIPPED.TXT @Out STRIPPED.TXT
  123.     @File DEMOS\SIMON\GAMEPC @Out GAMEPC
  124.     @File DEMOS\SIMON\ICON.DAT @Out ICON.DAT
  125.     @File DEMOS\SIMON\MT_FM.IBK @Out MT_FM.IBK
  126.     @BeginLib DRIVERS.RED
  127.         @File ADLIBG.COM @Size 5536
  128.         @File SBLASTER.COM @Size 4560
  129.         @File SBCLONE.COM @Size 4576
  130.         @File SBPRO.COM @Size 4704
  131.         @File SOURCE.COM @Size 3424
  132.         @File PAUDIO.COM @Size 5376
  133.         @File GF166.COM @Size 5504
  134.         @File LSIZE.COM @Size 3328
  135.         @File SB16.COM @Size 4544
  136.         @File PAS16.COM @Size 5440
  137.         @File TANSLTL.COM @Size 3200
  138.     @EndLib
  139. @EndDisk
  140.  
  141. @Finish
  142.     @ChDrive @OutDrive
  143.     @ChDir "@Subdir"
  144.     @Write("Simon.Bat","wt","@@Echo Off\n")
  145.     @Write(,,"if not exist Soundrv.Com echo Please run SETUP to setup your sound card for digital sound effects and music.\n")
  146.     @Write(,,"if not exist Soundrv.Com goto end\n")
  147.     @Write(,,"Soundrv\n")
  148.     @Write(,,"Runvga /@OutDrive /0 @StartupDrive:\\@StartupDir\\simon.voc ")
  149.     @Write(,,"effects.voc ")
  150.     @If(!@CopyGame)
  151.     @Write(,,"@StartupDrive:\\@StartupDir\\")
  152.     @EndIf
  153.     @Write(,,"simon.gme\n")
  154.     @Write(,,"Soundrv u\n")
  155.     @Write(,,":end\n")
  156.     @Copy("Simon.bat","SimonBat");
  157.     @Spawn("SETUP")
  158.  
  159.     @Cls
  160.     @If(@Spawn()==0)
  161.     @Name has been successfully installed 
  162.     and setup for your computer. Please type 'SIMON' to play the game.
  163.  
  164.     @Else
  165.     @Name has been installed but not setup 
  166.     for your computer. Please type 'SETUP' to setup the digital sounds 
  167.     and music.
  168.  
  169.     @EndIf
  170.     @Pause
  171. @EndFinish
  172.