home *** CD-ROM | disk | FTP | other *** search
/ CD-ROM Interactive 2 / CDROMAG2.iso / pc / gallery / simon / install.dat < prev    next >
Encoding:
INSTALL Professional project  |  1994-09-27  |  4.5 KB  |  174 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.         
  114.         @File GALLERY\SIMON\SIMON.GME @Out SIMON.GME
  115.     @EndIf
  116.     @File GALLERY\SIMON\EFFECTS.VOC @Out EFFECTS.VOC
  117.     @File DISK.ID @Out SAVES\\DISK.ID
  118.     @File GALLERY\SIMON\MT_FM.IBK @Out MT_FM.IBK
  119.     @File GALLERY\SIMON\RUNVGA.EXE @Out RUNVGA.EXE
  120.     @File GALLERY\SIMON\SETD.SND @Out SETD.SND
  121.     @File GALLERY\SIMON\SETUP.EXE @Out SETUP.EXE 
  122.     @File GALLERY\SIMON\TBLLIST @Out TBLLIST
  123.     @File GALLERY\SIMON\STRIPPED.TXT @Out STRIPPED.TXT
  124.     @File GALLERY\SIMON\GAMEPC @Out GAMEPC
  125.     @File GALLERY\SIMON\ICON.DAT @Out ICON.DAT
  126.     @File GALLERY\SIMON\MT_FM.IBK @Out MT_FM.IBK
  127.  
  128.     @BeginLib DRIVERS.RED
  129.         @File ADLIBG.COM @Size 5536
  130.         @File SBLASTER.COM @Size 4560
  131.         @File SBCLONE.COM @Size 4576
  132.         @File SBPRO.COM @Size 4704
  133.         @File SOURCE.COM @Size 3424
  134.         @File PAUDIO.COM @Size 5376
  135.         @File GF166.COM @Size 5504
  136.         @File LSIZE.COM @Size 3328
  137.         @File SB16.COM @Size 4544
  138.         @File PAS16.COM @Size 5440
  139.         @File TANSLTL.COM @Size 3200
  140.     @EndLib
  141. @EndDisk
  142.  
  143. @Finish
  144.     @ChDrive @OutDrive
  145.     @ChDir "@Subdir"
  146.     @Write("Simon.Bat","wt","@@Echo Off\n")
  147.     @Write(,,"if not exist Soundrv.Com echo Please run SETUP to setup your sound card for digital sound effects and music.\n")
  148.     @Write(,,"if not exist Soundrv.Com goto end\n")
  149.     @Write(,,"Soundrv\n")
  150.     @Write(,,"Runvga /@OutDrive /0 @StartupDrive:\\@StartupDir\\simon.voc ")
  151.     @Write(,,"effects.voc ")
  152.     @If(!@CopyGame)
  153.     @Write(,,"@StartupDrive:\\@StartupDir\\")
  154.     @EndIf
  155.     @Write(,,"simon.gme\n")
  156.     @Write(,,"Soundrv u\n")
  157.     @Write(,,":end\n")
  158.     @Copy("Simon.bat","SimonBat");
  159.     @Spawn("SETUP")
  160.  
  161.     @Cls
  162.     @If(@Spawn()==0)
  163.     @Name has been successfully installed 
  164.     and setup for your computer. Please type 'SIMON' to play the game.
  165.  
  166.     @Else
  167.     @Name has been installed but not setup 
  168.     for your computer. Please type 'SETUP' to setup the digital sounds 
  169.     and music.
  170.  
  171.     @EndIf
  172.     @Pause
  173. @EndFinish
  174.