home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DOS/V Power Report 2000 April
/
VPR0004A.BIN
/
W2KDRVS
/
BROTHER
/
PT9200PC
/
MONITOR.INF
< prev
next >
Wrap
INI File
|
1998-08-07
|
15KB
|
509 lines
;-----------------------------------------------------------------------
; OPTION TYPE
; -----------
; This identifies the Option type we are dealing with. The different
; possible types are:
;
; COMPUTER, VIDEO, POINTER, KEYBOARD, LAYOUT, SCSI, PRINTER, ...
;-----------------------------------------------------------------------
[Identification]
OptionType = MONITOR
;-----------------------------------------------------------------------
; LANGUAGES SUPPORTED
; -------------------
;
; The languages supported by the OEM INF, For every language supported
; we need to have a separate text section for every displayable text
; section.
;
;-----------------------------------------------------------------------
[LanguagesSupported]
JPN
ENG
;-----------------------------------------------------------------------
; OPTION LIST
; -----------
; This section lists the OEM Option key names. These keys are locale
; independent and used to represent the option in a locale independent
; manner.
;
;-----------------------------------------------------------------------
[Options]
"Brother P-touch Serial Port" = PTPROP
;-----------------------------------------------------------------------
; OPTION TEXT SECTION
; -------------------
; These are text strings used to identify the option to the user. There
; are separate sections for each language supported. The format of the
; section name is "OptionsText" concatenated with the Language represented
; by the section.
;
;-----------------------------------------------------------------------
[OptionsTextENG]
"Brother P-touch Serial Port" = "Brother P-touch Serial Port"
[StringsENG]
String1 = "The monitor files for the selected monitor "
String2 = " couldn't be copied. Failed to install the monitor."
String3 = "The monitor "
String4 = " is already installed."
String5 = "Access is denied. You must be logged on as a member of the Administrators "+
"group to carry out this operation."
String6 = " could not be installed."
String7 = "Failed to connect to the print server."
[StringsJPN]
String1 = "選択されたモニタ ファイル"
String2 = " をコピーできませんでした。このモニタのインストールに失敗しました。"
String3 = "モニタ "
String4 = " は既にインストールされています。"
String5 = "アクセスが拒否されました。この操作を行うには、管理者グループの"+
"メンバーとしてログオンしなければなりません。"
String6 = " をインストールできませんでした。"
String7 = "プリント サーバーへの接続に失敗しました。"
;---------------------------------------------------------------------------
; 1. Identify
;
; DESCRIPTION: To verify that this INF deals with the same type of options
; as we are choosing currently.
;
; INPUT: None
;
; OUTPUT: $($R0): STATUS: STATUS_SUCCESSFUL
; $($R1): Option Type (COMPUTER ...)
; $($R2): Diskette description
;---------------------------------------------------------------------------
[Identify]
;
;
read-syms Identification
set Status = STATUS_SUCCESSFUL
set Identifier = $(OptionType)
set Media = #("Source Media Descriptions", 1, 1)
Return $(Status) $(Identifier) $(Media)
;------------------------------------------------------------------------
; 2. ReturnOptions:
;
; DESCRIPTION: To return the option list supported by this INF and the
; localised text list representing the options.
;
;
; INPUT: $($0): Language used. ( ENG | FRN | ... )
;
; OUTPUT: $($R0): STATUS: STATUS_SUCCESSFUL |
; STATUS_NOLANGUAGE
; STATUS_FAILED
;
; $($R1): Option List
; $($R2): Option Text List
;------------------------------------------------------------------------
[ReturnOptions]
;
;
set Status = STATUS_FAILED
set OptionList = {}
set OptionTextList = {}
;
; Check if the language requested is supported
;
set LanguageList = ^(LanguagesSupported, 1)
Ifcontains(i) $($0) in $(LanguageList)
goto returnoptions
else
set Status = STATUS_NOLANGUAGE
goto finish_ReturnOptions
endif
;
; form a list of all the options and another of the text representing
;
returnoptions = +
set OptionList = ^(Options, 0)
set OptionTextList = ^(OptionsText$($0), 1)
set Status = STATUS_SUCCESSFUL
finish_ReturnOptions = +
Return $(Status) $(OptionList) $(OptionTextList)
;***************************************
; INTERNAL INSTALL ENTRY POINT FROM INF
;***************************************
;
; 3. InstallOption:
;
; FUNCTION: To copy files representing OEM Options
; To configure the installed option
; To update the registry for the installed option
;
; INPUT: $($0): Language to use
; $($1): OptionID to install
; $($2): SourceDirectory
; $($4): AddCopy (YES | NO)
; $($5): DoCopy (YES | NO)
; $($6): DoConfig (YES | NO)
;
; OUTPUT: $($R0): STATUS: STATUS_SUCCESSFUL |
; STATUS_NOLANGUAGE |
; STATUS_USERCANCEL |
; STATUS_FAILED
;
[InstallOption]
;
; Set default values for
;
set Status = STATUS_FAILED
;
; extract parameters
;
set Option = $($1)
set SrcDir = $($2)
set AddCopy = $($3)
set DoCopy = $($4)
set DoConfig = $($5)
;
; Check if the language requested is supported
;
set LanguageList = ^(LanguagesSupported, 1)
Ifcontains(i) $($0) in $(LanguageList)
else
set Status = STATUS_NOLANGUAGE
goto finish_InstallOption
endif
read-syms Strings$($0)
read-syms UiVars
detect UiVars
;
; check to see if Option is supported.
;
set OptionList = ^(Options, 0)
ifcontains $(Option) in $(OptionList)
else
goto finish_InstallOption
endif
set OptionList = ""
set OptionFile = #(Options, $(Option), 1)
installtheoption = +
;
; Code to add files to copy list
;
ifstr(i) $(AddCopy) == "YES"
install Install-AddCopyOption
ifstr(i) $(STF_INSTALL_OUTCOME) != "STF_SUCCESS"
Debug-Output "Adding port monitor files to copy list failed"
goto finish_InstallOption
endif
endif
ifstr(i) $(DoCopy) == "YES"
read-syms ProgressCopy$($0)
install Install-DoCopyOption
ifstr(i) $(STF_INSTALL_OUTCOME) == "STF_FAILURE"
Debug-Output "Copying files failed"
goto finish_InstallOption
else-ifstr(i) $(STF_INSTALL_OUTCOME) == "STF_USERQUIT"
set Status = STATUS_USERCANCEL
goto finish_InstallOption
endif
endif
ifstr(i) $(DoConfig) == "YES"
set MonitorPath = $(STF_WINDOWSSYSPATH)"\"#(Files-Layout, $(OptionFile), 2)
set OptionText = #(OptionsText$($0), $(Option), 1)
LibraryProcedure STATUS,$(!LIBHANDLE),CheckFileExistance $(MonitorPath)
ifstr(i) $(STATUS) == "NO"
shell "subroutn.inf" SetupMessage $($0) "NONFATAL" $(String1)$(OptionText)$(String2)
Debug-Output "Copying port monitor files failed"
goto finish_InstallOption
endif
install Install-Configure
ifstr(i) $(STF_INSTALL_OUTCOME) == "STF_FAILURE"
Debug-Output "Installing port monitor failed"
goto finish_InstallOption
else-ifstr(i) $(STF_INSTALL_OUTCOME) == "STF_USERQUIT"
set Status = STATUS_USERCANCEL
goto finish_InstallOption
endif
ifstr(i) $(STATUS) != "ADDED"
ifstr(i) $(STATUS) == "PRESENT"
shell "subroutn.inf" SetupMessage $($0) "NONFATAL" $(String3)$(OptionText)$(String4)
set Status = STATUS_SUCCESSFUL
else-ifstr(i) $(STATUS) == "DENIED"
shell "subroutn.inf" SetupMessage $($0) "NONFATAL" $(String5)
goto finish_InstallOption
else
LibraryProcedure STATUS,$(!LIBHANDLE),CheckFileExistance $(MonitorPath)
ifstr(i) $(STATUS) != "YES"
shell "subroutn.inf" SetupMessage $($0) "NONFATAL" $(String3)$(OptionText)$(String6)
goto finish_InstallOption
endif
endif
endif
endif
set Status = STATUS_SUCCESSFUL
finish_InstallOption = +
Return $(Status)
[Install-AddCopyOption]
set STF_VITAL = ""
set STF_OVERWRITE = "VERIFYSOURCEOLDER"
;
; Add the files to the copy list
;
AddSectionKeyFileToCopyList Files-Layout +
$(OptionFile) +
$(SrcDir) +
$(!STF_MONITORPATH)
AddSectionFilesToCopyList Files-$(OptionFile) +
$(SrcDir) +
$(!STF_MONITORPATH)
exit
[Install-DoCopyOption]
;
; Copy files in the copy list
;
CopyFilesInCopyList
exit
[Install-Configure]
set Model = $(Option)
set Monitor = #(Files-Layout, $(OptionFile), 2)
LibraryProcedure STATUS,$(!LIBHANDLE), SetupAddPrinterMonitor +
$(Model) +
$(!STF_PRNENVIRONM) +
$(Monitor) +
$(!STF_PRINTSERVER)
exit
;**************************************************************************
; PROGRESS GUAGE VARIABLES
;**************************************************************************
[ProgressCopyENG]
ProCaption = "Windows NT Setup"
ProCancel = "Cancel"
ProCancelMsg = "Windows NT is not correcly installed. Are you sure you want "+
"to cancel copying files?"
ProCancelCap = "Setup Message"
ProText1 = "Copying:"
ProText2 = "To:"
[ProgressCopyJPN]
ProCaption = "Windows NT セットアップ"
ProCancel = "キャンセル"
ProCancelMsg = "Windows NT は正しくインストールされていません。"+
"ファイルのコピーを中止しますか?"
ProCancelCap = "セットアップ メッセージ"
ProText1 = "コピー元:"
ProText2 = "コピー先:"
;***************************************************************
; EXTERNAL INSTALL ENTRY POINT FROM CONTROL PANEL
;***************************************************************
;
;
; 4. ExternalInstallOption:
;
; FUNCTION: To copy files representing OEM Options
; To configure the installed option
; To update the registry for the installed option
;
; INPUT: /t STF_LANGUAGE = Language to use (ENG)
; /t OPTION = Option to install (eg. 0010209)
; /t ADDCOPY = YES | NO
; /t DOCOPY = YES | NO
; /t DOCONFIG = YES | NO
;
; OUTPUT: Exit code from process = 0 if okay
; Anything else --> Error
;
[ExternalInstallOption]
;
; set this to a non-zero value if you want to see debug-output statements
; under ntsd
;
Set !G:DebugOutputControl = 0
;
; Set up global variables needed by install option
;
set Exit_Code = $(!SETUP_ERROR_GENERAL)
set DrivesToFree = {}
install LoadSetupLibrary
; check externally passed parameters
ifstr(i) $(STF_LANGUAGE) == ""
goto end
else-ifstr(i) $(OPTION) == ""
goto end
else-ifstr(i) $(ADDCOPY) == ""
goto end
else-ifstr(i) $(DOCOPY) == ""
goto end
else-ifstr(i) $(DOCONFIG) == ""
goto end
endif
read-syms PlatformID
read-syms ProductType
set STF_PRNPLATFORM = "w32x86"
set STF_PRNENVIRONM = "Windows NT x86"
read-syms UiVars
detect UiVars
read-syms Strings$(STF_LANGUAGE)
ifstr(i) $(STF_SRCDIR) != $(STF_CWDDIR)
goto skip_asksource
endif
set STF_SRCDIR = A:\
shell "registry.inf" GetNTSource
ifint $($ShellCode) != $(!SHELL_CODE_OK)
else-ifstr(i) $($R0) != STATUS_SUCCESSFUL
else
set STF_SRCDIR = $($R1)
endif
;
; ask for the setup sources
;
shell "subroutn.inf" DoAskSource $(STF_SRCDIR)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output "shelling DoAskSource failed"
goto end
endif
ifstr(i) $($R0) == STATUS_SUCCESSFUL
set STF_SRCDIR = $($R1)
ifstr(i) $($R2) != ""
set DrivesToFree = >($(DrivesToFree), $($R2))
endif
else
goto end
endif
skip_asksource = +
;
LibraryProcedure IsFullPath, $(!LIBHANDLE), CheckPathFullPathSpec $(STF_MONITORPATH)
ifstr(i) $(IsFullPath) == "NO"
LibraryProcedure STATUS, $(!LIBHANDLE), ProcessForUNC $(STF_MONITORPATH)
ifstr(i) $(STATUS) == "ERROR"
shell "subroutn.inf" SetupMessage $(!STF_LANGUAGE) "NONFATAL" $(String7)
goto end
else-ifstr(i) $(STATUS) == "NOT-UNC"
shell "subroutn.inf" SetupMessage $(!STF_LANGUAGE) "NONFATAL" $(String7)
goto end
else-ifstr(i) $(STATUS) == "UNC-FAILCONNECT"
shell "subroutn.inf" SetupMessage $(!STF_LANGUAGE) "NONFATAL" $(String7)
goto end
else
set STF_MONITORPATH = $(STATUS)
endif
endif
shell "" InstallOption $(STF_LANGUAGE) $(OPTION) $(STF_SRCDIR) $(ADDCOPY) $(DOCOPY) $(DOCONFIG)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output "Execing Configuring hardware options failed"
goto end
endif
ifstr(i) $($R0) == STATUS_SUCCESSFUL
set Exit_Code = $(!SETUP_ERROR_SUCCESS)
else-ifstr(i) $($R0) == STATUS_USERCANCEL
set Exit_Code = $(!SETUP_ERROR_USERCANCEL)
endif
end =+
ForListDo $(DrivesToFree)
LibraryProcedure STATUS,$(!LIBHANDLE), DeleteNetConnection $($) "TRUE"
EndForListDo
install FreeSetupLibrary
exit
[LoadSetupLibrary]
LoadLibrary "x" $(!STF_CWDDIR)setupdll.dll !LIBHANDLE
exit
[FreeSetupLibrary]
FreeLibrary $(!LIBHANDLE)
exit
[PlatformID]
PlatformID_I386 = I386
[UiVars]
STF_CONTROLSET = CurrentControlSet
STF_WINDOWSPATH = "" ? $(!LIBHANDLE) GetWindowsNtDir
STF_WINDOWSSYSPATH = "" ? $(!LIBHANDLE) GetWindowsNtSysDir
STF_MONITORPATH = "" ? $(!LIBHANDLE) GetWindowsNtSysDir
[Source Media Descriptions]
1 = "Brother P-TOUCH PC Driver Disk", TAGFILE = Data.tag
[Signature]
FileType = MICROSOFT_FILE
[GetSignature]
read-syms Signature
return $(FileType)
[ProductType]
STF_PRODUCT = Winnt
STF_PLATFORM = I386
[Files-Layout]
PTPROP =1,PTPROP.DLL , SIZE=999
[Files-PTPROP]
PTPROPR =1,PTPROPR.DLL , SIZE=999