home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MPC Wizard 3.0
/
WIZARD3_0.ISO
/
drivers
/
sound
/
dia_lxop
/
install.dat
< prev
next >
Wrap
Text File
|
1994-07-11
|
35KB
|
1,130 lines
/////////////////////////////////////////////////////////////////////////////
/* WARNING! WARNING! WARNING! WARNING! WARNING! WARNING! WARNING! WARNING!
!!!! Not For End-User To Change !!!!
This is the Installation Script file for your Installation program. You
must not modify this in any which way or else your installation process
will be destroyed.
WARNING! WARNING! WARNING! WARNING! WARNING! WARNING! WARNING! WARNING! */
/////////////////////////////////////////////////////////////////////////////
//---------------------------------------------------------------------
// INSTALL.DAT
// Purpose: Script file for SonicSound Software Installation
// Last modify date: 02/04/94 DCWC/TWH
// Update: 06/08/94 DCWC
// Included Installation for Mitsumi driver. Define the driver
// name for Mitsumi, contruct with path and pass to Setcfg.exe.
// Specify Mitsumi name as NO if not to be installed.
//
//---------------------------------------------------------------------
// This Installation Script is customizable by using only a Text Editor.
// This is the Master Copy Version for OPTi MAD16 Customer.
//
// *** Customization Information ***
// 0. Make Backup Copy of this file.
// 1. Change only Names: Company, File, Environmet Variable....
// Blocks to customize: @DefaultProject, @DefineVar and @DefineDisk
// and Text Messages.
// 2. If you change the Environment Variable, make sure your CFG file to
// use the same name. INSTALL will change the contain of that file.
// 3. Do not change the Flow Logic of the Script.
// 4. Test Run after change. make sure it still works fine.
//----------------------------------------------------------------------
@DefineProject
@Name = "SonicSound Software" // Title Bar
@Version = "2.04" // Version Number
@OutDrive = C // default installation Drive
@Subdir = "\\SONIC" // Default installation Dir
@Immediate = 1 // Immeduate On
@EndProject
//
// The following section displays the welcoming message during installation.
//
@movecstr(0,2,95,"╔════════════════════════════════════════════════════════════════════════╗")
@movecstr(1,2,95,"║ ║")
@movecstr(2,2,95,"║ ║")
@movecstr(3,2,95,"║ ║")
@movecstr(4,2,95,"╚════════════════════════════════════════════════════════════════════════╝")
@movecstr(1,10,95," Diamond Computer Systems, Inc. ")
@movecstr(2,10,95," SonicSound Audio Device Software Installation")
@movecstr(3,10,95," Version @Version")
@display
@movecstr(6,8,,"╔═════════════════════════════════════════════════════════╗")
@movecstr(7,8,,"║ ║")
@movecstr(8,8,,"╚═════════════════════════════════════════════════════════╝")
@movecstr(7,9,," Welcome to the SonicSound Installation Program")
@move(10,7,"This Install program will install @Name Version @Version ")
@move(11,7,"onto your computer system and perform the following tasks:")
@move(13,7," 1. Help setup CD-ROM interface options to your SonicSound")
@move(14,7," 2. Help setup hardware options for your SonicSound")
@move(15,7," 3. Copy all necessary drivers and sets up your system files")
@move(16,7," to run your favorite Games and Multimedia Applications.")
@Pause
@EndDisplay
@DefineVars
// CUSTOMization Info. for four DOS setup programs:
// SETBAT, SETCFG, SETM16 and WSETUP.EXE
// the following variables have to be set for the
// OEM customers if they have their own progarm names
@QString @Company = "Diamond Computers" // company name
// not yet used.
@QString @initName = "sonic" // Init progarm Prefix
@QString @DrvName = "sonicsnd.drv" // base Driver name
@QString @VxDName = "vsonic.386" // VxD name
@QString @ExtMidi = "sonicmid.drv" // external MIDI driver
@QString @EnvVar = "SONIC" // Environ. Variable
// and Config. File Name
//@QString @BackName = "MAD" // backup file extension
// not used yet.
//
// Windows Directory
//
@QString @Windir = "\\windows"
@QString @VS
@QString @WS
@Integer @getWin = 0
//
// CD variables
//
@QString @CDType
@QString @CDBase
@QString @CDIRQ = ""
@QString @CDDRQ = ""
@QString @CDTypDesc = ""
@QString @CDBasDesc = ""
@QString @CDIRQDesc = "Disabled"
@QString @CDDRQDesc = "Disabled"
@QString @Mitsumi = "NO" //Default as NO, it will be
//overwritten when user
//select Mitsumi
@QString @MSCDEXName = "MSCDEX.60" // For version 6 (default)
@QString @SetMSFlag = "0"
//
// Audio variables
//
@QString @Port = "220"
@QString @IRQ = "5"
@QString @DRQ = "1"
@Dir @windata = @Windir
@Drive @windrive = C
@Integer @CdDrv = 0
@Integer @CdRomType = 1 //If Mitsumi then different DMA
//0 means Mitsumi
//
// Temp. Query Variables
//
@Integer @choice = 0
@QString @Answer = ""
@QString @Tmp
//
// SonicSound Hardware settings
//
@QString @SBPort = "220"
@QString @SBInt = "5"
@QString @SBDma = "1"
@QString @GamePort = "Disable"
@QString @Hardware = ""
//
// System Files Update: YES/NO
//
@QString @INI = "YES"
@QString @SYS = "YES"
@QString @BAT = "YES"
@EndVars
// Select Home Directory
HOMEPATH:
GETOUTDRIVE:
@GetOutDrive
@Suppress A
@Suppress B
@movecstr(0,2,95,"╔════════════════════════════════════════════════════════════════════════╗")
@movecstr(1,2,95,"║ ║")
@movecstr(2,2,95,"╚════════════════════════════════════════════════════════════════════════╝")
@movecstr(1,4,95," SonicSound 16-Bit Audio Device Software Installation ")
@movecstr(5,9,,"╔═══════════════════════════════════════════════════════════╗")
@movecstr(6,9,,"║ ║")
@movecstr(7,9,,"║ ║")
@movecstr(8,9,,"╚═══════════════════════════════════════════════════════════╝")
@movecstr(6,11,," Select the hard disk drive where you like to install ")
@movecstr(7,11,," @Name onto.")
@LocalWindow(13,39)
@EndOutDrive
@If (@Removable)
@Display
You cannot install @Name onto a floppy drive!
Choose a hard disk drive.
@Pause
@Goto GETOUTDRIVE
@EndDisplay
@EndIf
@GetSubdir
@Cls
@movecstr(0,2,95,"╔════════════════════════════════════════════════════════════════════════╗")
@movecstr(1,2,95,"║ ║")
@movecstr(2,2,95,"╚════════════════════════════════════════════════════════════════════════╝")
@movecstr(1,4,95," SonicSound 16-Bit Audio Device Software Installation ")
@movecstr(5,9,,"╔═══════════════════════════════════════════════════════════╗")
@movecstr(6,9,,"║ ║")
@movecstr(7,9,,"║ ║")
@movecstr(8,9,,"║ ║")
@movecstr(9,9,,"╚═══════════════════════════════════════════════════════════╝")
@movecstr(6,11,,"Enter the directory name where you like to install")
@movecstr(7,11,,"@Name into. Press [Enter] to accept the ")
@movecstr(8,11,,"default directory.")
@LocalWindow(13,50)
@Prompt = "Which directory ([Enter] = @Subdir)?"
@EndSubdir
@If (@choice != 0)
@Goto REVIEWSEL
@EndIf
// Select Windows Directory
WINPATH:
@ClearGroup(a)
@ClearGroup(b)
@GetGroups
@Cls
@movecstr(0,2,95,"╔════════════════════════════════════════════════════════════════════════╗")
@movecstr(1,2,95,"║ ║")
@movecstr(2,2,95,"╚════════════════════════════════════════════════════════════════════════╝")
@movecstr(1,4,95," SonicSound 16-Bit Audio Device Software Installation ")
@movecstr(5,11,,"╔═══════════════════════════════════════════════════════╗")
@movecstr(6,11,,"║ ║")
@movecstr(7,11,,"╚═══════════════════════════════════════════════════════╝")
@movecstr(6,13,,"Do you have MS Windows installed in your system? ")
@LocalWindow(13,39)
@Set a = "Yes"
@Set b = "No"
@EndGroups
@getWin = 0
@windata = "\\WINDOWS"
@If ('a' [= @Group)
@getWin = 1
@GetOutDrive @windrive
@Suppress A
@Suppress B
@movecstr(0,2,95,"╔════════════════════════════════════════════════════════════════════════╗")
@movecstr(1,2,95,"║ ║")
@movecstr(2,2,95,"╚════════════════════════════════════════════════════════════════════════╝")
@movecstr(1,4,95," SonicSound 16-Bit Audio Device Software Installation ")
@movecstr(5,5,,"╔════════════════════════════════════════════════════════════════╗")
@movecstr(6,5,,"║ ║")
@movecstr(7,5,,"╚════════════════════════════════════════════════════════════════╝")
@movecstr(6,7,,"Select the hard disk drive where your MS Windows is located...")
@LocalWindow(13,39)
@EndOutDrive
@GetSubdir @windata
@Cls
@movecstr(0,2,95,"╔════════════════════════════════════════════════════════════════════════╗")
@movecstr(1,2,95,"║ ║")
@movecstr(2,2,95,"╚════════════════════════════════════════════════════════════════════════╝")
@movecstr(1,4,95," SonicSound 16-Bit Audio Device Software Installation ")
@movecstr(5,13,,"╔══════════════════════════════════════════════════╗")
@movecstr(6,13,,"║ ║")
@movecstr(7,13,,"╚══════════════════════════════════════════════════╝")
@movecstr(6,15,," Enter your Windows directory name below ...")
@LocalWindow(12,50)
@Prompt = "Windows Path ([Enter] = @windata)?"
@EndSubdir
@If (@DirExists("@windrive:\\@windata\\system"))
@delete ("@windrive:\\@windata\\system\\midimap.mad")
//@rename ("@windrive:\\@windata\\system\\midimap.cfg", "midimap.mad")
@Else
@Display
Your Windows path [@windrive:@windata] does not exist,
please enter your valid Windows path name.
@Pause
@windata = "\\WINDOWS"
@Goto WINPATH
@EndDisplay
@EndIf
@WS = "@windrive:\\@windata"
@Else
@WS = "No Windows Installed"
@EndIf
@If (@choice != 0)
@Goto REVIEWSEL
@EndIf
// Select CD Options
CDSETUP:
//DCWC
@ClearOption(1111)
@ClearOption(1112)
@GetOption
@cls
@movecstr(0,2,95,"╔════════════════════════════════════════════════════════════════════════╗")
@movecstr(1,2,95,"║ ║")
@movecstr(2,2,95,"╚════════════════════════════════════════════════════════════════════════╝")
@movecstr(1,4,95," SonicSound 16-Bit Audio Device Software Installation ")
@movecstr(4,8,,"╔════════════════════════════════════════════════════════════╗")
@movecstr(5,8,,"║ ║")
@movecstr(6,8,,"║ ║")
@movecstr(7,8,,"║ ║")
@movecstr(8,8,,"║ ║")
@movecstr(9,8,,"║ ║")
@movecstr(10,8,,"║ ║")
@movecstr(11,8,,"║ ║")
@movecstr(12,8,,"╚════════════════════════════════════════════════════════════╝")
@movecstr(5,11,," SonicSound CD-ROM Interface Setup")
@movecstr(6,11,," ─────────────────────────────────")
@movecstr(7,11,,"SonicSound can also be used as a CD-ROM Interface board")
@movecstr(8,11,,"If you have a CD-ROM drive which is connected to your")
@movecstr(9,11,,"SonicSound Sound Card, the answer to the following ")
@movecstr(10,11,,"question is YES.")
@movecstr(11,11,,"Do you have a CD-ROM installed with SonicSound?")
@LocalWindow(17,39)
@Option 1111 = "Yes"
@Option 1112 = "No"
@EndOption
@If (1111 [= @Option)
@CdDrv = 1
@Goto CDINSTALLED
@ElseIf (1112 [= @Option)
@CdDrv = 0
@CDTypDesc = "No CD-ROM Installed"
@CDBasDesc = "Not Applicable"
@CDIRQDesc = "Disabled"
@CDDRQDesc = "Disabled"
@SetMSFlag = "0"
@If (@choice != 0)
@Goto REVIEWSEL
@Else
@Goto HARDSETUP
@EndIf
@EndIf
CDINSTALLED:
@ClearOption(111)
@ClearOption(112)
@ClearOption(113)
@GetOption
@movecstr(0,2,95,"╔════════════════════════════════════════════════════════════════════════╗")
@movecstr(1,2,95,"║ ║")
@movecstr(2,2,95,"╚════════════════════════════════════════════════════════════════════════╝")
@movecstr(1,4,95," SonicSound 16-Bit Audio Device Software Installation ")
@movecstr(5,9,,"╔══════════════════════════════════════════════════════════╗")
@movecstr(6,9,,"║ ║")
@movecstr(7,9,,"╚══════════════════════════════════════════════════════════╝")
@movecstr(6,11,,"Please select the CD-ROM type that you are using...")
@LocalWindow(13,39)
@Option 111 = " SONY"
@Option 112 = " MITSUMI"
@Option 113 = "PANASONIC"
@EndOption
@If (111 [= @Option)
@CDType = "/T:S"
@CDTypDesc = "SONY"
@CDIRQDesc = "Disabled"
@CDDRQDesc = "Disabled"
@CDIRQ = "" //set as default first
@CDDRQ = "" //set as default first
@CdRomType = 1
@Mitsumi = "NO" //do not install
@SetMSFlag = "0"
@ElseIf (112 [= @Option)
@CDType = "/T:M"
@CDTypDesc = "MITSUMI"
@CDIRQ = "/I:10" //set as default first
@CDDRQ = "" //set as default first
@CDIRQDesc = "10"
@CDDRQDesc = "Disabled"
@CdRomType = 0
@Mitsumi = "MTMCDAE.SYS" //Install for Mitsumi
@SetMSFlag = "1"
@ElseIf (113 [= @Option)
@CDType = "/T:P"
@CDTypDesc = "PANASONIC"
@CDIRQDesc = "Disabled"
@CDDRQDesc = "Disabled"
@CDIRQ = "" //set as default first
@CDDRQ = "" //set as default first
@CdRomType = 1
@Mitsumi = "NO" //do not install
@SetMSFlag = "0"
@EndIf
DOCD:
@ClearOption(10)
@ClearOption(20)
@ClearOption(30)
@ClearOption(40)
@GetOption
@Cls
@movecstr(0,2,95,"╔════════════════════════════════════════════════════════════════════════╗")
@movecstr(1,2,95,"║ ║")
@movecstr(2,2,95,"╚════════════════════════════════════════════════════════════════════════╝")
@movecstr(1,4,95," SonicSound 16-Bit Audio Device Software Installation ")
@movecstr(5,7,,"╔═════════════════════════════════════════════════════════════╗")
@movecstr(6,7,,"║ ║")
@movecstr(7,7,,"╚═════════════════════════════════════════════════════════════╝")
@movecstr(6,9,,"Please select the Base Address for your @CDTypDesc CD-ROM...")
@LocalWindow(13,39)
@Option 30 = "340"
@Option 10 = "320"
@Option 20 = "330"
@Option 40 = "360"
@EndOption
@If (10 [= @Option)
@CDBase = "/P:320"
@CDBasDesc = "320"
@ElseIf (20 [= @Option)
@CDBase = "/P:330"
@CDBasDesc = "330"
@ElseIf (30 [= @Option)
@CDBase = "/P:340"
@CDBasDesc = "340"
@ElseIf (40 [= @Option)
@CDBase = "/P:360"
@CDBasDesc = "360"
@EndIf
//DCWC
@ClearOption(11)
@ClearOption(12)
@GetOption
@Cls
@movecstr(0,2,95,"╔════════════════════════════════════════════════════════════════════════╗")
@movecstr(1,2,95,"║ ║")
@movecstr(2,2,95,"╚════════════════════════════════════════════════════════════════════════╝")
@movecstr(1,4,95," SonicSound 16-Bit Audio Device Software Installation ")
@movecstr(4,7,,"╔═════════════════════════════════════════════════════════════╗")
@movecstr(5,7,,"║ ║")
@movecstr(6,7,,"║ ║")
@movecstr(7,7,,"║ ║")
@movecstr(8,7,,"║ ║")
@movecstr(9,7,,"║ ║")
@movecstr(10,7,,"║ ║")
@movecstr(11,7,,"╚═════════════════════════════════════════════════════════════╝")
@movecstr(5,10,,"Do you wish to proceed with the default selection of the")
@movecstr(6,10,,"Interrupts and DMA channels for your @CDTypDesc CD-ROM?")
@movecstr(7,10,,"The default settings for your @CDTypDesc CD-ROM is:")
@movecstr(9,10,," Interrupt: @CDIRQDesc")
@movecstr(10,10,," DMA Channel: @CDDRQDesc")
@LocalWindow(15,39)
@Option 11 = "Defaults"
@Option 12 = "Customize"
Choose Defaults to proceed with the default settings or Customize
to customize the Interrupts and DMA Channels.
@EndOption
@If (11 [= @Option)
@VS = "@CDType @CDBase @CDIRQ @CDDRQ"
@If (@choice != 0)
@Goto REVIEWSEL
@Else
@Goto HARDSETUP
@EndIf
@ElseIf (12 [= @Option)
@Goto DOCDIRQDRQ
@EndIf
DOCDIRQDRQ:
@ClearOption(100)
@ClearOption(200)
@ClearOption(300)
@ClearOption(400)
@ClearOption(500)
@ClearOption(600)
@ClearOption(700)
@ClearOption(1000)
@ClearOption(2000)
@ClearOption(3000)
@ClearOption(4000)
//Get CD-ROM Interrupt options
@GetOption
@Cls
@movecstr(0,2,95,"╔════════════════════════════════════════════════════════════════════════╗")
@movecstr(1,2,95,"║ ║")
@movecstr(2,2,95,"╚════════════════════════════════════════════════════════════════════════╝")
@movecstr(1,4,95," SonicSound 16-Bit Audio Device Software Installation ")
@movecstr(5,7,,"╔═════════════════════════════════════════════════════════════╗")
@movecstr(6,7,,"║ ║")
@movecstr(7,7,,"╚═════════════════════════════════════════════════════════════╝")
@movecstr(6,9,," Please select the Interrupt for your @CDTypDesc CD-ROM...")
@LocalWindow(14,39)
@If (0 == @CdRomType) //If Mitsumi
@Option 500 = " 10"
@Option 100 = " 3"
@Option 200 = " 5"
@Option 300 = " 7"
@Option 400 = " 9"
@Option 600 = " 11"
@Option 700 = "Disabled"
@Else
@Option 700 = "Disabled"
@Option 100 = " 3"
@Option 200 = " 5"
@Option 300 = " 7"
@Option 400 = " 9"
@Option 500 = " 10"
@Option 600 = " 11"
@EndIf
@EndOption
@If (100 [= @Option)
@CDIRQ = "/I:3"
@CDIRQDesc = "3"
@ElseIf (200 [= @Option)
@CDIRQ = "/I:5"
@CDIRQDesc = "5"
@ElseIf (300 [= @Option)
@CDIRQ = "/I:7"
@CDIRQDesc = "7"
@ElseIf (400 [= @Option)
@CDIRQ = "/I:9"
@CDIRQDesc = "9"
@ElseIf (500 [= @Option)
@CDIRQ = "/I:10"
@CDIRQDesc = "10"
@ElseIf (600 [= @Option)
@CDIRQ = "/I:11"
@CDIRQDesc = "11"
@ElseIf (700 [= @Option)
@CDIRQ = ""
@EndIf
//Get CD-ROM DMA Channel
@If (1 == @CdRomType) //If not Mitsumi
@GetOption
@Cls
@movecstr(0,2,95,"╔════════════════════════════════════════════════════════════════════════╗")
@movecstr(1,2,95,"║ ║")
@movecstr(2,2,95,"╚════════════════════════════════════════════════════════════════════════╝")
@movecstr(1,4,95," SonicSound 16-Bit Audio Device Software Installation ")
@movecstr(5,7,,"╔═════════════════════════════════════════════════════════════╗")
@movecstr(6,7,,"║ ║")
@movecstr(7,7,,"╚═════════════════════════════════════════════════════════════╝")
@movecstr(6,9,," Please select the DMA Channel for your @CDTypDesc CD-ROM...")
@LocalWindow(13,39)
@Option 4000 = "Disabled"
@Option 1000 = " 1"
@Option 2000 = " 2"
@Option 3000 = " 3"
@EndOption
@If (1000 [= @Option)
@CDDRQ = "/D:1"
@CDDRQDesc = "1"
@ElseIf (2000 [= @Option)
@CDDRQ = "/D:2"
@CDDRQDesc = "2"
@ElseIf (3000 [= @Option)
@CDDRQ = "/D:3"
@CDDRQDesc = "3"
@ElseIf (4000 [= @Option)
@CDDRQ = ""
@EndIf
@EndIf
@VS = "@CDType @CDBase @CDIRQ @CDDRQ"
@If (@choice != 0)
@Goto REVIEWSEL
@EndIf
HARDSETUP:
// MAD16 Hardware Initial Settings: SB mode, Port 220h, INT5, DMA1
@ClearOption(6) // Accept
@ClearOption(666) // Port 220
@ClearOption(6666) // Interrupt: 5
@ClearOption(88) // DMA 1
@ClearOption(888) // Game Port: Disable
@ClearOption(8888) // Reset All to Default
@GetOption
@cls
╔═════════════════════════════════╗
║ SonicSound Hardware Settings ║
╚═════════════════════════════════╝
This page allows you to configure your SonicSound Sound Card's Hardware
Settings. If it is the first time that you are entering this page, the
settings shown are the defaults. To make a change, select item and press
the [Enter] key. After you have made the changes you can still go back
to the default settings by selecting "Reset All to Defaults" and then
pressing the [Enter] key.
If you wish to change your SonicSound settings after Installation, the
Setup and Configuration utility "SONIC.EXE" allows you to do so. Just
type "SONIC" at the command prompt after you have reboot your system.
@LocalWindow(19,39)
@Option 6 = "Accept the Settings shown below"
@Option 666 = "I/O Port: @SBPort"
@Option 6666 = "Interrupt: @SBInt"
@Option 88 = "DMA Channel: @SBDma"
@Option 888 = "Game Port: @GamePort"
@Option 8888 = "Reset All to Default"
@EndOption
// Hardware Main Selection
@If (6 [= @Option)
@Hardware = "@SBPort @SBInt @SBDma @GamePort"
@Goto REVIEWSEL
@ElseIf (666 [= @Option)
@Goto SBPORTSEL
@ElseIf (6666 [= @Option)
@Goto SBINTSEL
@ElseIf (88 [= @Option)
@Goto SBDMASEL
@ElseIf (888 [= @Option)
@Goto GAMESEL
@ElseIf (8888 [= @Option)
@SBPort = "220"
@SBInt = "5"
@SBDma = "1"
@GamePort = "Disable"
@Goto HARDSETUP
@EndIf
SBPORTSEL:
@ClearOption(10)
@ClearOption(20)
@GetOption
@Cls
@movecstr(5,7,,"╔═════════════════════════════════════════════════════╗")
@movecstr(6,7,,"║ ║")
@movecstr(7,7,,"╚═════════════════════════════════════════════════════╝")
@movecstr(6,9,,"Select the Base Address for SonicSound ...")
@LocalWindow(13,39)
@Option 10 = "220"
@Option 20 = "240"
@EndOption
@If (10 [= @Option)
@SBPort = "220"
@Else
@SBPort = "240"
@EndIf
@Goto HARDSETUP
SBINTSEL:
@ClearOption(100)
@ClearOption(200)
@ClearOption(300)
//Get Interrupt options
@GetOption
@Cls
@movecstr(5,7,,"╔═══════════════════════════════════════════════════╗")
@movecstr(6,7,,"║ ║")
@movecstr(7,7,,"╚═══════════════════════════════════════════════════╝")
@movecstr(6,9,,"Select the Interrupt for SonicSound ...")
@LocalWindow(14,39)
@Option 100 = " 5"
@Option 200 = " 7"
//@Option 300 = " 11"
@EndOption
@If (100 [= @Option)
@SBInt = "5"
@ElseIf (200 [= @Option)
@SBInt = "7"
@Else
@SBInt = "11"
@EndIf
@Goto HARDSETUP
SBDMASEL:
//Get DMA Channel
@ClearOption(1000)
@ClearOption(2000)
@GetOption
@Cls
@movecstr(5,7,,"╔════════════════════════════════════════════════════╗")
@movecstr(6,7,,"║ ║")
@movecstr(7,7,,"╚════════════════════════════════════════════════════╝")
@movecstr(6,9,,"Select the DMA Channel for SonicSound ...")
@LocalWindow(13,39)
@Option 1000 = " 1"
@Option 2000 = " 3"
@EndOption
@If (1000 [= @Option)
@SBDma = "1"
@Else
@SBDma = "3"
@EndIf
@Goto HARDSETUP
GAMESEL:
@If ("Disable" == "@GamePort")
@GamePort = "Enable"
@Else
@GamePort = "Disable"
@EndIf
@Goto HARDSETUP
// Review Selections
//DCWC
REVIEWSEL:
@Choice = 5
@GetInteger @choice
@cls
@movecstr(0,11,,"╔════════════════════════════════════════════════════╗")
@movecstr(1,11,,"║ ║")
@movecstr(2,11,,"╚════════════════════════════════════════════════════╝")
@movecstr(1,16,," SonicSound Sound System Option Summary")
@movecstr(4,13,,"1. Your Directory: @OutDrive:\\@Subdir")
@movecstr(6,13,,"2. Windows Directory: @WS")
@movecstr(8,13,,"3. CD Options: Type = @CDTypDesc")
@movecstr(9,13,," Address = @CDBasDesc")
@movecstr(10,13,," Interrupt = @CDIRQDesc")
@movecstr(11,13,," DMA Channel = @CDDRQDesc")
@movecstr(13,13,,"4. Hardware Settings: I/O Port = @SBPort")
@movecstr(14,13,," Interrupt = @SBInt")
@movecstr(15,13,," DMA Channel = @SBDma")
@movecstr(16,13,," Game Port = @GamePort")
@movecstr(18,13,,"5. Accept all the above options.")
@Prompt="Please type (1,2,3,4) to change options or ([Enter]=5) to continue: "
@EndInteger
@If (@choice > 5)
@Goto REVIEWSEL
@ElseIf (@choice < 1)
@Goto REVIEWSEL
@ElseIf (@choice == 1)
@Goto HOMEPATH
@ElseIf (@choice == 2)
@Goto WINPATH
@ElseIf (@choice == 3)
@Goto CDSETUP
@ElseIf (@choice == 4)
@Goto HARDSETUP
@EndIf
//**************************************************************************
//This is the file copy process below. You basically change this section to
//add/delete any files you wish to copy or change the file sizes.
DEFINEDISK:
@Tmp = "@OutDrive:@Subdir"
@If (@Immediate == 1)
@If (@OSMajor == 6)
@If (@OSMinor == 0)
@MSCDEXName = "MSCDEX.60"
@ElseIf (@OSMinor == 2)
@MSCDEXName = "MSCDEX.62"
@EndIf
@ElseIf (@OSMajor == 5)
@MSCDEXName = "MSCDEX.50"
@EndIf
@DefineDisk
@Label = "Disk #1"
@BeginLib INSTALL.001
@File SONIC.EXE @Size 112756 @Out SONIC.EXE
@File SONIC.CFG @Size 449 @Out SONIC.CFG
@File SNDTEST.WAV @Size 12854 @Out SNDTEST.WAV
@File CDSETUP.SYS @Size 3645 @Out CDSETUP.SYS
@File VOLTSR.EXE @Size 5008 @Out dos\VOLTSR.EXE
@File MTMCDAE.SYS @Out MTMCDAE.SYS
@File @MSCDEXName @Out MSCDEX.EXE
@File SETM16.EXE @Out SETM16.EXE
@File SETCFG.EXE @Out SETCFG.EXE
@File SETBAT.EXE @Out SETBAT.EXE
@File WSETUP.EXE @Out WSETUP.EXE
@File SONICSND.DRV @Size 62192 @Out win\SONICSND.DRV
@File VSONIC.386 @Size 21237 @Out win\VSONIC.386
@File SONICMID.DRV @Size 13536 @Out win\SONICMID.DRV
@File MSMIXMGR.DLL @Size 12688 @Out win\MSMIXMGR.DLL
@File MIDIMAP.CFG @Size 36454 @Out win\MIDIMAP.CFG
@File OEMSETUP.INF @Size 402 @Out win\OEMSETUP.INF
@If (@getWin == 1)
@File SONICSND.DRV @Size 62192 @Out @windrive:\@windata\system\SONICSND.DRV
@File VSONIC.386 @Size 21237 @Out @windrive:\@windata\system\VSONIC.386
@File SONICMID.DRV @Size 13536 @Out @windrive:\@windata\system\SONICMID.DRV
@File MSMIXMGR.DLL @Size 12688 @Out @windrive:\@windata\system\MSMIXMGR.DLL
@File MIDIMAP.CFG @Size 36454 @Out @windrive:\@windata\system\MIDIMAP.MAD
@File README.TXT @Out @windrive:\@windata\system\README.TXT
@EndIf
@EndLib
@File README.TXT @Out dos\README.TXT
@EndDisk
@EndIf
//
//**************************************************************************
//
// Decide if want to modify system files
//
@If (@getWin == 1)
@INI = "YES"
@Else
@INI = "NO"
@EndIf
DECIDESYSTEM:
@ClearOption(6)
@ClearOption(66)
@ClearOption(666)
@ClearOption(6666)
@GetOption
@cls
╔══════════════════════════════════════╗
║ Options to Update System Files ║
╚══════════════════════════════════════╝
The Installation Program is now ready to modify your DOS/Windows System
files to make the installation complete. If changes can be made NOW
select YES for each file listed below (press [Enter] to change); else
select NO. If the Selection is
[YES], we will first BACKUP your original files before actually making
changes to them.
[NO], we will not modify your original files but create the changes to
a BACKUP file instead.
[BACKUP] files will have the same prefix but ending with a .MAD extention.
This will allow you to restore or alter your system files at a later time.
@LocalWindow(20,32)
@Option 6 = "CONFIG.SYS: @SYS"
@Option 66 = "AUTOEXEC.BAT: @BAT"
@Option 666 = "Windows Config File(SYSTEM.INI): @INI"
@Option 6666 = "CONTINUE"
@EndOption
// Hardware Main Selection
@If (6 [= @Option)
@Goto SYSSEL
@ElseIf (66 [= @Option)
@Goto BATSEL
@ElseIf (666 [= @Option)
@Goto INISEL
@ElseIf (6666 [= @Option)
@Goto SETCONFIG
@EndIf
SYSSEL:
@If ("YES" == "@SYS")
@SYS = "NO"
@Else
@SYS = "YES"
@EndIf
@Goto DECIDESYSTEM
BATSEL:
@If ("YES" == "@BAT")
@BAT = "NO"
@Else
@BAT = "YES"
@EndIf
@Goto DECIDESYSTEM
INISEL:
@If (@getWin == 1)
@If ("YES" == "@INI")
@INI = "NO"
@Else
@INI = "YES"
@EndIf
@EndIf
@Goto DECIDESYSTEM
//
// Update System Files
//
SETCONFIG:
@Display
@ChDrive @OutDrive
@ChDir "@Subdir"
@Cls
@EndDisplay
@Tmp = "@OutDrive:\\@Subdir @Mitsumi @VS"
@If (1 == @CdDrv)
@If ("YES" == "@SYS")
@Display
//@Cls
╔═════════════════════════════════╗
║ Updating CONFIG.SYS... ║
╚═════════════════════════════════╝
@If (@System("setcfg @Tmp") == 1)
//An Error has occured while modifying your Config.sys file.
//The file may
// @Pause
@EndIf
@EndDisplay
@Else
@Display
//@Cls
╔═════════════════════════════════╗
║ Creating CONFIG.MAD... ║
╚═════════════════════════════════╝
@If (@System("setcfg /n @Tmp") == 1)
//An Error has occured while modifying your Config.sys file.
//The file may
// @Pause
@EndIf
@EndDisplay
@EndIf
@EndIf
@ChDrive @OutDrive
@ChDir "@Subdir"
@Tmp = "@initName @EnvVar A@SBPort I@SBInt D@SBDma @SetMSFlag"
@If ("YES" == "@BAT")
@Display
//@Cls
╔═════════════════════════════════╗
║ Updating AUTOEXEC.BAT... ║
╚═════════════════════════════════╝
@If (@System("setbat @OutDrive:@Subdir @Tmp") == 1)
//An Error has occured while modifying your Autoexec.bat file.
//The file may
// @Pause
@EndIf
@EndDisplay
@Else
@Display
//@Cls
╔═════════════════════════════════╗
║ Creating AUTOEXEC.MAD... ║
╚═════════════════════════════════╝
@If (@System("setbat /n @OutDrive:@Subdir @Tmp") == 1)
//An Error has occured while modifying your Autoexec.bat file.
//The file may
// @Pause
@EndIf
@EndDisplay
@EndIf
@If (@getWin == 1)
@Tmp = "@DrvName @VxDName @ExtMidi @EnvVar"
@If ("YES" == "@INI") //
@Display
//@ChDrive @OutDrive
//@ChDir "@Subdir"
//@Cls
╔═════════════════════════════════╗
║ Updating SYSTEM.INI ║
╚═════════════════════════════════╝
@If (@System("wsetup @WS @Tmp") == 1)
// Update System.Ini Failed !!
// @Pause
@EndIf
@EndDisplay
@Else // create backup only for reference
@Display
//@ChDrive @OutDrive
//@ChDir "@Subdir"
//@Cls
╔═════════════════════════════════╗
║ Creating SYSTEM.MAD ║
╚═════════════════════════════════╝
@If (@System("wsetup /n @WS @Tmp") == 1)
// Update System.Ini Failed !!
// @Pause
@EndIf
@EndDisplay
@EndIf
@EndIf
// Modify MAD16.CFG file for MAD16 Hardware Settings
@Display
╔═════════════════════════════════╗
║ Cleaning Up Temp. Files... ║
╚═════════════════════════════════╝
//@ChDrive @OutDrive
//@ChDir "@Subdir"
// *** setup MAD16.CFG ***
@System("setm16 @EnvVar @Hardware");
// *** Delete our setup utilities ***
@Delete("@OutDrive:\\@Subdir\\setcfg.exe")
@Delete("@OutDrive:\\@Subdir\\setbat.exe")
@Delete("@OutDrive:\\@Subdir\\wsetup.exe")
@Delete("@OutDrive:\\@Subdir\\setm16.exe")
@EndDisplay
FINISH:
// Done.
@Display
@Cls
╔═════════════════════════════════════════════════════╗
║ SonicSound Software Installation Successful ║
╚═════════════════════════════════════════════════════╝
Installation of @Name Software is now Finished.
You must reboot your computer (Press Ctrl-Alt-Del)
to take effect to run DOS Sound Applications.
SonicSound Audio Drivers for Windows are also installed
and ready to play.
Thank you for using SonicSound Sound System.
@Pause
@EndDisplay
// Check if Application exists
@Answer = "N"
@If (@getWin == 1)
@If (@Exists("@InDrive:\\setup.exe"))
@Answer = "Y"
@GetString @Answer
╔═════════════════════════════════════════════════════╗
║ Install Windows Sound Application ║
╚═════════════════════════════════════════════════════╝
Windows Application [Multimedia Sound Studio] is shipped
with this diskette. If you wish to install the application
now, the answer to the following question is "Y". After the
installation is complete, you must exit Windows and REBOOT
your computer if you wish to play games in DOS.
@Prompt = "Do you want to install Sound Studio Now (Y/N) ? (Enter=Y) "
@EndString
@EndIf
@EndIf
// Last Block, Install Application if there is One
@Finish
@If ("Y" == "@Answer")
@Execute("win", "@InDrive:\\setup");
@EndIf
@EndFinish
/* end-of-file */
// @File