home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MIDI Master Collection 1 to 5
/
THEMEPACK_2.ISO
/
themepak.inf
< prev
next >
Wrap
Text File
|
1993-12-09
|
9KB
|
364 lines
DefineVariables
Number [ReturnVal1]
Number [ReturnVal2]
number [ReturnVal3]
Number [ErrCount]
Directory [windir]
Directory [winsdir]
Logical [EnKeyb]
Logical [NetAvail]
Logical [MathPres]
Logical [CDAvail]
Text [DispType]
Number [XMSAvail]
Number [ExtmemPagesActive]
Number [ExtmemPagesAvail]
Number [ExtMemAvail]
Number [ExtMemPres]
Number [ExpMempgavail]
Number [ExpMempgactive]
Text [osver]
Text [DosVer]
Text [EmsVer]
Text [ProdExecutable1]
Text [ProdExecutable2]
Text [ProdExecutable3]
Text [ProdExecutable4]
Text [ProdExecutable5]
Text [ProdExecutable6]
Text [ProdExecutable7]
Text [ProdExecutable8]
Text [GroupTitle]
Text [GroupFile]
Text [ExistingGroupName]
Text [InstDir]
Text [FactsIconF]
Text [IconTitle1]
Text [IconTitle2]
Text [IconTitle3]
Text [IconTitle4]
Text [IconTitle5]
Text [IconTitle6]
Text [IconTitle7]
Text [IconTitle8]
Text [IconFile1]
Text [IconFile2]
Text [IconFile3]
Text [IconFile4]
Text [IconFile5]
Text [IconFile6]
Text [IconFile7]
Text [IconFile8]
EndDefineVariables
[EnKeyb] := NoCharacter
[NetAvail] := NoCharacter
[MathPres] := NoCharacter
[CDAvail] := NoCharacter
Do SetupDisplay
Do CheckHardware
if [errcount] > 1
Dialog UseHeader "Encountered Some Problems"
Our installation has encounterd the following problems,
you can continue to install or exit installation.
[Array1][1]
[Array1][2]
[Array1][3]
[Array1][4]
[Array1][5]
[Array1][6]
[Array1][7]
EndDialog
endif
dialog
Hello, and welcome to ThemePaks
by Romeo Music International!
This easy-to-follow installation will do everything for you.
You'll be asked a few simple questions. We suggest that
you accept the default choices. Please note that your WIN.INI
file will be changed. That's OK--we'll even make a
safety backup of the file for you.
Enjoy the music!
EndDialog
:start
[ReturnVal2] := 1
DialogBox 150 80 UseHeader "Installing RMI ThemePaks 1.2" Returns [ReturnVal1] BlackOnLightGray
Font "Helv" 8
GroupBox @xy(5,4) 135 70 "Please select the option you want."
RadioButtonGroup Uses [ReturnVal2]
RadioButton @xy(10,17) 120 12 "&Install the RMI ThemePaks."
RadioButton @xy(10,30) 120 12 "View a &Hardware Summary."
RadioButton @xy(10,43) 120 12 "&Exit Installation."
PushButton @xy(60,55) 38 14 "OK" OK
EndDialogBox
if [ReturnVal2] = 1
Do Install
Dialog
Your installation was successful!
This installation procedure will now restart.
You can then do additional hard disk installations,
view a hardware summary, or exit.
Thank you!
EndDialog
goto start
endif
if [ReturnVal2] = 2
Do HardwareSum
Goto start
endif
if [ReturnVal2] = 3
SoLong
Endif
if [ReturnVal2] = 0
Dialog
Click on one of the option buttons.
EndDialog
Goto start
Enddialog
endif
Procedure SetupDisplay
SetDefaultBitMap Off
SetBackGroundColor 0 0 64 191 64 0 TopToBottom
SetPopupAttrTo YellowOnBlue
ShowWindow maximized
EndProcedure
Procedure Install
[installationdirectory] := THEMEPAK
DetermineInstallationDrive RequireFixed
DetermineInstallationDirectory installationdrive:\[installationdirectory]
;;QueAllFiles
;;GetQuedFiles
ChangeDirectoryto [InstallationDirectory]
CopyFiles from [InstallFromDrive]:\ to [InstallationDirectory]
INFOPAK.HLP
RMIHELP.ICO
RMIPLAY.EXE
RMIPLAY.ICO
THEMEPAK.HLP
THEMEPAK.EXE
CARTOONS.ICO
COMPOSER.ICO
POPMUSIC.ICO
MOVIES.ICO
FESTIVAL.ICO
EndCopyFiles
[ProdExecutable1] := [InstallFromDrive]:\t_paks\cartoons\cartoons.jlr
[ProdExecutable2] := [InstallFromDrive]:\t_paks\composer\composer.jlr
[ProdExecutable3] := [InstallFromDrive]:\t_paks\festival\festival.jlr
[ProdExecutable4] := [InstallFromDrive]:\t_paks\movies\movies.jlr
[ProdExecutable5] := [InstallFromDrive]:\t_paks\popmusic\popmusic.jlr
[ProdExecutable6] := [InstallationDirectory]\rmiplay.exe
[ProdExecutable7] := [InstallationDirectory]\themepak.hlp
[ProdExecutable8] := [InstallationDirectory]\infopak.hlp
[GroupTitle] := RMI ThemePaks
[InstDir] := [InstallationDirectory]
[IconFile1] := cartoons.ico
[IconFile2] := composer.ico
[IconFile3] := festival.ico
[IconFile4] := movies.ico
[IconFile5] := popmusic.ico
[IconFile6] := RMIplay.ico
[IconFile7] := RMIHelp.ico
[IconFile8] := RMIHelp.ico
[IconTitle1] := Cartoon Classics
[IconTitle2] := Composers Across Time
[IconTitle3] := Festival Music
[IconTitle4] := Movie Classics
[IconTitle5] := American Pop Evolution
[IconTitle6] := RMI Player
[IconTitle7] := RMI Help
[IconTitle8] := RMI InfoPak
:top
[Number2] := 2
DialogBox 150 80 UseHeader "Icon Installation" Returns [Number1]
Font "Helv" 8
RadioButtonGroup Uses [Number2]
RadioButton @xy(6,6) 150 12 "Install the Icons in an &existing group."
RadioButton @xy(6,20) 150 12 "Install the Icons in a &new group."
RadioButton @xy(6,34) 150 12 "&Don't install the icons."
PushButton @xy(60,60) 38 14 "OK" OK
EndDialogBox
if [Number2] = 1
[Array2] := GetProgramManagerGroupNames
DialogBox 177 70 UseHeader "Choose group to install the Icons in" GreenOnBlack Returns [Number7]
ListBox @xy(15,7) 120 30 Uses [String1] LoadWith [Array2] Border
PushButton @xy(60,55) 38 14 "OK" OK
EndDialogBox
[ExistingGroupName] := [String1]
if [ExistingGroupName] = BlankString
popup no group selected, not installing icon
else
ProgramManagerDDE
CreateGroup([ExistingGroupName])
AddItem([ProdExecutable1],[IconTitle1],[InstallationDirectory]\[IconFile1])
AddItem([ProdExecutable2],[IconTitle2],[InstallationDirectory]\[IconFile2])
AddItem([ProdExecutable3],[IconTitle3],[InstallationDirectory]\[IconFile3])
AddItem([ProdExecutable4],[IconTitle4],[InstallationDirectory]\[IconFile4])
AddItem([ProdExecutable5],[IconTitle5],[InstallationDirectory]\[IconFile5])
AddItem([ProdExecutable6],[IconTitle6],[InstallationDirectory]\[IconFile6])
AddItem([ProdExecutable7],[IconTitle7],[InstallationDirectory]\[IconFile7])
AddItem([ProdExecutable8],[IconTitle8],[InstallationDirectory]\[IconFile8])
EndProgramManagerDDE
Dialog
Things are going well!
You're now going to get some information
about the WIN.INI modifications.
All you really need to do is
select the "Go ahead and modify" option, and
then click OK twice.
But we have given you some other options,
just in case you want them.
EndDialog
ModifyTextFile win.ini
InSection [Extensions]
AddOrChangeLineWith (JLR,=,) as "JLR=[InstallationDirectory]\THEMEPAK.EXE ^.JLR" at end
EndModifyTextFile
endif
endif
if [number2] = 2
ProgramManagerDDE
CreateGroup(RMI ThemePaks)
AddItem([ProdExecutable1],[IconTitle1],[InstallationDirectory]\[IconFile1])
AddItem([ProdExecutable2],[IconTitle2],[InstallationDirectory]\[IconFile2])
AddItem([ProdExecutable3],[IconTitle3],[InstallationDirectory]\[IconFile3])
AddItem([ProdExecutable4],[IconTitle4],[InstallationDirectory]\[IconFile4])
AddItem([ProdExecutable5],[IconTitle5],[InstallationDirectory]\[IconFile5])
AddItem([ProdExecutable6],[IconTitle6],[InstallationDirectory]\[IconFile6])
AddItem([ProdExecutable7],[IconTitle7],[InstallationDirectory]\[IconFile7])
AddItem([ProdExecutable8],[IconTitle8],[InstallationDirectory]\[IconFile8])
EndProgramManagerDDE
Dialog
Things are going well!
You're now going to get some information
about the WIN.INI modifications.
All you really need to do is
select the "Go ahead and modify" option, and
then click OK twice.
But we have given you some other options,
just in case you want them.
EndDialog
ModifyTextFile win.ini
InSection [Extensions]
AddOrChangeLineWith (JLR,=,) as "JLR=[InstallationDirectory]\THEMEPAK.EXE ^.JLR" at end
EndModifyTextFile
endif
if [Number2] = 3
popup not installing icon
endif
EndProcedure
Procedure CheckHardware
[Number3] := 1
if VGA
[DispType] := VGA
endif
if EGA
[DispType] := EGA
endif
if [DispType] = BlankString
[Array1][[number3]] := Your Display adapter must be EGA or better.
IncrementNumber [number3]
endif
[windir] := [WindowsDirectory]
[winsdir] := [WindowsSystemDirectory]
[ExtmemPagesActive] := ExtendedMemoryPagesActive
[ExtmemPagesAvail] := ExtendedMemoryPagesAvailable
[ExtMemAvail] := ExtendedMemoryAvailable
[ExtMemPres] := ExtendedMemoryPresent
[ExpMempgAvail] := ExpandedMemoryPagesAvailable
[ExpMempgActive] := ExpandedMemoryPagesActive
[osver] := OSVersion
[DosVer] := DOSVersion
[EmsVer] := EMSVersion
if [DOSVer] < 5.0
[Array1][[number3]] := You must have a DOS version of at least 5.0 or more
IncrementNumber [number3]
endif
[Errcount] := [Number3]
EndProcedure
Procedure HardwareSum
Dialog
Display Type : [DispType]
DOS Version : [DosVer]
Extended Memory Available : [ExtMemAvail]
Extended Memory Present : [ExtMemPres]
Extended Memory Pages Active : [ExtMemPagesActive]
Extended Memory Pages Available : [ExtMemPagesAvail]
Expanded Memory Pages Available : [ExpmempgAvail]
Expanded Memory Pages Active : [ExpMempgactive]
Windows Directory : [windir]
Windows System Directory : [winsdir]
EndDialog
EndProcedure