home *** CD-ROM | disk | FTP | other *** search
- ;;WINDOWS=====================================================================
- ;;
- ;; Copyright '93, '94 Advanced Gravis Computer Technology Ltd.
- ;; All Rights Reserved
- ;;
- ;; YOU MUST INSTALL THIS SOFTWARE FROM YOUR MAIN ULTRASOUND DISKS
- ;;
- ;;===========================================================================
- ;;
- ;; **WINDOWS** INSTALL = NOTE: This is used by parent script to determine
- ;; if we need to determine where Windows is.
- ;; If it isn't here on line two then the parent
- ;; script will not determine this before calling
- ;; the child process
- ;;
- ;;===========================================================================
- ;; Title: Gravis UltraSound Bonus Install
- ;; Date: 03/02/94
- ;;
- ;; Purpose: Base script to configure bonus software installed
- ;;
- ;; Revisions: Allow user to selectivley install bonus software
- ;; 1.6 - 06/24/94 - taken out referenced to gsetup 'cause not used by
- ;; epic pinball anymore
- ;; 07/11/94 - added references to instgrps to create intro to midi
- ;; icons, etc
- ;; Limitations: a) Can not call procedures in parent script
- ;; b) Can only access variables of parent script
- ;; c) Can only modify the following variables:
- ;; [Number7] thru [Number9]
- ;; [String7] thru [String9]
- ;; [Point8] thru [Point9]
- ;; [YesOrNo9]
- ;; [ReadmeName]
- ;;
- ;; Todo: Test this on a non windows setup
- ;; Add in more bonus software
- ;;
- ;;===========================================================================
-
- ClearScreen
-
- TextBox WhiteOnBlue @xy(Center,5)
- Use the space bar to toggle the Bonus software you do not want to install.
- EndTextBox
-
- SetBottomLineAttrTo YellowOnRed
- SetBottomLineTo " Press <RETURN> to Accept and Proceed with Installation "
-
- GetMenuChoice WhiteOnLightBlue @xy(Center,9) PreselectAll Highlight 1 UseHeader "Bonus Software Menu"
- MidiSoft Recording Session
- ; Music composition and recording sequencing program (Windows)
- Power Chords
- ; Guitar based music sequencer and drum machine (Windows)
- Wave Lite
- ; Wave editor (Windows)
- Sound Station
- ; Multimedia stereo component system and mixer (Windows)
- UltraSound Studio
- ; Digital recording studio (DOS)
- Epic Pinball
- ; Fast action game with dynamic UltraSound sound (DOS)
- EndGetMenuChoice
-
- InCase Choice is
- =1: QueFileGroup 1 IfNewer IfNotEqual
- =2: QueFileGroup 2 IfNewer IfNotEqual
- =3: QueFileGroup 3 IfNewer IfNotEqual
- =4: QueFileGroup 4 IfNewer IfNotEqual
- =5: QueFileGroup 5 IfNewer IfNotEqual
- =6: QueFileGroup 6 IfNewer IfNotEqual
- EndInCase
-
-
- [CurQueSize] := QueSize
-
- ClearScreen
- Do InstallWhere
-
- Logging On
- SetLogFileTo [InstallationDirectory]\INSTALL.LOG
- SetBottomLineAttrTo WhiteOnBlue
- SetBottomLineTo " Remember to mail in your UltraSound registration! "
-
- ClearScreen
- GetQuedFiles ShowJustOne
- Logging Off
-
- SetBottomLineAttrTo WhiteOnBlue
- SetBottomLineTo "Configuring DOS and Windows applications... "
-
- ModifyTextFile [WinDir]\INSTGRPS.INI Quietly
- InSection [general]
- AddOrChangeLineWith (AppName=,,) as "AppName=Gravis UltraSound" at End
- InSection [groups]
- AddOrChangeLineWith (1=,,) as "1=Gravis UltraSound" at End
- EndModifyTextFile
-
- If FileExists [InstallationDirectory]\SESSION\SESSION.EXE
- ModifyTextFile [WinDir]\INSTGRPS.INI Quietly
- InSection [group 1]
- AddOrChangeLineWith (0=,,) as "0=[InstallationDirectory]\SESSION\SESSION.EXE, MIDISoft Recording Session" At End
- AddOrChangeLineWith (6=,,) as "6=WINHELP -i INTRO_NOTATION [InstallationDirectory]\SESSION\INTRO.HLP, Introduction to Musical Notation" At End
- AddOrChangeLineWith (7=,,) as "7=WINHELP -i INTRO_MIDI [InstallationDirectory]\SESSION\INTRO.HLP, Introduction to MIDI" At End
- AddOrChangeLineWith (8=,,) as "8=WINHELP -i INTRO_GENERAL_MIDI [InstallationDirectory]\SESSION\INTRO.HLP, General MIDI" At End
- EndModifyTextFile
- EndIf
-
- If FileExists [InstallationDirectory]\PWRCHORD\POWCHORD.EXE
- ModifyTextFile [WinDir]\INSTGRPS.INI Quietly
- InSection [group 1]
- AddOrChangeLineWith (1=,,) as "1=[InstallationDirectory]\PWRCHORD\POWCHORD.EXE, Power Chords" At End
- AddOrChangeLineWith (2=,,) as "2=[InstallationDirectory]\PWRCHORD\POWCHORD.EXE TUTOR1.SCR, Power Chords Tutorial" At End
- AddOrChangeLineWith (3=,,) as "3=[InstallationDirectory]\PWRCHORD\POWCHORD.EXE DEMO.SCR, Power Chords Demo" At End
- EndModifyTextFile
- EndIf
-
- If FileExists [InstallationDirectory]\WAVELITE\WAVE.EXE
- ModifyTextFile [WinDir]\INSTGRPS.INI Quietly
- InSection [group 1]
- AddOrChangeLineWith (4=,,) as "4=[InstallationDirectory]\WAVELITE\WAVE.EXE, WaveLite" At End
- EndModifyTextFile
- EndIf
-
- If FileExists [InstallationDirectory]\SSTATION\SSTATION.EXE
- ModifyTextFile [WinDir]\INSTGRPS.INI Quietly
- InSection [group 1]
- AddOrChangeLineWith (5=,,) as "5=[InstallationDirectory]\SSTATION\SSTATION.EXE, Sound Station" At End
- EndModifyTextFile
- EndIf
-
- If FileExists [InstallationDirectory]\INSTGRPS.EXE .AND. .NOT. [WinDir] = BlankString
- ExamineTextFile [WinDir]\WIN.INI Quietly
- [String9] := LineWith (run,=,)
- EndModifyTextFile
-
- If [String9] = Blankstring
- [String9] := "run="
- EndIf
- If .NOT. [String9] Contains INSTGRPS
- [String7] := [String9] [InstallationDirectory]\INSTGRPS.EXE
-
- ModifyTextFile [WinDir]\WIN.INI Quietly
- InSection [WINDOWS]
- AddOrChangeLineWith (run,=,) as "[String7]" at End
- EndModifyTextFile
- EndIf
- EndIf
-
- If FileExists [InstallationDirectory]\WAVELITE\WAVE.EXE
- ModifyTextFile [InstallationDirectory]\WAVELITE\WAVE.INI Quietly
- AddOrChangeLineWith ([WaveForWindows],,) as "[WaveForWindows]" at End
- InSection [WaveForWindows]
- AddOrChangeLineWith (PlayBufferSize=,,) as "PlayBufferSize=32768" at End
- AddOrChangeLineWith (RecordBufferSize=,,) as "RecordBufferSize=32768" at End
- AddOrChangeLineWith (MeterBufferSize=,,) as "MeterBufferSize=1024" at End
- AddOrChangeLineWith (MaxWaveBuffs=,,) as "MaxWaveBuffs=3" at End
- AddOrChangeLineWith (ObtainedMaxWaveBuffs=,,) as "ObtainedMaxWaveBuffs=3" at End
- AddOrChangeLineWith (CurrentInDevice=,,) as "CurrentInDevice=0" at End
- AddOrChangeLineWith (CurrentOutDevice=,,) as "CurrentOutDevice=0" at End
- EndModifyTextFile
- EndIf
-
- If FileExists [InstallationDirectory]\PWRCHORD\POWCHORD.INI
- CopyFiles From [InstallationDirectory]\PWRCHORD to [WinDir] Quietly
- POWCHORD.INI
- EndCopyFiles
- DeleteFiles from [InstallationDirectory]\PWRCHORD Quietly
- POWCHORD.INI
- EndDeleteFiles
- EndIf
-
- If FileExists [InstallationDirectory]\SSTATION\SNDSTAT.INI
- CopyFiles From [InstallationDirectory]\SSTATION to [WinDir] Quietly
- SNDSTAT.INI
- EndCopyFiles
- DeleteFiles from [InstallationDirectory]\SSTATION Quietly
- SNDSTAT.INI
- EndDeleteFiles
- ModifyTextFile [WinDir]\SNDSTAT.INI Quietly
- AddOrChangeLineWith (MIDIDir=,,) as "MIDIDir=[InstallationDirectory]\SSTATION" at End
- AddOrChangeLineWith (WaveDir=,,) as "WaveDir=[InstallationDirectory]\SSTATION" at End
- AddOrChangeLineWith (WaveRecDir=,,) as "WaveRecDir=[InstallationDirectory]\SSTATION" at End
- EndModifyTextFile
- EndIf
-
-
- SetBottomLineAttrTo WhiteOnBlue
- SetBottomLineTo " Remember to mail in your UltraSound registration! "
-
- Procedure InstallWhere
- :Point4
- [UltraDIR] := EnvironmentStringFor ULTRADIR
-
- If [UltraDIR] = Blankstring
- DetermineInstallationDrive [CurQueSize] RequireFixed ConfirmRAM AllowNetwork ShowDrivesWithSpace
- [UltraDIR] := InstallationDrive:\ULTRASND
- Else
- TextBox WhiteOnBlue @xy(Center,19)
- NOTE: You are updating from a previous installation. Only those files
- which are newer or have changed since your last install will be copied.
- EndTextBox
- EndIf
-
- SetBottomLineAttrTo YellowOnRed
- SetBottomLineTo " Press <RETURN> to Accept and Proceed with Installation "
-
- DetermineInstallationDirectory [UltraDIR] [CurQueSize] RequireFixed
-
- If [UltraDir] = Blankstring
- Dialog PressAnyKey WhiteOnBlue @xy(Center,Center) UseHeader "No Installation Directory Selected"
- You must choose a directory to install the UltraSound Software.
- EndDialog
- Goto Point4
- EndIf
-
-
- [Number9] := FreeSpaceOnDrive InstallationDrive
- [Number9] := [Number9] + 2000000
- If DriveIsDoubleSpace InstallationDrive .AND. [Number9] < [CurQueSize]
- DO InstStatus
- Dialog [YesOrNo1] WhiteOnBlue @xy(Center,Center) UseHeader "Double Space Drive Detected"
- Programs such as STACKER and DOUBLE SPACE may not
- accurately report the true drive space remaining.
- You have selected to install the UltraSound software
- to such a drive. This drive may have just enough
- space for the install.
-
- .cAre you sure you wish to continue?
- EndDialog
- SetBottomLineAttrTo YellowOnRed
- SetBottomLineTo " Press <RETURN> to Accept and Proceed with Installation "
- If [YesOrNo1] = NoCharacter
- GOTO Point4
- EndIf
- EndIf
-
- EndProcedure
-
- Return
-
-