home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC Gamer 13
/
1995-12_Disc_13.iso
/
ur96
/
ur96demo.inf
< prev
Wrap
INI File
|
1995-09-20
|
8KB
|
322 lines
DefineVariables
;; Global variables for this installation.
Number [nCounter] ;; Variable used as a counter for While loop
Number [nInUse] ;; Variable which indicates number of in use files
Number [nInstallationPathDefined]
TextArray [taBackUpName] ;; Variable used for in use files
TextArray [taInUseArray] ;; Variable used for in use files
Text [tInuseLine] ;; Variable used to write inuse file to INUSE.BAT
Text [tInUseFileName]
Text [tDispType]
Text [tNetLoaded]
Text [tExtMemAvailable]
Text [tExtMemPresent]
Text [tDOSVersion]
Text [tDisplayAdapter]
Text [tNetwork]
Text [tMainMemory]
Text [tWinDir]
Text [tWinSysDir]
Text [tMathCoprocessor]
Text [tMathCoprocessorLoaded]
EndDefineVariables
;;---------------------------------------------------------------------------
Procedure SetupDisplay
SetMainBorderTo Single
SetShadowAttrTo BlackOnBlack
SetScreenAttrTo WhiteOnLightBlue
SetPopupAttrTo WhiteOnBlue
SetAttentionAttrTo WhiteOnBlue
SetTopLineAttrTo WhiteOnRed
EndProcedure
;;---------------------------------------------------------------------------
Procedure Install_Files_All
DetermineInstallationDrive 750000 RequireFixed ;;about 750K bytes required
DetermineInstallationDirectory InstallationDrive:\ur96demo
QueAllFiles Always
GetQuedFiles ShowJustOne
[tinuseFileName] := [InstallationDirectory]\INUSE.BAT
If [nInUse] > 0
[nCounter] := 1
While [nCounter] <= [nInUse]
[tInUseLine] := Copy [taBackUpName][[nCounter]] [taInUseArray][[nCounter]]
AppendFile [tinuseFileName]
[tInUseLine]
EndAppendFile
IncrementNumber [nCounter]
EndWhile
EndIf
EndProcedure
;;---------------------------------------------------------------------------
;;***************************************************************************
;;********************************* MAIN ************************************
;;***************************************************************************
DOSCommand mode con cols=80 lines=25 quietly ;;use standard screen config
Do SetupDisplay
SetModifyModeTo Modify
[nInstallationPathDefined] := 0 ;;assume no installation path
Dialog 400
Welcome to Install!
EndDialog
:MainLoop
SetTopLineTo BlankString
SetCheckmarks off
GetMenuChoice UseHeader "Main Menu"
1. INSTALL UR96 DEMO
;Install UR96 demo onto your hard drive.
;Requires 750 KBytes of space.
2. BOOT MAKER
;Make a custom boot diskette for your system -
;blank diskette required.
;
;IMPORTANT: this is not required for Windows 95.
3. IF ALL ELSE FAILS
;help!
4. QUIT
;Exit to DOS.
EndGetMenuChoice
ClearScreen
InCase Choice Is
=1: ;;max install:
SetTopLineTo - UR96 DEMO INSTALLATION -
Do Install_Files_All
ChangeDirectoryTo [InstallationDirectory]
DOSCommand [InstallFromDrive]: quietly
ChangeDirectoryTo ur96
SetTopLineTo BlankString
ClearScreen
SetScreenAttrTo WhiteOnBlack
DOSCommand setup [InstallationDirectory] quietly ;;sound card setup
ClearScreen
SetScreenAttrTo WhiteOnLightBlue
DOSCommand del [InstallationDirectory]\setup.bat quietly
ModifyTextFile [InstallationDirectory]\setup.bat noinquiry quietly
InsertAtLine End @[InstallFromDrive]:
InsertAtLine End @cd \ur96
InsertAtLine End @setup [InstallationDirectory]
InsertAtLine End @InstallationDrive:
EndModifyTextFile
DOSCommand del [InstallationDirectory]\ur96demo.bat quietly
ModifyTextFile [InstallationDirectory]\ur96demo.bat noinquiry quietly
InsertAtLine End @[InstallFromDrive]:
InsertAtLine End @cd \ur96
InsertAtLine End @echo Loading UR96 demo
InsertAtLine End @ur96demo [InstallationDirectory]
InsertAtLine End @InstallationDrive:
EndModifyTextFile
ChangeDirectoryTo ..
ClearScreen
Dialog
Installation complete, to run the UR96 demo type
UR96DEMO<enter> from the installation directory.
EndDialog
[nInstallationPathDefined] := 1
GoTo MainLoop
=2: ;;make boot diskette:
SetTopLineTo - BOOT MAKER -
Dialog
Please insert a diskette into drive A.
EndDialog
Dialog [YesOrNo1] WhiteOnRed
WARNING: this procedure will destroy all information
on this diskette.
Do you wish to continue?
EndDialog
If [YesOrNo1] = NoCharacter ;;this is the "N" response
Goto MainLoop
EndIf
Dialog
After the format you will be asked if you want to
format another diskette. At that time please press the
<N> key and then the <enter> key for the "no" response.
EndDialog
SetScreenAttrTo WhiteOnBlack
DOSCommand format a:/s/u/v:Accolade
ClearScreen
SetScreenAttrTo WhiteOnLightBlue
CopyFiles from c:\ to a:
autoexec.bat
config.sys
EndCopyFiles
[BootDrive] := a
ModifyTextFile a:autoexec.bat noinquiry
AddOrChangeLineWith (prompt ,,) as " " At End
AddOrChangeLineWith (@prompt ,,) as " " At End
InsertAtLine 1 PROMPT UR96 DEMO BOOT DISK $P$G
AddOrChangeLineWith (smartdrv.exe,,) as " " At End IncludeDisabled
AddOrChangeLineWith (doskey,,) as " " at End IncludeDisabled
AddOrChangeLineWith (share.exe,,) as " " at End IncludeDisabled
AddOrChangeLineWith (windows\win,,) as " " at End IncludeDisabled
EndModifyTextFile
ModifyTextFile a:config.sys noinquiry
AddOrChangeLineWith (files=,,) as "FILES=40" At End IncludeDisabled
AddOrChangeLineWith (buffers=,,) as " " at End IncludeDisabled
AddOrChangeLineWith (command,,) as " " At End
AddOrChangeLineWith (shell=,,) as " " At End IncludeDisabled
AddOrChangeLineWith (emm386.exe,,) as " " At End IncludeDisabled
AddOrChangeLineWith (smartdrv.exe,,) as " " At End IncludeDisabled
AddOrChangeLineWith (ramdrive.sys,,) as " " At End IncludeDisabled
AddOrChangeLineWith (share.exe,,) as " " at End IncludeDisabled
AddOrChangeLineWith (stacks=,,) as " " at End
AddOrChangeLineWith (fcbs,,) as " " at End
AddOrChangeLineWith (plugplay,,) as " " At End IncludeDisabled
AddOrChangeLineWith (plug_play,,) as " " At End IncludeDisabled
EndModifyTextFile
;; remove VR's housekeeping garbage:
If FileExists c:\adaltoi\instalit.exe
If FileExists c:\adaltoi\norcimo.ate
RemoveDirectoryTree c:\adaltoi
EndIf
EndIf
If FileExists d:\adaltoi\instalit.exe
If FileExists d:\adaltoi\norcimo.ate
RemoveDirectoryTree d:\adaltoi
EndIf
EndIf
If FileExists e:\adaltoi\instalit.exe
If FileExists e:\adaltoi\norcimo.ate
RemoveDirectoryTree e:\adaltoi
EndIf
EndIf
If FileExists f:\adaltoi\instalit.exe
If FileExists f:\adaltoi\norcimo.ate
RemoveDirectoryTree f:\adaltoi
EndIf
EndIf
Dialog [YesOrNo1]
Your UR96 demo boot disk is ready.
Would you like to reboot now?
EndDialog
If [YesOrNo1] = NoCharacter ;;this is the "N" response
GoTo MainLoop
EndIf
Dialog
After the format, you will be asked if you want to
format another diskette. At that time please press
the <N> key for the "no" response.
EndDialog
:infiniteLoop
TextBox
With the drive A: door still closed,
simultaneously press the <ctrl>,
<alt>, & <del> keys.
EndTextBox
goto infiniteLoop
=3: ;;display help
BrowseFile \ur96\help.me
GoTo MainLoop
=4: ;;exit
If [nInstallationPathDefined] = 0
Goto Exit
EndIf
DOSCommand InstallationDrive: quietly
DOSCommand CD [InstallationDirectory] quietly
:Exit
SoLong
EndInCase