home *** CD-ROM | disk | FTP | other *** search
/ CD-ROM Interactive 3 / CDROMAG3.iso / pc / gallery / dreamweb / install.dat < prev    next >
Encoding:
INSTALL Professional project  |  1994-09-21  |  4.2 KB  |  175 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.     @InDrive    = A
  16. @EndProject
  17.  
  18. @DefineVars
  19.     @Integer @CopyGame =0
  20.     @Integer @SizeNeeded =2000000
  21.     @Integer @Temp =0
  22. @EndVars
  23.  
  24.  
  25. @Display
  26.     @Cls
  27.  
  28.     @MoveCStr(2,20,95,"╔═══════════════════════════════╗")
  29.     @MoveCStr(3,20,95,"║ Simon the Sorcerer (The Demo) ║")
  30.     @MoveCStr(4,20,95,"╚═══════════════════════════════╝")
  31.     @MoveCStr(5,22, 0,"                                 ")
  32.     @MoveCStr(3,53,0,"  ")
  33.     @MoveCStr(4,53,0,"  ")
  34.     @Move(6,0)
  35.  
  36.     This program will install @Name onto 
  37.     your computer.
  38.  
  39.     You may press the [Esc] key at any time to abort the installation.
  40.     INSTALL will ask you several questions before installing the
  41.     software to your hard drive.
  42.  
  43. @Pause
  44. @EndDisplay
  45.  
  46.  @GetOutDrive @LocalWindow(14,36)
  47.     @Suppress A
  48.     @Suppress B
  49.     @Cls
  50.  
  51.     @MoveCStr(2,20,95,"╔═══════════════════════════════╗")
  52.     @MoveCStr(3,20,95,"║ Simon the Sorcerer (The Demo) ║")
  53.     @MoveCStr(4,20,95,"╚═══════════════════════════════╝")
  54.     @MoveCStr(5,22, 0,"                                 ")
  55.     @MoveCStr(3,53,0,"  ")
  56.     @MoveCStr(4,53,0,"  ")
  57.     @Move(6,0)
  58.  
  59.     On which disk drive do you wish to install
  60.     @Name
  61.  
  62.  
  63. @EndOutDrive
  64.  
  65. @GetSubdir
  66.     @Cls
  67.     @MoveCStr(2,20,95,"╔═══════════════════════════════╗")
  68.     @MoveCStr(3,20,95,"║ Simon the Sorcerer (The Demo) ║")
  69.     @MoveCStr(4,20,95,"╚═══════════════════════════════╝")
  70.     @MoveCStr(5,22, 0,"                                 ")
  71.     @MoveCStr(3,53,0,"  ")
  72.     @MoveCStr(4,53,0,"  ")
  73.     @Move(6,0)
  74.  
  75.     @Name will now be installed to 
  76.     @Subdir subdirectory. To change the name of the subdirectory 
  77.     type the new name in the space below. To accept the current 
  78.     name press [Enter]
  79.  
  80.          @Prompt = "Which subdirectory ([Enter] = @Subdir)"
  81. @EndSubdir
  82.  
  83.  
  84. @FlushOptions()
  85.  
  86.  
  87. @If(@DiskFree(@OutDrive)>@SizeNeeded)
  88. @GetOption @LocalWindow(9,65)
  89.        @Option 1="Yes"
  90.        @Option 2="No"
  91.  
  92.     @Cls
  93.     @MoveCStr(2,20,95,"╔═══════════════════════════════╗")
  94.     @MoveCStr(3,20,95,"║ Simon the Sorcerer (The Demo) ║")
  95.     @MoveCStr(4,20,95,"╚═══════════════════════════════╝")
  96.     @MoveCStr(5,22, 0,"                                 ")
  97.     @MoveCStr(3,53,0,"  ")
  98.     @MoveCStr(4,53,0,"  ")
  99.     @Move(6,0)
  100.  
  101.     Do you wish to copy the game file to your hard disk?
  102.  
  103.  
  104.  
  105.   (It will take up approx 1.2 MB but will improve performance.)
  106.  
  107. @EndOption
  108.     @If(1[=@Option) @CopyGame = 1
  109.     @EndIf
  110. @EndIf
  111.  
  112. @System("subst a: @StartupDrive:\\@StartupDir")
  113. @DefineDisk @Label="Disk 1"
  114.     @If(@CopyGame)
  115.         @File SIMON.GME
  116.     @EndIf
  117.     @File EFFECTS.VOC
  118.     @File DISK.ID @Out SAVES\\DISK.ID
  119.     @File MT_FM.IBK
  120.     @File RUNVGA.EXE
  121.     @File SETD.SND
  122.     @File SETUP.EXE
  123.     @File TBLLIST
  124.     @File STRIPPED.TXT
  125.     @File GAMEPC
  126.     @File ICON.DAT
  127.     @File MT_FM.IBK
  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.     @System("subst a: /d")
  145.     @ChDrive @OutDrive
  146.     @ChDir "@Subdir"
  147.     @Write("Simon.Bat","wt","@@Echo Off\n")
  148.     @Write(,,"if not exist Soundrv.Com echo Please run SETUP to setup your sound card for digital sound effects and music.\n")
  149.     @Write(,,"if not exist Soundrv.Com goto end\n")
  150.     @Write(,,"Soundrv\n")
  151.     @Write(,,"Runvga /@OutDrive /0 @StartupDrive:\\@StartupDir\\simon.voc ")
  152.     @Write(,,"effects.voc ")
  153.     @If(!@CopyGame)
  154.     @Write(,,"@StartupDrive:\\@StartupDir\\")
  155.     @EndIf
  156.     @Write(,,"simon.gme\n")
  157.     @Write(,,"Soundrv u\n")
  158.     @Write(,,":end\n")
  159.     @Copy("Simon.bat","SimonBat");
  160.     @Spawn("SETUP")
  161.  
  162.     @Cls
  163.     @If(@Spawn()==0)
  164.     @Name has been successfully installed 
  165.     and setup for your computer. Please type 'SIMON' to play the game.
  166.  
  167.     @Else
  168.     @Name has been installed but not setup 
  169.     for your computer. Please type 'SETUP' to setup the digital sounds 
  170.     and music.
  171.  
  172.     @EndIf
  173.     @Pause
  174. @EndFinish
  175.