home *** CD-ROM | disk | FTP | other *** search
INI File | 1996-12-20 | 9.9 KB | 521 lines |
- [Setup]
- SetupSize=840
- BillboardSize=0
- CanInstallDOS=No
-
- [Requirements]
- SetupVer=3.2.2.1
- Colors=256
- MemKB=12000
- PhysicalMem=12000
- VideoSpeed=300
- Wave=2
- MIDI=0
- CPU=486-66
- WinVer=310
- ScreenWidth=640
- ScreenHeight=480
- Joystick=0
- Printer=0
- CDROM=2
-
- [Ident]
- Version=1
- PatchVersion=1.0.0.1
- ProductID=32174
-
- [Files]
- *DESTDIR\RESOURCE.WIN,NOARCHIVE,1,540,1
-
- [Dialogs]
- ;
- ; Notification of success
- ;
- BEGIN 0,AskWin32sInstall
- AskWin32sInstallTitle
- 1, AskWin32sInstallText
- 1, AskWin32sInstall2Text
- 12, YESText, (), FLAG41
- 13, NOText
- END
- ;
- BEGIN 0,AskWin32sUpgrade
- AskWin32sUpgradeTitle
- 1, AskWin32sUpgradeText
- 1, AskWin32sUpgrade2Text
- 1, AskWin32sUpgrade3Text
- 12, YESText, (), FLAG51
- 13, NOText
- END
- ;
- BEGIN 0,AskWinGInstall
- AskWinGInstallTitle
- 1, AskWinGInstallText
- 1, AskWinGInstall2Text
- 12, YESText, (), FLAG61
- 13, NOText
- END
- ;
- BEGIN 0,AskWinGUpgrade
- AskWinGUpgradeTitle
- 1, AskWinGUpgradeText
- 12, YESText, (), FLAG71
- 13, NOText
- END
- ;
- BEGIN 0,AskRegister
- AskRegisterTitle
- 1, AskRegisterText
- 1, AskRegister2Text
- 12, YESText, (), FLAG7
- 13, NOText
- END
- ;
- BEGIN 1,NotifyWin32sInstall
- NotifyWin32sInstallTitle
- 1, NotifyWin32sInstallText
- 10, OKText
- END
- ;
- BEGIN 1,NotifyWin32sUpgrade
- NotifyWin32sUpgradeTitle
- 1, NotifyWin32sUpgradeText
- 10, OKText
- END
- ;
- BEGIN 2,NotifyWinGInstall
- NotifyWinGInstallTitle
- 1, NotifyWinGInstallText
- 10, OKText
- END
- ;
- BEGIN 2,NotifyWinGUpgrade
- NotifyWinGUpgradeTitle
- 1, NotifyWinGUpgradeText
- 10, OKText
- END
- ;
- ;
- BEGIN 3, AskRestart
- AskRestartTitle
- 1, AskRestart1Text
- 1, AskRestart2Text
- 1, AskRestart3Text
- 10, RestartNow, (), FLAG81
- 13, RestartLater
- END
- ;
- ; //////////////////////////////////
- ;
- ; Notification of success
- ;
- BEGIN 4, RestartSuccess
- RestartSuccessTitle
- 1, RestartSuccessText
- 10, OKText
- END
- ;
- BEGIN 4, Success
- SuccessTitle
- 1, SuccessText
- 10, OKText
- END
- ;
- ; Notification of failure
- ;
- BEGIN 4, GeneralFailure
- GeneralFailureTitle
- 1, GeneralFailureText
- 10, OKText
- END
- ;
- BEGIN 4, NoWin32sRestart
- NoWin32sRestartTitle
- 1, NoWin32sRestartText
- 1, NoWin32sRestart2Text
- 10, OKText
- END
- ;
- BEGIN 4, NoWinGRestart
- NoWinGRestartTitle
- 1, NoWinGRestartText
- 1, NoWinGRestart2Text
- 10, OKText
- END
- ;
- BEGIN 5, FailedWin32sInstall
- FailedWin32sInstallTitle
- 1, FailedWin32sInstallText
- 1, FailedWin32sInstall2Text
- 10, OKText, (), FLAG45
- END
- ;
- BEGIN 5, FailedWin32sUpgrade
- FailedWin32sUpgradeTitle
- 1, FailedWin32sUpgradeText
- 1, FailedWin32sUpgrade2Text
- 10, OKText
- END
- ;
- BEGIN 5, FailedWin32sWinSpace
- FailedWin32sWinSpaceTitle
- 1, FailedWin32sWinSpaceText
- 1, FailedWin32sWinSpace2Text
- 1, FailedWin32sWinSpace3Text
- 10, OKText
- END
- ;
- BEGIN 5, FailedWinGInstall
- FailedWinGInstallTitle
- 1, FailedWinGInstallText
- 1, FailedWinGInstall2Text
- 10, OKText, (), FLAG65
- END
- ;
- BEGIN 5, FailedWinGUpgrade
- FailedWinGUpgradeTitle
- 1, FailedWinGUpgradeText
- 1, FailedWinGUpgrade2Text
- 10, OKText
- END
- ;
- BEGIN 5, FailedWinGWinSpace
- FailedWinGWinSpaceTitle
- 1, FailedWinGWinSpaceText
- 1, FailedWinGWinSpace2Text
- 1, FailedWinGWinSpace3Text
- 10, OKText
- END
- ;
- BEGIN 5, FailedGameSpace
- FailedGameSpaceTitle
- 1, FailedGameSpaceText
- 1, FailedGameSpace2Text
- 10, OKText, (), FLAG80
- END
- ;
- BEGIN 5, DeclinedWin32sInstall
- DeclinedWin32sInstallTitle
- 1, DeclinedWin32sInstallText
- 1, DeclinedWin32sInstall2Text
- 10, OKText, (), FLAG42
- END
- ;
- BEGIN 5, DeclinedWin32sUpgrade
- DeclinedWin32sUpgradeTitle
- 1, DeclinedWin32sUpgradeText
- 1, DeclinedWin32sUpgrade2Text
- 10, OKText, (), FLAG52
- END
- ;
- BEGIN 5, DeclinedWinGInstall
- DeclinedWinGInstallTitle
- 1, DeclinedWinGInstallText
- 1, DeclinedWinGInstall2Text
- 10, OKText, (), FLAG62
- END
- ;
- BEGIN 5, DeclinedWinGUpgrade
- DeclinedWinGUpgradeTitle
- 1, DeclinedWinGUpgradeText
- 1, DeclinedWinGUpgrade2Text
- 10, OKText, (), FLAG72
- END
- ;
- BEGIN 6, DeclinedWin31Restart
- DeclinedWin31RestartTitle
- 1, DeclinedWin31RestartText
- 1, DeclinedWin31Restart2Text
- 10, OKText, (), FLAG82
- END
- ;
-
- [Script]
- :Begin
- ; //////////////////////////////////////
- ;
- ;The basic process:
- ;
- ; Win95:
- ; copy resource.win to destdir
- ; check for dsound.dll
- ; modify line in resource.win if dsound.dll is not found
- ;
- ; Win3.1x:
- ; copy resource.win to destdir
- ; check for dsound.dll
- ; modify line in resource.win if dsound.dll is not found
- ;
- ;
- ; FLAG usage:
- ; FLAG0 - TRUE if running on Win95
- ;
- ; FLAG10 - TRUE if Direct Sound (dsound.dll) was not found
- ;
- ; FLAG80 - TRUE if user does not have enough disk space
- ;
- ; Sections:
- ;
- ; :Begin // Start the whole thing
- ;
- ; :CommonSetup // General setup stuff
- ;
- ; :GetDestDir // Let user pick destination directory for game
- ; :NoSpace // Inform user of lack of space and subsequent failure
- ; :CopyFiles // Copy the game files onto user's hard drive
- ; :BadEnd // Inform user of general installation non-success
- ; :GoodEnd // Inform user that Setup was successful
- ; :End // The End
- ;
- ; //////////////////////////////////////
- ;
- RESETFLAGS
- ONWIN95ONLY FLAG0
- FLAG0 GOTO Win95Setup
- GOTO Win31Setup
- ;
- :Win95Setup
- ;
- :CheckDirectX
- EXIST *SYSTEMDIR\DSOUND.DLL FLAG10
- GOTO CommonSetup
- ;
- :Win31Setup
- ;
- :CheckWin32sExists
- EXIST *SYSTEMDIR\WIN32S16.DLL FLAG40
- FLAG40 GOTO CheckWin32sVersion
- GOTO AskWin32sInstallPerm
- ;
- :AskWin32sInstallPerm
- DIALOG AskWin32sInstall
- FLAG41 GOTO CheckWin32sDriveSpace
- GOTO Win32sInstallDeclined
- ;
- :CheckWin32sDriveSpace
- WINDISKSPACE_LT 2000 FLAG43
- FLAG43 GOTO NoWin32sDriveSpace
- GOTO InstallWin32s
- ;
- :NoWin32sDrivespace
- DIALOG FailedWin32sWinSpace
- GOTO CheckWinGExists
- ;
- :Win32sInstallDeclined
- DIALOG DeclinedWin32sInstall
- GOTO CheckWinGExists
- ;
- :InstallWin32s
- DIALOG NotifyWin32sInstall
- RUN 0 nosearch *SOURCEDIR\WIN32S\WSETUP.EXE
- GOTO AfterWin32sInstall
- ;
- :AfterWin32sInstall
- EXIST *SYSTEMDIR\WIN32S16.DLL FLAG44
- FLAG44 GOTO CheckWinGExists
- GOTO Win32sInstallFailed
- ;
- :Win32sInstallFailed
- DIALOG FailedWin32sInstall
- GOTO CheckWinGExists
- ;
- ; ////////////////
- ;
- :CheckWin32sVersion
- VERSIONCHECK *SYSTEMDIR\WIN32S16.DLL 1.25.0.0 FLAG50
- FLAG50 GOTO AskWin32sUpgradePerm
- GOTO CheckWinGExists
- ;
- :AskWin32sUpgradePerm
- DIALOG AskWin32sUpgrade
- FLAG51 GOTO UpgradeWin32s
- GOTO Win32sUpgradeDeclined
- ;
- :Win32sUpgradeDeclined
- DIALOG DeclinedWin32sUpgrade
- GOTO CheckWinGExists
- ;
- :UpgradeWin32s
- DIALOG NotifyWin32sUpgrade
- RUN 0 nosearch *SOURCEDIR\WIN32S\WSETUP.EXE
- GOTO AfterWin32sUpgrade
- ;
- :AfterWin32sUpgrade
- VERSIONCHECK *SYSTEMDIR\WIN32S16.DLL 1.25.0.0 FLAG54
- FLAG54 GOTO Win32sUpgradeFailed
- EXIST *SYSTEMDIR\WIN32S16.DLL FLAG53
- GOTO CheckWinGExists
- ;
- :Win32sUpgradeFailed
- DIALOG FailedWin32sUpgrade
- GOTO CheckWinGExists
- ;
- ; ////////////////
- ;
- :CheckWinGExists
- EXIST *SYSTEMDIR\WING.DLL FLAG60
- FLAG60 GOTO CheckWinGVersion
- GOTO AskWinGInstallPerm
- ;
- :AskWinGInstallPerm
- DIALOG AskWinGInstall
- FLAG61 GOTO CheckWinGDriveSpace
- GOTO WinGInstallDeclined
- ;
- :CheckWinGDriveSpace
- WINDISKSPACE_LT 500 FLAG63
- FLAG63 GOTO NoWinGDriveSpace
- GOTO InstallWinG
- ;
- :NoWinGDriveSpace
- DIALOG FailedWinGWinSpace
- GOTO CommonSetup
- ;
- :WinGInstallDeclined
- DIALOG DeclinedWinGInstall
- GOTO CommonSetup
- ;
- :InstallWinG
- DIALOG NotifyWinGInstall
- RUN 0 nosearch *SOURCEDIR\WING\MSSETUP.EXE
- GOTO AfterWinGInstall
- ;
- :AfterWinGInstall
- EXIST *SYSTEMDIR\WING.DLL FLAG64
- FLAG64 GOTO CommonSetup
- GOTO WinGInstallFailed
- ;
- :WinGInstallFailed
- DIALOG FailedWinGInstall
- GOTO CommonSetup
- ;
- ; ////////////////
- ;
- :CheckWinGVersion
- VERSIONCHECK *SYSTEMDIR\WING.DLL 1.0.0.37 FLAG70
- FLAG70 GOTO AskWinGUpgradePerm
- GOTO CommonSetup
- ;
- :AskWinGUpgradePerm
- DIALOG AskWinGUpgrade
- FLAG71 GOTO UpgradeWinG
- GOTO WinGUpgradeDeclined
- ;
- :WinGUpgradeDeclined
- DIALOG DeclinedWinGUpgrade
- GOTO CommonSetup
- ;
- :UpgradeWinG
- DIALOG NotifyWinGUpgrade
- RUN 0 nosearch *SOURCEDIR\WING\MSSETUP.EXE
- GOTO AfterWinGInstall
- ;
- :AfterWinGUpgrade
- VERSIONCHECK *SYSTEMDIR\WING.DLL 1.0.0.37 FLAG74
- FLAG74 GOTO WinGUpgradeFailed
- EXIST *SYSTEMDIR\WING.DLL FLAG73
- GOTO CommonSetup
- ;
- :WinGUpgradeFailed
- DIALOG FailedWinGUpgrade
- GOTO CommonSetup
- ;
- ; //////////////////////////////////////
- ;
- :CommonSetup
- ;
- :GetDestDir
- PICKDEST NoSpace
- GOTO CopyFiles
- ;
- :NoSpace
- DIALOG FailedGameSpace
- GOTO BadEnd
- ;
- :CopyFiles
- COPY
- ;
- FLAG10 ADDTOINI *DESTDIR\RESOURCE.WIN,Windows,useDirectSound,TRUE
- ADDTOINI *WINDOWSDIR\SIERRA.INI,S2Demo,InstallPath,*DESTDIR
- ADDTOINI *WINDOWSDIR\SIERRA.INI,S2Demo,CDPath,*SOURCEDIR
- GOTO ProgmanSetup
- ;
- :ProgmanSetup
- ADDPROGMANGROUP Sierra
- ADDPROGMANITEM *SOURCEDIR\RSHIVERS.EXE *DESTDIR\RESOURCE.WIN,AppTitle,*SOURCEDIR\s2demo.ico,*SOURCEDIR
- ADDPROGMANITEM *SOURCEDIR\README.WRI, ReadMeTitle
- ADDPROGMANITEM *SIERRADIR\SETUP.EXE,SetupTitle,*SIERRADIR\SETUP.EXE,*SIERRADIR
- GOTO AfterProgmanSetup
- ;
- :AfterProgmanSetup
- DIALOG AskRegister
- FLAG7 GOTO DoRegister
- GOTO CheckRestart
- ;
- :DoRegister
- REGISTER
- ;
- :CheckRestart
- FLAG14 GOTO AskRestartPerm
- FLAG23 GOTO AskRestartPerm
- FLAG35 GOTO AskRestartPerm
- FLAG44 GOTO AskRestartPerm
- FLAG53 GOTO AskRestartPerm
- FLAG64 GOTO AskRestartPerm
- FLAG73 GOTO AskRestartPerm
- FLAG12 GOTO BadEnd
- FLAG13 GOTO BadEnd
- FLAG15 GOTO BadEnd
- FLAG24 GOTO BadEnd
- FLAG32 GOTO BadEnd
- FLAG33 GOTO BadEnd
- FLAG42 GOTO BadEnd
- FLAG43 GOTO BadEnd
- FLAG45 GOTO BadEnd
- FLAG52 GOTO BadEnd
- FLAG54 GOTO BadEnd
- FLAG62 GOTO BadEnd
- FLAG63 GOTO BadEnd
- FLAG65 GOTO BadEnd
- FLAG74 GOTO BadEnd
- GOTO GoodEnd
- ;
- :AskRestartPerm
- DIALOG AskRestart
- FLAG81 GOTO DoRestart
- GOTO Win31RestartDeclined
- ;
- :DoRestart
- FLAG42 DIALOG NoWin32sRestart
- FLAG42 RESTARTWINDOWS
- FLAG43 DIALOG NoWin32sRestart
- FLAG43 RESTARTWINDOWS
- FLAG45 DIALOG NoWin32sRestart
- FLAG45 RESTARTWINDOWS
- FLAG62 DIALOG NoWinGRestart
- FLAG62 RESTARTWINDOWS
- FLAG63 DIALOG NoWinGRestart
- FLAG63 RESTARTWINDOWS
- FLAG65 DIALOG NoWinGRestart
- FLAG65 RESTARTWINDOWS
- DIALOG RestartSuccess
- FLAG 0 REBOOTSYSTEM
- RESTARTWINDOWS
- GOTO BadEnd
- ;
- :Win31RestartDeclined
- DIALOG DeclinedWin31Restart
- GOTO BadEnd
- ;
- :BadEnd
- DIALOG GeneralFailure
- GOTO End
- ;
- :GoodEnd
- DIALOG Success
- GOTO End
- ;
- :End
- END
-
-