home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Windows NT Super Tune-Up Kit
/
PIE-WindowsNTSuperTuneUpKit-1997.iso
/
DRIVERS
/
SCSI_CD
/
PHILIPS
/
206_NT
/
OEMSETUP.INF
< prev
next >
Wrap
INI File
|
1994-05-11
|
21KB
|
662 lines
;-----------------------------------------------------------------------
; Lms206 Device Driver Installation/Setup File
;-----------------------------------------------------------------------
[Identification]
OptionType = SCSI
[LanguagesSupported]
ENG
;-----------------------------------------------------------------------
; OPTION LIST
; -----------
; This section lists the Option key names. These keys are locale
; independent and used to represent the option in a locale independent
; manner.
;
;-----------------------------------------------------------------------
[Options]
"OEMSRC" = Lms206Cdrom
;-----------------------------------------------------------------------
; 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]
"OEMSRC" = "Lms206 CD-Rom Device Driver"
;-----------------------------------------------------------------------------------------
; SCSI MINIPORT DRIVERS:
;
; Order of the information:
;
; Class driver = Type, Group, ErrorControl, Tag, EventMessageFile, TypesSupported
;
;-----------------------------------------------------------------------------------------
[MiniportDrivers]
Lms206Cdrom = !SERVICE_KERNEL_DRIVER, "SCSI Miniport", !SERVICE_ERROR_NORMAL, 17, %SystemRoot%\System32\IoLogMsg.dll , 7
;---------------------------------------------------------------------------
; 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)
;
; 3. InstallOption:
;
; FUNCTION: To copy files representing 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
; $($3): AddCopy (YES | NO)
; $($4): DoCopy (YES | NO)
; $($5): DoConfig (YES | NO)
;
; OUTPUT: $($R0): STATUS: STATUS_SUCCESSFUL |
; STATUS_NOLANGUAGE |
; STATUS_USERCANCEL |
; STATUS_FAILED
;
[InstallOption]
;
; Set default values for
;
set Status = STATUS_FAILED
set DrivesToFree = {}
;
; 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)
;
; check to see if Option is supported.
;
set OptionList = ^(Options, 0)
ifcontains $(Option) in $(OptionList)
else
goto finish_InstallOption
endif
set OptionList = ""
;
; Option has been defined already
;
set MiniportDriver = #(Options, $(Option), 1)
set Type = $(#(MiniportDrivers, $(MiniportDriver), 1))
set Group = #(MiniportDrivers, $(MiniportDriver), 2)
set ErrorControl = $(#(MiniportDrivers, $(MiniportDriver), 3))
set Tag = #(MiniportDrivers, $(MiniportDriver), 4)
set EventMessageFile = #(MiniportDrivers, $(MiniportDriver), 5)
set TypesSupported = #(MiniportDrivers, $(MiniportDriver), 6)
set Start = $(!SERVICE_BOOT_START)
installtheoption = +
;
; Code to add files to copy list
;
ifstr(i) $(AddCopy) == "YES"
set DoActualCopy = NO
set FileToCheck = #(Files-ScsiMiniportDrivers, $(MiniportDriver), 2)
LibraryProcedure STATUS,$(!LIBHANDLE),CheckFileExistance $(!STF_WINDOWSSYSPATH)"\drivers\"$(FileToCheck)
ifstr(i) $(STATUS) == NO
set DoActualCopy = YES
endif
ifstr(i) $(DoActualCopy) == NO
shell "subroutn.inf" DriversExist $($0) $(String1)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
goto finish_InstallOption
endif
ifstr(i) $($R0) == STATUS_CURRENT
else-ifstr(i) $($R0) == STATUS_NEW
set DoActualCopy = YES
else-ifstr(i) $($R0) == STATUS_USERCANCEL
goto finish_InstallOption
else
goto finish_InstallOption
endif
endif
ifstr(i) $(DoActualCopy) == YES
shell "subroutn.inf" DoAskSourceEx $(SrcDir) $(String2)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
goto finish_InstallOption
endif
ifstr(i) $($R0) == STATUS_SUCCESSFUL
set SrcDir = $($R1)
ifstr(i) $($R2) != ""
set DrivesToFree = >($(DrivesToFree), $($R2))
endif
else
goto finish_InstallOption
endif
install Install-AddCopyOption
ifstr(i) $(STF_INSTALL_OUTCOME) != "STF_SUCCESS"
goto finish_InstallOption
endif
else
set DoCopy = NO
endif
endif
ifstr(i) $(DoCopy) == "YES"
read-syms ProgressCopy$($0)
install Install-DoCopyOption
ifstr(i) $(STF_INSTALL_OUTCOME) == "STF_FAILURE"
goto finish_InstallOption
else-ifstr(i) $(STF_INSTALL_OUTCOME) == "STF_USERQUIT"
set Status = STATUS_USERCANCEL
goto finish_InstallOption
endif
endif
ifstr(i) $(DoConfig) == "YES"
;
; run a privilege check on modifying the setup node
;
shell "registry.inf" CheckSetupModify
ifint $($ShellCode) != $(!SHELL_CODE_OK)
goto finish_InstallOption
endif
ifstr(i) $($R0) != STATUS_SUCCESSFUL
goto finish_InstallOption
endif
;
; Get optional user parameters
;
; read-syms GetDevParamsDlg$(!STF_LANGUAGE)
; shell "" DoGetUserEx $(String9) $(DlgText)
; ifstr(i) $($R0) == STATUS_SUCCESSFUL
; set String9 = $($R1)
; endif
;
; make a new SCSI entry, the entry is created automatically
; enabled
;
set ServiceNode = $(MiniportDriver)
set ServiceBinary = System32\drivers\#(Files-ScsiMiniportDrivers, $(MiniportDriver), 2)
set ServicesValues = { +
{Type, 0, $(!REG_VT_DWORD), $(Type) }, +
{Start, 0, $(!REG_VT_DWORD), $(Start) }, +
{Group, 0, $(!REG_VT_SZ), $(Group) }, +
{ErrorControl, 0, $(!REG_VT_DWORD), $(ErrorControl) }, +
{Tag, 0, $(!REG_VT_DWORD), $(Tag) }, +
{BinaryPathName, 0, $(!REG_VT_EXPAND_SZ), $(ServiceBinary) } +
}
set ParametersValues = ""
set DeviceValues = {}
set EventLogValues = { +
{EventMessageFile, 0, $(!REG_VT_EXPAND_SZ), $(EventMessageFile) }, +
{TypesSupported, 0, $(!REG_VT_DWORD), $(TypesSupported) } +
}
shell "registry.inf" MakeServicesEntry $(ServiceNode) +
$(ServicesValues) +
$(ParametersValues) +
$(DeviceValues) +
$(EventLogValues) +
Parameters
ifint $($ShellCode) != $(!SHELL_CODE_OK)
goto finish_InstallOption
endif
ifstr(i) $($R0) != STATUS_SUCCESSFUL
goto finish_InstallOption
endif
endif
set Key1 = "SYSTEM\CurrentControlSet\Services\Lms206Cdrom\Parameters"
OpenRegKey $(!REG_H_LOCAL) "" $(Key1) $(MaskAllAccess) Key1Handle
ifint $(RegLastError) != $(!REG_ERROR_SUCCESS)
CreateRegKey $(!REG_H_LOCAL) {$(Key1),0,GenericClass} "" $(MaskAllAccess) "" Key1Handle
endif
ifint $(RegLastError) != $(!REG_ERROR_SUCCESS)
CloseRegKey $(Key1Handle)
goto finish_InstallOption
endif
set Key2 = $(Key1)"\Device0"
OpenRegKey $(!REG_H_LOCAL) "" $(Key2) $(MaskAllAccess) Key2Handle
ifint $(RegLastError) != $(!REG_ERROR_SUCCESS)
CreateRegKey $(!REG_H_LOCAL) {$(Key2),0,GenericClass} "" $(MaskAllAccess) "" Key2Handle
endif
ifint $(RegLastError) != $(!REG_ERROR_SUCCESS)
CloseRegKey $(Key1Handle)
CloseRegKey $(Key2Handle)
goto finish_InstallOption
endif
; Shell "", ReduceInfPath, $(Key2)
; SetRegValue $(Key2Handle) {Key2,0,$(!REG_VT_EXPAND_SZ),"DriverParameter"}
CloseRegKey $(Key1Handle)
CloseRegKey $(Key2Handle)
set Status = STATUS_SUCCESSFUL
finish_InstallOption = +
ForListDo $(DrivesToFree)
LibraryProcedure STATUS,$(!LIBHANDLE), DeleteNetConnection $($) "TRUE"
EndForListDo
Return $(Status)
[Install-AddCopyOption]
;
; Add the files to the copy list
;
AddSectionKeyFileToCopyList Files-ScsiMiniportDrivers +
$(MiniportDriver) +
$(SrcDir) +
$(!STF_WINDOWSSYSPATH)\drivers
exit
[Install-DoCopyOption]
;
; Copy files in the copy list
;
CopyFilesInCopyList
exit
;-------------------------------------------------------------------------
; 4. DeInstallOption:
;
; FUNCTION: To remove files representing Option
; To remove the registry entry corresponding to the Option
;
; INPUT: $($0): Language to use
; $($1): OptionID to install
;
; OUTPUT: $($R0): STATUS: STATUS_SUCCESSFUL |
; STATUS_NOLANGUAGE |
; STATUS_USERCANCEL |
; STATUS_FAILED
;-------------------------------------------------------------------------
[DeInstallOption]
;
; Set default values for
;
set Status = STATUS_FAILED
;
; extract parameters
;
set Option = $($1)
;
; Check if the language requested is supported
;
set LanguageList = ^(LanguagesSupported, 1)
Ifcontains(i) $($0) in $(LanguageList)
else
set Status = STATUS_NOLANGUAGE
goto finish_DeInstallOption
endif
read-syms Strings$($0)
;
; check to see if Option is supported.
;
set OptionList = ^(Options, 0)
ifcontains $(Option) in $(OptionList)
else
goto finish_DeInstallOption
endif
set OptionList = ""
;
; fetch details about option
;
set MiniportDriver = #(Options, $(Option), 1)
set MiniportFile = #(Files-ScsiMiniportDrivers, $(MiniportDriver), 2)
set FilePath = $(!STF_WINDOWSSYSPATH)"\drivers\"$(MiniportFile)
;
; check to see if file is installed
; if not give success
;
LibraryProcedure STATUS,$(!LIBHANDLE),CheckFileExistance $(FilePath)
ifstr(i) $(STATUS) == "NO"
set Status = STATUS_SUCCESSFUL
goto finish_DeInstallOption
endif
shell "registry.inf" GetServicesEntryStart $(MiniportDriver)
ifstr(i) $($R0) != "STATUS_SUCCESSFUL"
; this could happen if there is no start value or there is no
; key, in which case the option is not installed
set Status = STATUS_SUCCESSFUL
goto finish_DeInstallOption
endif
ifstr(i) $($R1) == $(!SERVICE_BOOT_START)
shell "subroutn.inf" SetupMessage $(!STF_LANGUAGE) "WARNING" $(String3)
ifstr(i) $($R0) != STATUS_SUCCESSFUL
goto do_removal
endif
ifstr(i) $($R1) == "CANCEL"
goto finish_DeInstallOption
endif
endif
do_removal =+
;
; disable the registry entry
;
shell "registry.inf" RemoveServicesEntry $(MiniportDriver)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
goto finish_DeInstallOption
endif
ifstr(i) $($R0) != STATUS_SUCCESSFUL
goto finish_DeInstallOption
endif
;
; we won't remove the file because we can only do so during the next boot.
; if the user chooses to reinstall the same driver during this boot
; he will still end up deleting the driver on next boot. if the file
; should be deleted a warning should be put up saying that the user should
; not try to reinstall the driver during this boot
;
; AddFileToDeleteList $(FilePath)
set Status = STATUS_SUCCESSFUL
finish_DeInstallOption =+
return $(Status)
;-------------------------------------------------------------------------
; 5. GetInstalledOptions:
;
; FUNCTION: To find out the list of options which are installed
;
; INPUT: $($0): Language to Use
;
; OUTPUT: $($R0): STATUS: STATUS_SUCCESSFUL |
; STATUS_FAILED
;
; $($R1): List of options installed
; $($R2): Option installed Text List
;-------------------------------------------------------------------------
[GetInstalledOptions]
set Status = STATUS_FAILED
set InstalledOptions = {}
set InstalledOptionsText = {}
;
; Check if the language requested is supported
;
set LanguageList = ^(LanguagesSupported, 1)
Ifcontains(i) $($0) in $(LanguageList)
else
set Status = STATUS_NOLANGUAGE
goto finish_GetInstalledOptions
endif
set OptionList = ^(Options, 0)
ForListDo $(OptionList)
set MiniportDriver = #(Options, $($), 1)
set MiniportFile = #(Files-ScsiMiniportDrivers, $(MiniportDriver), 2)
set FilePath = $(!STF_WINDOWSSYSPATH)"\drivers\"$(MiniportFile)
LibraryProcedure STATUS,$(!LIBHANDLE),CheckFileExistance $(FilePath)
ifstr(i) $(STATUS) == "YES"
shell "registry.inf" GetServicesEntryStart $(MiniportDriver)
ifint $($ShellCode) == $(!SHELL_CODE_OK)
ifstr(i) $($R0) == STATUS_SUCCESSFUL
ifstr(i) $($R1) != $(!SERVICE_DISABLED)
set OptionText = #(OptionsText$($0), $($), 1)
set InstalledOptions = >($(InstalledOptions), $($))
set InstalledOptionsText = >($(InstalledOptionsText), $(OptionText))
endif
endif
endif
endif
EndForListDo
set Status = STATUS_SUCCESSFUL
finish_GetInstalledOptions =+
Return $(Status) $(InstalledOptions) $(InstalledOptionsText)
;**************************************************************************
; 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:"
[StringsENG]
String1 = "SCSI Adapter"
String2 = "Please enter the full path to the OEM SCSI "+
"Adapter files. Then choose Continue."
String3 = "The SCSI Adapter has been marked as a boot device. Removing "+
"it may cause the system not to boot."$(!LF)$(!LF)"Are you sure "+
"you want to remove the Adapter."
String9 = "Irq3=15 Mem3=24"
[GetDevParamsDlgENG]
Caption = "Lms Cd-Rom Setup"
Continue = "Continue"
Cancel = "Cancel"
Ok = "Ok"
DlgType = "Edit"
DlgTemplate = "GetDevParams"
DlgText = "Enter the Optional Parameters IRQx, and MEMx where x represents the "+
"Cd-Rom Unit Number 0,1,2, or 3."
Edit1Label = ""
EditTextIn = $(Src)
EditFocus = "ALL"
[DoGetUserEx]
set Status = STATUS_FAILED
set Src = $($0)
set DriveToFree = ""
GetUser = +
read-syms DisketteDlg$(!STF_LANGUAGE)
ui start "Diskette"
ifstr(i) $(DLGEVENT) == "CONTINUE"
set Src = $(EditTextOut)
ui pop 1
LibraryProcedure STATUS, $(!LIBHANDLE), AppendBackSlash $(Src)
ifstr(i) $(STATUS) == "ERROR"
goto finish_DoGetUser
else
set Src = $(STATUS)
set Status = STATUS_SUCCESSFUL
goto finish_DoGetUser
endif
else-ifstr(i) $(DLGEVENT) == "BACK"
ui pop 1
set Status = STATUS_USERCANCEL
goto finish_DoGetUser
else
ui pop 1
goto finish_DoGetUser
endif
finish_DoGetUser = +
Return $(Status) $(Src) $(DriveToFree) $(EditTextOut)
[DisketteDlgENG]
Caption = "LMS Cd-Rom Setup"
Continue = "Continue"
Cancel = "Cancel"
DlgType = "Edit"
DlgTemplate = "DISKETTE"
DlgText = $($1)
Edit1Label = ""
EditTextIn = $(Src)
EditFocus = "ALL"
[ReduceInfPath]
Set RIP_Result = $($0)
Split-String $(RIP_Result) "\" InList
Set BasePath = $(!STF_WINDOWSSYSPATH)"\"
Split-String $(BasePath) "\" BaseList
Set Indx = 0
Set Matched = 0
QueryListSize InListSize, $(InList)
ForListDo $(BaseList)
Set-add Indx = $(Indx),1
Ifint $(Indx) <= $(InListSize)
Set Instr = *($(InList),$(Indx))
Ifstr(i) $($) == $(Instr)
Set-add Matched = $(Matched),1
Endif
Endif
EndForListDo
Ifint $(Indx) == $(Matched)
Set RIP_Result = ""
Set Indx2 = 0
ForListDo $(InList)
Set-add Indx2 = $(Indx2),1
Ifint $(Indx2) > $(Indx)
Set RIP_Result = $(RIP_Result)$($)
Endif
EndForListDo
Endif
Return $(RIP_Result)
[Source Media Descriptions]
1 = "OEM DISK (SCSI)" , TAGFILE = disk1
[Files-ScsiMiniportDrivers]
Lms206Cdrom = 1,lms206.sys