home *** CD-ROM | disk | FTP | other *** search
INI File | 1996-06-25 | 30.3 KB | 906 lines |
- ;;************************************************************************
- ;; Copyright (c) 1992, 1993. Media Computer Technologies, Inc.
- ;; All Rights Reserved.
- ;; This source code and related information are copyrighted
- ;; proprietory technology of Media Computer Technologies Inc.
- ;; ("MCTI") released under a specific license for its
- ;; confidentiality and protection as MCTI's trade secret.
- ;;
- ;; Unauthorized disclosure, exposure, duplication, copying,
- ;; distribution or any other use then that specifically
- ;; authorized by MCTI is strictly prohibited.
- ;;
- ;; Filename: mct.inf
- ;;
- ;; Description:
- ;; This is a installation program for Video Manager Plus Application
- ;; and MCTelevision (tuner) program.
- ;;
- ;; C H A N G E R E C O R D
- ;;
- ;; Date Initials Description
- ;; -------- -------- --------------------------------------------------
- ;; 04/29/95 Bhupen Updated.
- ;; 05/10/95 Satish Added MPEG Remote application.
- ;; 07/27/95 Satish Modified to update RZMPEG.INI file.
- ;; 08/24/95 Satish Modofied to update the HelpFile names.
- ;; 02/01/96 Satish Added support for Philips1216MF in Tuner section (-tuner) option.
- ;; Modified to select the first board by default.
- ;; 05/30/96 Tang Modified for AVer FunRTV card
- ;;
- ;;************************************************************************
-
- ;;----------------------
- ;; OEM Defined string
- ;;----------------------
- DefineVariables
- Text [CompanyName] := AVerMedia TECHNOLOGIES, Inc.
- Text [CompanyLogoFile] := funtv.bmp
- Text [GroupName] := AVer FunTV
- Text [ProductName] := AVer FunTV
-
- ;; Video Application
- Text [VMPProdName] := TV/Video Capture
- Text [VMPExeFileName] := MVPAPP.EXE
- Text [AudioExeFileName] := AVERAUD.EXE
- Text [TargetIniFileName] := MVP131DF.INI
- Text [MVMDefaultBinFileName] := MVP131DF.BIN
- Text [TargetUsrFileName] := MVP131.INI
- Text [MVMBinFileName] := MVP131.BIN
- Text [VMPIconName] := "TV/Video Capture"
- Text [VMPIniFileName] :=
- Text [MVMIniFileName] :=
-
- Text [TVHelpFileName] :=
- Text [MPEGHelpFileName] :=
-
- Text [TVRemoteProdName] := TV Remote Control
- Text [TVRemoteIconName] := "TV Remote"
- Text [TunerExeFileName] :=
- Text [TVRemoteExeFileName] :=
-
- Text [MsgDispProdName] := Message Dispatcher
- Text [MsgDispExeFileName] := MSGDISP.EXE
- Text [MsgDispDataFileName] := MSGDISP.DTA
- Text [MsgDispIconName] := "Message Dispatcher"
-
- Directory [VMPInstalDirPath] := \FUNTV\MVPAPP
- Directory [VMPWorkDirPath]
-
- ;; AVI (Video For Windows) Drivers, 03/05/96 [AVerMedia]
- Logical [AVIDriver] := Y
- Text [AVIDRVProdName] := AVI Drivers
- Text [CaptureDriver] := MCTCAP.DRV
- Text [CodecDriver] := MCTCOD.DRV
- Number [VideoFormatID] := 1
- Number [DrawFormatID] := 3
- Text [CaptureDrvDesc] := AVer FunTV AVI Capture Driver
- Text [CodecDrvDesc] := AVer FunTV AVI Codec/Draw Driver
-
- Text [DebugExeFileName] := DEBUGGER.EXE
- Text [DebugIconName] := FunTV Debugger
- Text [FMAppExeFileName] := FMTUNER.EXE
- Text [FMAppIconName] := FM Radio
-
-
- ;;-----------------------------------------
- ;; DO NOT CHANGE SCRIPT BEYOUND THIS LINE
- ;;-----------------------------------------
- Number [IOConfigNo] := 1
- Number [TunerHWType] := 1
- Number [TunerTableNo] := 1
- Number [HighLight] := 1
- Number [VMPFileSize]
- Number [BoardType] := 1
- Text [TitleString]
- Text [IOIndex1] := B18
- Text [IOIndex2] := B28
- Text [IOData1] := B1A
- Text [IOData2] := B2A
- Text [IOIndex]
- Text [IOData]
- Text [TestDLL] := HWTEST.DLL
- ;; 05.27.96 Tang
- Number [CountryType] := 1
- Number [CordY] := 170
- EndDefineVariables
-
- ;;03.05.96 Tang [TitleString] := [VMPProdName]
- If [AVIDriver] = Y
- [TitleString] := [VMPProdName] and AVI Drivers
- else
- [TitleString] := [VMPProdName]
- Endif
-
- Do SetupINSTALIT
-
- [Point2]
- Do SelectBoard
-
- if [BoardType] == -1
- Dialog WhiteOnBlue
- Please select the board you have in your system.
- Press ESC to exit installation.
- EndDialog
-
- GoTo [Point2]
- EndIf
-
- Dialog @xy(Center,[CordY]) WhiteOnBlue
-
- Thanks for purchasing [ProductName] from
- [CompanyName]
-
- Please make sure that the [ProductName]
- is installed properly in your system.
- Refer to the User's Manual for cabling and jumper settings.
-
- EndDialog
-
- ;; Dialog @xy(Center,150) ;;MaxX/2
- ;; EndDialog
-
- ;;03.05.96 Tang added for AVI Drivers
- if [AVIDriver] = Y
- [Point1]
-
- GetMenuChoice @xy(Center,170) Highlight [HighLight]
- 1.Install [VMPProdName] software
- ; 1.Install "[VMPProdName]" software,
- ; TV Remote and TV/Video Capture
- 2.Install [AVIDRVProdName]
- ; 2.Install "[AVIDRVProdName]" for
- ; Microsoft's Video for Windows
- 3.Exit
- ; 3.Exit installation program
- EndGetMenuChoice
-
- InCase Choice is
- =1: Do VMAppInstall
-
- =2: Do AVIDRVInstall
-
- =3: Do ByeBye
- EndInCase
-
- GoTo [Point1]
- else
- [Point2]
-
- GetMenuChoice @xy(Center,170) Highlight [HighLight]
- 1.Install [VMPProdName]
- ; 1.Install "[VMPProdName]" software,
- ; TV Remote and TV/Video Capture
- 2.Exit
- ; 2.Exit installation program
- EndGetMenuChoice
-
- InCase Choice is
- =1: Do VMAppInstall
-
- =2: Do ByeBye
- EndInCase
-
- GoTo [Point2]
- endif
- ;;03.05.96 Tang added for AVI Drivers
-
- Procedure VMAppInstall
- [HighLight] := 2
-
- ;;Do UnInstall
-
- ;;------------------------------------------
- ;; Install VM+ Application
- ;;------------------------------------------
- ;; Find the disk space requirement for Application
- [VMPFileSize] := SizeofFile [VMPExeFileName]
- [VMPFileSize] := [VMPFileSize] +SizeofFile [AudioExeFileName]
- [VMPFileSize] := [VMPFileSize] +SizeofFile [TunerExeFileName]
- [VMPFileSize] := [VMPFileSize] +SizeofFile [TVRemoteExeFileName]
- [VMPFileSize] := [VMPFileSize] +SizeofFile [MsgDispExeFileName]
- [VMPFileSize] := [VMPFileSize] +SizeofFile [MsgDIspDataFileName]
- [VMPFileSize] := [VMPFileSize] +SizeofFile [TVHelpFileName]
- ;; [VMPFileSize] := [VMPFileSize] +SizeofFile [DebugExeFileName]
-
- ;; Find the disk space requirement for DLL
- [Number9] := SizeofFile MVP131.DLL
- [Number9] := [Number9] + SizeofFile VIC.DLL + 20480
- ;; 03.04.96 Tang added
- [Number9] := [Number9] + SizeofFile FRTV.DLL
- [Number9] := [Number9] + 2*SizeofFile [MVMIniFileName]
-
-
- ;; Make sure enough space is available
- [Number1] := FreeSpaceOnDrive [WindowsDirectory]
-
- if [Number1] < [Number9]
- Dialog PressAKey @(center, [CordY]) UseHeader "No Disk Space"
- Installation needs [Number9] bytes in the Windows drive.
- Available space is [Number1] bytes.
- Aborting [VMPProdName] Installation.
- EndDialog
-
- Exit
- endif
-
- [String7] := "[ProductName] Base I/O Address"
- [String8] := " B&18/B1A hex"
- [String9] := " B&28/B2A hex"
- DialogBox @xy(center, center) 188 90 UseHeader "Base I/O Address Selection" Returns [Number5] BorDlg
- Font "Helv" 8
- CTEXT @xy( 10,10) 170 10 [String7]
- BorRadioButtonGroup Uses [IOConfigNo]
- RadioButton @xy( 58, 26) 70 10 [String8]
- RadioButton @xy( 58, 40) 70 10 [String9]
- BorPushButton @xy(74, 62) 38 14 "OK" Ok
- EndDialogBox
-
- if [IOConfigNo] = 3
- Dialog PressAKey @(center, center) UseHeader "Other I/O Address"
- .L If you want to use different I/O Addresses other than
- .L B18/B1A and B28/B2A for your [ProductName],
- .L you need to manually modify the Index and Data
- .L entries under [MVP131] section in [TargetUsrFileName].
- .L
- .L Example: To set the I/O address to B38/B3A, modify
- .L [MVP131] section in [TargetUsrFileName] as
- .L follows:
- .L
- .L [MVP131]
- .L Index=B38
- .L Data=B3A
-
- EndDialog
- else
- if [IOConfigNo] = 1
- [IOIndex] := [IOIndex1]
- [IOData] := [IOData1]
- endif
-
- if [IOConfigNo] = 2
- [IOIndex] := [IOIndex2]
- [IOData] := [IOData2]
- endif
-
- endif
-
- Do SelectSystemParam
-
- DetermineInstallationDrive [VMPFileSize] RequireFixed
- DetermineInstallationDirectory InstallationDrive:[VMPInstalDirPath] [VMPFileSize]
- [VMPWorkDirPath] := [InstallationDirectory]
- ChangeDirectoryTo [InstallationDirectory]
-
- Do InstallVideoApp
- Do InstallTunerApp
- Do InstallMsgDisp
-
- ;;------------------------------------------
- ;; Wrap up
- ;;------------------------------------------
- [YesOrNo1] := Y
-
- EndProcedure
-
-
- Procedure ByeBye
-
- ;;Dialog PressAKey WhiteOnBrown
- if [YesOrNo1] = Y
- Dialog @xy(Center,[CordY]) [YesOrNo1] WhiteOnBrown
- Thanks for choosing [ProductName] from
- [CompanyName]
-
- Please restart Windows before running the application.
- Do you want to restart Windows now?
- EndDialog
- if [YesOrNo1] = Y
- Reboot Windows
- Endif
- else
- Dialog @xy(Center,[CordY]) PressAKey WhiteOnBrown
- You have not installed the [ProductName] from
- [CompanyName]
- EndDialog
- EndIf
- SoLong Quietly
-
- EndProcedure
-
- Procedure DDENonFatalErrorTrap
- ;; Do nothing
- EndProcedure
-
-
- Procedure SetupINSTALIT
-
- SetTopLineTo INSTALL [TitleString] Software (Press Esc to exit)
-
- ;; Load/set Bitmaps here
-
- ;; While it is not documented anywhere else it is true that FreeSpaceOnDrive
- ;; considers only the first character of its first parameter (in this case
- ;; the drive letter of the temporary directory).
- [number1] := FreeSpaceOnDrive ShadowDirectory
- If [number1] < 25000
- popup There is insufficient space on the TEMP drive for installation.
- SoLong
- EndIf
-
- LoadBitMap 1 [CompanyLogoFile] @xy(5,5)
- ShowBitMap 1
-
- SetDefaultBitmap off
- SetBackGroundColor 255 255 255 255 255 255
- ShowWindow Maximized
-
- EndProcedure
-
- Procedure SelectBoard
-
- ;; 06.03.96 Tang added for AVer FunTV [AVerMedia]
- [BoardType] := 2
-
- if [BoardType] = 1
- [VMPIniFileName] := 8tv131.ini
- [MVMIniFileName] := 8tv131.bin
- [ProductName] := "AVer FunTV"
- [VMPProdName] := "TV/Video Capture"
- [TunerExeFileName] := TUNERAPP.EXE
- [TVRemoteExeFileName] := REMOTE.EXE
- endif
-
- if [BoardType] = 2
- [VMPIniFileName] := 16tv131.ini
- [MVMIniFileName] := 16tv131.bin
- [ProductName] := "AVer FunTV"
- [VMPProdName] := "TV/Video Capture"
- [TunerExeFileName] := TUNERAPP.EXE
- [TVRemoteExeFileName] := REMOTE.EXE
- endif
-
- EndProcedure
-
-
- Procedure UnInstall
- ModifyTextFile [WindowsDirectory]\system.ini NoBackup
- AddOrChangeLineWith ([MCT's VMPlus],,) as "[MCT's VMPlus]" at end
- InSection [MCT's VMPlus]
- AddOrChangeLineWith (UserIniFileName,=,) as "UserIniFileName=" at end
- AddOrChangeLineWith (DefaultIniFileName,=,) as "DefaultIniFileName=" at end
- AddOrChangeLineWith (VMPAppClass,=,) as "VMPAppClass=" at end
- AddOrChangeLineWith (MCTAudioAppClass,=,) as "MCTAudioAppClass=" at end
- AddOrChangeLineWith (MessageDataFile,=,) as "MessageDataFile=" at end
- AddOrChangeLineWith (VRemoteClass,=,) as "VRemoteClass=" at end
- AddOrChangeLineWith (TunerAppClass,=,) as "TunerAppClass=" at end
- EndModifyTextFile
-
- EndProcedure
-
- ;; -------------------------------------
- ;; Install the Video Application.
- ;; -------------------------------------
- Procedure InstallVideoApp
- CopyFiles
- [VMPExeFileName]
- [AudioExeFileName]
- ;; [DebugExeFileName]
- ;; [FMAppExeFileName]
- EndCopyFiles
-
- [Number1] := LengthOf [TVHelpFileName]
- if [Number1] > 0
- CopyFiles
- [TVHelpFileName]
- EndCopyFiles
- Endif
-
- Dialog 2000 @(center, center) UseHeader "[VMPProdName] Installation"
- Copying DLLs to window's system directory
- One moment, please.
- EndDialog
-
- ;; Copy *.dll files to windows
- CopyFiles to [WindowsSystemDirectory]
- mvp131.dll
- vic.dll
- frtv.dll
- ;;msmixmgr.dll
- EndCopyFiles
-
-
- Dialog 2000 @(center, center) UseHeader "[VMPProdName] Installation"
- Copying INI files to windows directory
- One moment, please.
- EndDialog
-
- ;; Copy *.ini and *.usr to Windows directory
- CopyFiles to [WindowsDirectory]
- [VMPIniFileName] AS [TargetIniFileName]
- [VMPIniFileName] AS [TargetUsrFileName]
- [MVMIniFileName] AS [MVMBinFileName]
- [MVMIniFileName] AS [MVMDefaultBinFileName]
- EndCopyFiles
-
- if [IOConfigNo] < 3
- ;; Change the Index entry to B18, B28 or user define in the vmplus.usr file
- ModifyTextFile [WindowsDirectory]\[TargetUsrFileName] NoBackup
- InSection [MVP131]
- AddOrChangeLineWith (Index,=,) as "Index=[IOIndex]" at end
- AddOrChangeLineWith (Data,=,) as "Data=[IOData]" at end
- EndModifyTextFile
- endif
-
- ;; Change the ConfigFile entry in default file.
- ModifyTextFile [WindowsDirectory]\[TargetUsrFileName] NoBackup
- InSection [MVP131]
- AddOrChangeLineWith (ConfigFile,=,) as "ConfigFile=[MVMBinFileName]" at end
- EndModifyTextFile
-
- ;; Change the HelpFile entry in default file.
- [Number1] := LengthOf [TVHelpFileName]
- if [Number1] > 0
- ModifyTextFile [WindowsDirectory]\[TargetUsrFileName] NoBackup
- InSection [MCT]
- AddOrChangeLineWith (HelpFileName,=,) as "HelpFileName=[VMPWorkDirPath]\[TVHelpFileName]" at end
- EndModifyTextFile
- Endif
-
- ;; Update class entries in the system.ini file
- ModifyTextFile [WindowsDirectory]\system.ini NoBackup
- AddOrChangeLineWith ([MCT's VMPlus],,) as "[MCT's VMPlus]" at end
- InSection [MCT's VMPlus]
- AddOrChangeLineWith (UserIniFileName,=,) as "UserIniFileName=[WindowsDirectory]\[TargetUsrFileName]" at end
- AddOrChangeLineWith (DefaultIniFileName,=,) as "DefaultIniFileName=[WindowsDirectory]\[TargetIniFileName]" at end
- AddOrChangeLineWith (VMPAppClass,=,) as "VMPAppClass=[VMPWorkDirPath]\[VMPExeFileName]" at end
- AddOrChangeLineWith (MCTAudioAppClass,=,) as "MCTAudioAppClass=[VMPWorkDirPath]\[AudioExeFileName]" at end
- EndModifyTextFile
-
- ;; Set VMP Application Icon
- [String1] := [VMPWorkDirPath]\[VMPExeFileName]
- ;; 03.05.96 Tang added [AVerMedia]
- ;; [String2] := [VMPWorkDirPath]\[DebugExeFileName]
-
- ;; Create Group and program item
- ProgramManagerDDE
- CreateGroup ([GroupName])
- DeleteItem ([VMPIconName])
- AddItem ([String1], [VMPIconName], [String1])
- ;; 03.05.96 Tang added [AVerMedia]
- ;; AddItem ([String2], [DebugIconName], [String2])
- ;; 03.05.96 Tang added [AVerMedia]
- ShowGroup ([GroupName], 1)
- EndProgramManagerDDE
-
- EndProcedure
-
- ;;------------------------------------------
- ;; Install Message Dispatcher Application
- ;;------------------------------------------
- Procedure InstallMsgDisp
- ;; Stop message dispatcher if it is running first
- LoadDLL [DLL1] [InstallFromDirectory][TestDLL]
- CallDLL [DLL1] StopMSGDispatcher
- UnloadDLL [DLL1]
-
- ChangeDirectoryTo [InstallationDirectory]
-
- Dialog 2000 @(center, center) UseHeader "[MsgDispProdName] Installation"
- Copying Message dispatcher to [InstallationDirectory] directory
- One moment, please.
- EndDialog
-
- CopyFiles
- [MsgDispExeFileName]
- [MsgDispDataFileName]
- EndCopyFiles
-
- ;; Update class entries in the system.ini file
- ModifyTextFile [WindowsDirectory]\system.ini NoBackup
- AddOrChangeLineWith ([MCT's VMPlus],,) as "[MCT's VMPlus]" at end
- InSection [MCT's VMPlus]
- AddOrChangeLineWith (MessageDataFile,=,) as "MessageDataFile=[VMPWorkDirPath]\[MsgDispDataFileName]" at end
- EndModifyTextFile
-
- ;; Set Message Dispatcher Application Icon
- [String1] := [VMPWorkDirPath]\[MsgDispExeFileName]
-
- ;; Create Group and program item
- ProgramManagerDDE
- CreateGroup (Startup)
- DeleteItem ([MsgDispIconName])
- AddItem ([String1], [MsgDispIconName], [String1])
- ;;ShowGroup (Startup, 1)
- EndProgramManagerDDE
-
- EndProcedure
-
- ;;------------------------------------------
- ;; Install TVRemote Application
- ;;------------------------------------------
- Procedure InstallTunerApp
- [Number1] := LengthOf [TunerExeFileName]
- if [Number1] > 0
- ChangeDirectoryTo [InstallationDirectory]
-
- Dialog 2000 @(center, center) UseHeader "[TVRemoteProdName] Installation"
- Copying TV Control to [InstallationDirectory] directory
- One moment, please.
- EndDialog
-
- CopyFiles
- [TunerExeFileName]
- [TVRemoteExeFileName]
- EndCopyFiles
-
- ;; 05.28.96 Tang modified
- ;; if [CommandLine1] = "-tuner"
- ModifyTextFile [WindowsDirectory]\[TargetUsrFileName] NoBackup
- InSection [TUNER]
- AddOrChangeLineWith (HardwareType,=,) as "HardwareType=[TunerHWType]" at end
- AddOrChangeLineWith (CurrentTable,=,) as "CurrentTable=[TunerTableNo]" at end
- EndModifyTextFile
- ;; endif
- if [TunerHWType] = 3 .OR. [TunerHWType] = 6 .OR. [TunerHWType] = 12
- ModifyTextFile [WindowsDirectory]\[TargetUsrFileName] NoBackup
- InSection [MVP131]
- AddOrChangeLineWith (VideoWidth,=,) as "VideoWidth=768" at end
- AddOrChangeLineWith (VideoHeight,=,) as "VideoHeight=576" at end
- AddOrChangeLineWith (InvPortWidth,=,) as "InvPortWidth=760" at end
- AddOrChangeLineWith (InvPortHeight,=,) as "InvPortHeight=576" at end
- InSection [KS0122]
- AddOrChangeLineWith (Reg4,=,) as "Reg4=0B" at end
- InSection [VIDEOSOURCE1]
- AddOrChangeLineWith (System,=,) as "System=PAL" at end
- AddOrChangeLineWith (VideoWidth,=,) as "VideoWidth=768" at end
- AddOrChangeLineWith (VideoHeight,=,) as "VideoHeight=576" at end
- AddOrChangeLineWith (IVPWidth,=,) as "IVPWidth=760" at end
- AddOrChangeLineWith (IVPHeight,=,) as "IVPHeight=576" at end
- AddOrChangeLineWith (IVPOffsetHorz,=,) as "IVPOffsetHorz=24" at end
- AddOrChangeLineWith (IVPOffsetVert,=,) as "IVPOffsetVert=17" at end
- AddOrChangeLineWith (IVPStartHorz,=,) as "IVPStartHorz=28" at end
- AddOrChangeLineWith (IVPStartVert,=,) as "IVPStartVert=17" at end
- InSection [VIDEOSOURCE2]
- AddOrChangeLineWith (System,=,) as "System=PAL" at end
- AddOrChangeLineWith (VideoWidth,=,) as "VideoWidth=768" at end
- AddOrChangeLineWith (VideoHeight,=,) as "VideoHeight=576" at end
- AddOrChangeLineWith (IVPWidth,=,) as "IVPWidth=760" at end
- AddOrChangeLineWith (IVPHeight,=,) as "IVPHeight=576" at end
- AddOrChangeLineWith (IVPOffsetHorz,=,) as "IVPOffsetHorz=24" at end
- AddOrChangeLineWith (IVPOffsetVert,=,) as "IVPOffsetVert=17" at end
- AddOrChangeLineWith (IVPStartHorz,=,) as "IVPStartHorz=28" at end
- AddOrChangeLineWith (IVPStartVert,=,) as "IVPStartVert=17" at end
- EndModifyTextFile
- endif
- ;; for PAL-M
- if [TunerHWType] = 1 .AND. [CountryType] = 4
- ModifyTextFile [WindowsDirectory]\[TargetUsrFileName] NoBackup
- InSection [MVP131]
- AddOrChangeLineWith (VideoWidth,=,) as "VideoWidth=640" at end
- AddOrChangeLineWith (VideoHeight,=,) as "VideoHeight=480" at end
- AddOrChangeLineWith (InvPortWidth,=,) as "InvPortWidth=640" at end
- AddOrChangeLineWith (InvPortHeight,=,) as "InvPortHeight=480" at end
- InSection [KS0122]
- AddOrChangeLineWith (Reg2,=,) as "Reg2=A0" at end
- AddOrChangeLineWith (Reg4,=,) as "Reg4=0E" at end
- InSection [VIDEOSOURCE2]
- AddOrChangeLineWith (System,=,) as "System=PAL-M" at end
- AddOrChangeLineWith (VideoWidth,=,) as "VideoWidth=640" at end
- AddOrChangeLineWith (VideoHeight,=,) as "VideoHeight=480" at end
- AddOrChangeLineWith (IVPWidth,=,) as "IVPWidth=640" at end
- AddOrChangeLineWith (IVPHeight,=,) as "IVPHeight=480" at end
- EndModifyTextFile
- endif
- ;; 05.28.96 Tang modified
-
- ;; Update class entries in the system.ini file
- ModifyTextFile [WindowsDirectory]\system.ini NoBackup
- AddOrChangeLineWith ([MCT's VMPlus],,) as "[MCT's VMPlus]" at end
- InSection [MCT's VMPlus]
- AddOrChangeLineWith (VRemoteClass,=,) as "VRemoteClass=[VMPWorkDirPath]\[TVRemoteExeFileName]" at end
- AddOrChangeLineWith (TunerAppClass,=,) as "TunerAppClass=[VMPWorkDirPath]\[TunerExeFileName]" at end
- EndModifyTextFile
-
- ;; Set TV Remote Application Icon
- [String1] := [VMPWorkDirPath]\[TVRemoteExeFileName]
-
- ;; Create Group and program item
- ProgramManagerDDE
- CreateGroup ([GroupName])
- DeleteItem ([TVRemoteIconName])
- AddItem ([String1], [TVRemoteIconName], [String1])
- ShowGroup ([GroupName], 1)
- EndProgramManagerDDE
- EndIf
-
- EndProcedure
-
-
- ;; 03/05/96 Tang added for AVI drivers [AVerMedia]
- Procedure AVIDRVInstall
-
- [HighLight] := 3
-
- Dialog [YesOrNo1] @(center, center) UseHeader "Installation"
-
- .L Please make sure that the "[VMPProdName]" and
- .L "Video For Windows" applications are installed properly in your
- .L system before installing the [AVIDRVProdName].
- .L Do you want to install the AVI Drivers now?
-
- EndDialog
-
- If [YesOrNo1] = NoCharacter
- GoTo [Point1]
- endif
-
- ;; Find the disk space requirement for AVI drivers installation
- [AVIDRVSize] := SizeofFile [CaptureDriver]+20480
- [AVIDRVSize] := [AVIDRVSize] +SizeofFile [CodecDriver]
-
- [Number1] := FreeSpaceOnDrive [WindowsDirectory]
-
- if [Number1] < [AVIDRVSize]
- Dialog PressAKey @(center, [CordY]) UseHeader "No Disk Space"
- Installation needs [AVIDRVSize] bytes in the Windows drive.
- Available space is [Number1] bytes.
- Aborting [AVIDRVProdName] Installation.
- EndDialog
-
- Exit
- endif
-
- Dialog 2000 @(center, center) UseHeader "[AVIDRVProdName] Installation"
- Copying driver files to window's system directory.
- One moment, please.
- EndDialog
-
- ;; Copy *.DRV files to Windows's system directory
- CopyFiles to [WindowsSystemDirectory]
- [CaptureDriver]
- [CodecDriver]
- EndCopyFiles
-
- Dialog 2000 @(center, center) UseHeader "[AVIDRVProdName] Installation"
- Updating INI files in your Windows directory.
- One moment, please.
- EndDialog
-
- ;; Update or add driver entries in the system.ini file
- ModifyTextFile [WindowsDirectory]\system.ini NoBackup
- InSection [drivers]
- AddOrChangeLineWith (msvideo,=,) as "msvideo=[WindowsSystemDirectory]\[CaptureDriver]" at end
- AddOrChangeLineWith (VIDS.DRAW,=,) as "VIDS.DRAW=[WindowsSystemDirectory]\[CodecDriver]" at end
- AddOrChangeLineWith (VIDC.MR16,=,) as "VIDC.MR16=[WindowsSystemDirectory]\[CodecDriver]" at end
- AddOrChangeLineWith (VIDC.MR24,=,) as "VIDC.MR24=[WindowsSystemDirectory]\[CodecDriver]" at end
- AddOrChangeLineWith (VIDC.MY41,=,) as "VIDC.MY41=[WindowsSystemDirectory]\[CodecDriver]" at end
- AddOrChangeLineWith (VIDC.MY42,=,) as "VIDC.MY42=[WindowsSystemDirectory]\[CodecDriver]" at end
- AddOrChangeLineWith (VIDC.MC16,=,) as "VIDC.MC16=[WindowsSystemDirectory]\[CodecDriver]" at end
- AddOrChangeLineWith (VIDC.MC24,=,) as "VIDC.MC24=[WindowsSystemDirectory]\[CodecDriver]" at end
- ;; For backward compatibility with Ring Zero Drivers
- AddOrChangeLineWith (VIDC.R0R6,=,) as "VIDC.R0R6=[WindowsSystemDirectory]\[CodecDriver]" at end
- AddOrChangeLineWith (VIDC.R0R8,=,) as "VIDC.R0R8=[WindowsSystemDirectory]\[CodecDriver]" at end
- AddOrChangeLineWith (VIDC.R0M6,=,) as "VIDC.R0M6=[WindowsSystemDirectory]\[CodecDriver]" at end
- AddOrChangeLineWith (VIDC.R0M8,=,) as "VIDC.R0M8=[WindowsSystemDirectory]\[CodecDriver]" at end
- AddOrChangeLineWith (VIDC.R0Y1,=,) as "VIDC.R0Y1=[WindowsSystemDirectory]\[CodecDriver]" at end
- AddOrChangeLineWith (VIDC.R0Y2,=,) as "VIDC.R0Y2=[WindowsSystemDirectory]\[CodecDriver]" at end
- EndModifyTextFile
-
- ;; Update/add [MCT's VMPlus] section and related entries
- ModifyTextFile [WindowsDirectory]\system.ini NoBackup
- AddOrChangeLineWith ([MCT's VMPlus],,) as "[MCT's VMPlus]" at end
- InSection [MCT's VMPlus]
- AddOrChangeLineWith (UserIniFileName,=,) as "UserIniFileName=[WindowsDirectory]\[TargetUsrFileName]" at end
- AddOrChangeLineWith (DefaultIniFileName,=,) as "DefaultIniFileName=[WindowsDirectory]\[TargetIniFileName]" at end
- AddOrChangeLineWith (VideoFormat,=,) as "VideoFormat=[VideoFormatID]" at end
- AddOrChangeLineWith (DrawFormat,=,) as "DrawFormat=[DrawFormatID]" at end
- EndModifyTextFile
-
- if FileExists [WindowsDirectory]\mmtools.ini
- ;; Update/add [VidCap] section and related entries
- ModifyTextFile [WindowsDirectory]\mmtools.ini NoBackup
- if InSection [VidCap]
- AddOrChangeLineWith (OverlayWindow,=,) as "OverlayWindow=Yes" at end
- else
- AddOrChangeLineWith ([VidCap],,) as "[VidCap]" at end
- InSection [VidCap]
- AddOrChangeLineWith (OverlayWindow,=,) as "OverlayWindow=Yes" at end
- EndModifyTextFile
- endif
-
- ;; Update/add entries in control.ini file
- ModifyTextFile [WindowsDirectory]\control.ini NoBackup
- if InSection [drivers.desc]
- AddOrChangeLineWith ([CaptureDriver],=,) as "[WindowsSystemDirectory]\[CaptureDriver]=[CaptureDrvDesc]" at end
- AddOrChangeLineWith ([CodecDriver],=,) as "[WindowsSystemDirectory]\[CodecDriver]=[CodecDrvDesc]" at end
- else
- AddOrChangeLineWith ([drivers.desc],,) as "[drivers.desc]" at end
- InSection [drivers.desc]
- AddOrChangeLineWith ([CaptureDriver],=,) as "[WindowsSystemDirectory]\[CaptureDriver]=[CaptureDrvDesc]" at end
- AddOrChangeLineWith ([CodecDriver],=,) as "[WindowsSystemDirectory]\[CodecDriver]=[CodecDrvDesc]" at end
- EndModifyTextFile
-
- ;; Display the driver installed OK dialog box
- Dialog PressAKey @(center, center) UseHeader "Installed OK"
- .L Video For Windows "[AVIDRVProdName]" has been installed
- .L successfully for [ProductName].
- .L Please make sure that the IRQ number configured for the
- .L AVI Capture Driver matches with the IRQ jumper setting.
- .L For more information, please refer to the User's Manual.
- EndDialog
-
- EndProcedure
- ;; 03/05/96 Tang added for AVI drivers [AVerMedia]
-
-
- ;; 05/27/96 Tang added for different Video Systems [AVerMedia]
- Procedure SelectSystemParam
-
- [String10] := "Country: (If not in the list, choose the one w/ same system as yours.)"
-
- [String11] := " Australia (1)"
- [String12] := " Austria (1)"
- [String13] := " Belgium (1)"
- [String14] := " Brazil (6)"
- [String15] := " Canada (3)"
- [String16] := " China (5)"
- [String17] := " Denmark (1)"
- [String18] := " Finland (1)"
- [String19] := " Germany (1)"
- [String20] := " HongKong (4)"
- [String21] := " Iceland (1)"
- [String22] := " India (1)"
- [String23] := " Indonesia (1)"
- [String24] := " Ireland (4)"
- [String25] := " Italy (1)"
- [String26] := " Japan (2)"
- [String27] := " Korea,South (3)"
- [String28] := " Kuwait (1)"
- [String29] := " Malaysia (1)"
- [String30] := " Malta (1)"
- [String31] := " Netherlands (1)"
- [String32] := " New Zealand (1)"
- [String33] := " Norway (1)"
- [String34] := " Philippines (3)"
- [String35] := " Portugal (1)"
- [String36] := " Rumania (5)"
- [String37] := " Saudi Arabia(1)"
- [String38] := " Singapore (1)"
- [String39] := " South Africa(4)"
- [String40] := " Spain (1)"
- [String41] := " Sweden (1)"
- [String42] := " Switzerland (1)"
- [String43] := " Taiwan (3)"
- [String44] := " Thailand (1)"
- [String45] := " United Arab (1)"
- [String46] := " United Kingdom(4)"
- [String47] := " U.S.A (3)"
- [String48] := " Yugoslavia (1)"
-
- [String4] := " 1: PAL-B/G/H "
- [String5] := " 2: NTSC-Japan "
- [String6] := " 3: NTSC "
- [String7] := " 4: PAL-I "
- [String8] := " 5: PAL-D/K "
- [String9] := " 6: PAL-M "
-
- [CountryType] := 37
- DialogBox @xy(center, center) 300 214 UseHeader "TV System Type Selection" Returns [Number6] BorDlg
- Font "Courier New" 8
- LTEXT @xy( 10,10) 280 10 [String10]
- BorRadioButtonGroup Uses [CountryType]
- RadioButton @xy( 25, 26) 80 10 [String11]
- RadioButton @xy( 25, 36) 80 10 [String12]
- RadioButton @xy( 25, 46) 80 10 [String13]
- RadioButton @xy( 25, 56) 80 10 [String14]
- RadioButton @xy( 25, 66) 80 10 [String15]
- RadioButton @xy( 25, 76) 80 10 [String16]
- RadioButton @xy( 25, 86) 80 10 [String17]
- RadioButton @xy( 25, 96) 80 10 [String18]
- RadioButton @xy( 25, 106) 80 10 [String19]
- RadioButton @xy( 25, 116) 80 10 [String20]
- RadioButton @xy( 25, 126) 80 10 [String21]
- RadioButton @xy( 25, 136) 80 10 [String22]
- RadioButton @xy( 25, 146) 80 10 [String23]
- RadioButton @xy( 25, 156) 80 10 [String24]
- RadioButton @xy( 25, 166) 80 10 [String25]
- RadioButton @xy( 105, 26) 80 10 [String26]
- RadioButton @xy( 105, 36) 80 10 [String27]
- RadioButton @xy( 105, 46) 80 10 [String28]
- RadioButton @xy( 105, 56) 80 10 [String29]
- RadioButton @xy( 105, 66) 80 10 [String30]
- RadioButton @xy( 105, 76) 80 10 [String31]
- RadioButton @xy( 105, 86) 80 10 [String32]
- RadioButton @xy( 105, 96) 80 10 [String33]
- RadioButton @xy( 105, 106) 80 10 [String34]
- RadioButton @xy( 105, 116) 80 10 [String35]
- RadioButton @xy( 105, 126) 80 10 [String36]
- RadioButton @xy( 105, 136) 80 10 [String37]
- RadioButton @xy( 105, 146) 80 10 [String38]
- RadioButton @xy( 105, 156) 80 10 [String39]
- RadioButton @xy( 105, 166) 80 10 [String40]
- RadioButton @xy( 185, 26) 80 10 [String41]
- RadioButton @xy( 185, 36) 80 10 [String42]
- RadioButton @xy( 185, 46) 80 10 [String43]
- RadioButton @xy( 185, 56) 80 10 [String44]
- RadioButton @xy( 185, 66) 80 10 [String45]
- RadioButton @xy( 185, 76) 80 10 [String46]
- RadioButton @xy( 185, 86) 80 10 [String47]
- RadioButton @xy( 185, 96) 80 10 [String48]
- RTEXT @xy( 185, 116) 80 10 [String4]
- RTEXT @xy( 185, 126) 80 10 [String5]
- RTEXT @xy( 185, 136) 80 10 [String6]
- RTEXT @xy( 185, 146) 80 10 [String7]
- RTEXT @xy( 185, 156) 80 10 [String8]
- RTEXT @xy( 185, 166) 80 10 [String9]
- BorPushButton @xy(125, 180) 38 14 "OK" Ok
- EndDialogBox
-
- ;; NTSC
- if [CountryType] = 5 .OR. [CountryType] = 17 .OR. [CountryType] = 24 .OR. [CountryType] = 33 .OR. [CountryType] = 37
- [TunerHWType] := 1
- [TunerTableNo] := 1
- endif
-
- ;; PAL-B/G/H
- if [CountryType] = 1 .OR. [CountryType] = 2 .OR. [CountryType] = 3 .OR. [CountryType] = 7
- [TunerHWType] := 3
- [TunerTableNo] := 5
- endif
- if [CountryType] = 8 .OR. [CountryType] = 9 .OR. [CountryType] = 11 .OR. [CountryType] = 12
- [TunerHWType] := 3
- [TunerTableNo] := 5
- endif
- if [CountryType] = 13 .OR. [CountryType] = 15 .OR. [CountryType] = 18 .OR. [CountryType] = 19
- [TunerHWType] := 3
- [TunerTableNo] := 5
- endif
- if [CountryType] = 20 .OR. [CountryType] = 21 .OR. [CountryType] = 22 .OR. [CountryType] = 23
- [TunerHWType] := 3
- [TunerTableNo] := 5
- endif
- if [CountryType] = 25 .OR. [CountryType] = 27 .OR. [CountryType] = 28 .OR. [CountryType] = 30
- [TunerHWType] := 3
- [TunerTableNo] := 5
- endif
- if [CountryType] = 31 .OR. [CountryType] = 32 .OR. [CountryType] = 34 .OR. [CountryType] = 35
- [TunerHWType] := 3
- [TunerTableNo] := 5
- endif
- if [CountryType] = 38
- [TunerHWType] := 3
- [TunerTableNo] := 5
- endif
-
- ;; PAL-I
- if [CountryType] = 10 .OR. [CountryType] = 14 .OR. [CountryType] = 29 .OR. [CountryType] = 36
- [TunerHWType] := 6
- [TunerTableNo] := 8
- endif
-
- ;; PAL-D/K
- if [CountryType] = 6 .OR. [CountryType] = 26
- [TunerHWType] := 6
- [TunerTableNo] := 8
- endif
-
- ;; PAL-M
- if [CountryType] = 4
- [TunerHWType] := 1
- [TunerTableNo] := 1
- endif
-
- ;; NTSC-Japan
- if [CountryType] = 16
- [TunerHWType] := 4
- [TunerTableNo] := 3
- endif
-
- EndProcedure
- ;; 05/27/96 Tang added for different Video Systems [AVerMedia]
-
-
- EndScript
-
-