[Identification]
    OptionType = SCSI
[MiniportDrivers]
    cpqarray = !SERVICE_KERNEL_DRIVER, "SCSI Miniport", !SERVICE_ERROR_NORMAL,256, %SystemRoot%\System32\IoLogMsg.dll , 7, cpqarray
    delldsa  = !SERVICE_KERNEL_DRIVER, "SCSI Miniport", !SERVICE_ERROR_NORMAL,257, %SystemRoot%\System32\IoLogMsg.dll , 7, delldsa
    ncr53c9x = !SERVICE_KERNEL_DRIVER, "SCSI Miniport", !SERVICE_ERROR_NORMAL,  1, %SystemRoot%\System32\IoLogMsg.dll , 7, ncr539x
    spock    = !SERVICE_KERNEL_DRIVER, "SCSI Miniport", !SERVICE_ERROR_NORMAL,  2, %SystemRoot%\System32\IoLogMsg.dll , 7, spock
    oliscsi  = !SERVICE_KERNEL_DRIVER, "SCSI Miniport", !SERVICE_ERROR_NORMAL,  3, %SystemRoot%\System32\IoLogMsg.dll , 7, oliscsi
    ncrc700  = !SERVICE_KERNEL_DRIVER, "SCSI Miniport", !SERVICE_ERROR_NORMAL,  4, %SystemRoot%\System32\IoLogMsg.dll , 7, ncrc700
    ncrc710  = !SERVICE_KERNEL_DRIVER, "SCSI Miniport", !SERVICE_ERROR_NORMAL,  5, %SystemRoot%\System32\IoLogMsg.dll , 7, ncrc710
    aha154x  = !SERVICE_KERNEL_DRIVER, "SCSI Miniport", !SERVICE_ERROR_NORMAL,  6, %SystemRoot%\System32\IoLogMsg.dll , 7, aha154x
    sparrow  = !SERVICE_KERNEL_DRIVER, "SCSI Miniport", !SERVICE_ERROR_NORMAL,  7, %SystemRoot%\System32\IoLogMsg.dll , 7, sparrow
    aha174x  = !SERVICE_KERNEL_DRIVER, "SCSI Miniport", !SERVICE_ERROR_NORMAL,  8, %SystemRoot%\System32\IoLogMsg.dll , 7, aha174x
    dptscsi  = !SERVICE_KERNEL_DRIVER, "SCSI Miniport", !SERVICE_ERROR_NORMAL,  9, %SystemRoot%\System32\IoLogMsg.dll , 7, dptscsi
    buslogic = !SERVICE_KERNEL_DRIVER, "SCSI Miniport", !SERVICE_ERROR_NORMAL, 27, %SystemRoot%\System32\IoLogMsg.dll , 7, buslogic
    fd16_700 = !SERVICE_KERNEL_DRIVER, "SCSI Miniport", !SERVICE_ERROR_NORMAL, 16, %SystemRoot%\System32\IoLogMsg.dll , 7, fd16_700
    arrow    = !SERVICE_KERNEL_DRIVER, "SCSI Miniport", !SERVICE_ERROR_NORMAL, 21, %SystemRoot%\System32\IoLogMsg.dll , 7, arrow
    atapi    = !SERVICE_KERNEL_DRIVER, "SCSI Miniport", !SERVICE_ERROR_NORMAL, 25, %SystemRoot%\System32\IoLogMsg.dll , 7, atapi
    ncrc810  = !SERVICE_KERNEL_DRIVER, "SCSI Miniport", !SERVICE_ERROR_NORMAL, 26, %SystemRoot%\System32\IoLogMsg.dll , 7, ncrc810
    ami0nt   = !SERVICE_KERNEL_DRIVER, "SCSI Miniport", !SERVICE_ERROR_NORMAL, 13, %SystemRoot%\System32\IoLogMsg.dll , 7, ami0nt
    aic78xx  = !SERVICE_KERNEL_DRIVER, "SCSI Miniport", !SERVICE_ERROR_NORMAL, 30, %SystemRoot%\System32\IoLogMsg.dll , 7, aic78xx
    dac960nt = !SERVICE_KERNEL_DRIVER, "SCSI Miniport", !SERVICE_ERROR_NORMAL, 32, %SystemRoot%\System32\IoLogMsg.dll , 7, dac960nt
    ql10wnt  = !SERVICE_KERNEL_DRIVER, "SCSI Miniport", !SERVICE_ERROR_NORMAL, 35, %SystemRoot%\System32\IoLogMsg.dll , 7, ql10wnt
    amsint   = !SERVICE_KERNEL_DRIVER, "SCSI Miniport", !SERVICE_ERROR_NORMAL, 36, %SystemRoot%\System32\IoLogMsg.dll , 7, amsint
    adp460   = !SERVICE_KERNEL_DRIVER, "SCSI Miniport", !SERVICE_ERROR_NORMAL,  7, %SystemRoot%\System32\IoLogMsg.dll , 7, sparrow
    fd16pcmcianew = !SERVICE_KERNEL_DRIVER, "SCSI Miniport", !SERVICE_ERROR_NORMAL, 16, %SystemRoot%\System32\IoLogMsg.dll , 7, fd16_700

[Identify]
    read-syms Identification
    set Status     = STATUS_SUCCESSFUL
    set Identifier = $(OptionType)
    set Media      = #("Source Media Descriptions", 1, 1)
    Return $(Status) $(Identifier) $(Media)
[ReturnOptions]
    set Status        = STATUS_FAILED
    set OptionList     = {}
    set OptionTextList = {}
    set LanguageList = ^(LanguagesSupported, 1)
    Ifcontains(i) $($0) in $(LanguageList)
        goto returnoptions
    else
        set Status = STATUS_NOLANGUAGE
        goto finish_ReturnOptions
    endif
returnoptions = +
    set OptionList     = ^(Options, 0)
    set OptionTextList = ^(OptionsText$($0), 1)
    set Status         = STATUS_SUCCESSFUL
finish_ReturnOptions = +
    Return $(Status) $(OptionList) $(OptionTextList)
[InstallOption]
    set Status = STATUS_FAILED
    set DrivesToFree = {}
    set Option   = $($1)
    set SrcDir   = $($2)
    set AddCopy  = $($3)
    set DoCopy   = $($4)
    set DoConfig = $($5)
    set LanguageList = ^(LanguagesSupported, 1)
    Ifcontains(i) $($0) in $(LanguageList)
    else
        set Status = STATUS_NOLANGUAGE
        goto finish_InstallOption
    endif
    read-syms Strings$($0)
    set OptionList = ^(Options, 0)
    ifcontains $(Option) in $(OptionList)
    else
        Debug-Output "SCSI.INF: SCSI option is not supported."
        goto finish_InstallOption
    endif
    set OptionList = ""
    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 = +
    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)
                Debug-Output "SCSI.INF: shelling DriversExist failed"
                goto finish_InstallOption
            endif
            ifstr(i) $($R0) == STATUS_CURRENT
            else-ifstr(i) $($R0) == STATUS_NEW
                set DoActualCopy = YES
            else-ifstr(i) $($R0) == STATUS_USERCANCEL
                Debug-Output "SCSI.INF: User cancelled SCSI installation"
                goto finish_InstallOption
            else
                Debug-Output "SCSI.INF: Error reported in DriversExist routine in SUBROUTN.INF"
                goto finish_InstallOption
            endif
        endif
        ifstr(i) $(DoActualCopy) == YES
            shell "subroutn.inf" DoAskSourceEx $(SrcDir) $(String2)
            ifint $($ShellCode) != $(!SHELL_CODE_OK)
                Debug-Output "SCSI.INF: shelling DoAskSourceEx failed"
                goto finish_InstallOption
            endif
            ifstr(i) $($R0) == STATUS_SUCCESSFUL
                set SrcDir = $($R1)
                ifstr(i) $($R2) != ""
                    set DrivesToFree = >($(DrivesToFree), $($R2))
                endif
            else
                Debug-Output "SCSI.INF: User cancelled asking source."
                goto finish_InstallOption
            endif
            install Install-AddCopyOption
            ifstr(i) $(STF_INSTALL_OUTCOME) != "STF_SUCCESS"
                Debug-Output "Adding SCSI files to copy list failed"
                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"
            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"
        shell "registry.inf" CheckSetupModify
        ifint $($ShellCode) != $(!SHELL_CODE_OK)
            goto finish_InstallOption
        endif
        ifstr(i) $($R0) != STATUS_SUCCESSFUL
            goto finish_InstallOption
        endif
        set ServiceNode   =  #(MiniportDrivers, $(MiniportDriver), 7)
        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)
            Debug-Output "Couldn't execute MakeServicesEntry in registry.inf"
            goto finish_InstallOption
        endif
        ifstr(i) $($R0) != STATUS_SUCCESSFUL
            Debug-Output "MakeServicesEntry failed for SCSI"
            goto finish_InstallOption
        endif
        shell "registry.inf" ModifyServicesEntry disk $(!SERVICE_BOOT_START)
    endif
    set Status = STATUS_SUCCESSFUL
finish_InstallOption = +
    ForListDo $(DrivesToFree)
        LibraryProcedure STATUS,$(!LIBHANDLE), DeleteNetConnection $($) "TRUE"
    EndForListDo
    Return $(Status)
[Install-AddCopyOption]
    AddSectionKeyFileToCopyList   Files-ScsiMiniportDrivers         +
                                  $(MiniportDriver)                 +
                                  $(SrcDir)                      +
                                  $(!STF_WINDOWSSYSPATH)\drivers
    exit
[Install-DoCopyOption]
    CopyFilesInCopyList
    exit
[DeInstallOption]
    set Status   = STATUS_FAILED
    set Option   = $($1)
    set LanguageList = ^(LanguagesSupported, 1)
    Ifcontains(i) $($0) in $(LanguageList)
    else
        set Status = STATUS_NOLANGUAGE
        goto finish_DeInstallOption
    endif
    read-syms Strings$($0)
    set OptionList = ^(Options, 0)
    ifcontains $(Option) in $(OptionList)
    else
        goto finish_DeInstallOption
    endif
    set OptionList = ""
    set MiniportDriver = #(Options, $(Option), 1)
    set MiniportFile   = #(Files-ScsiMiniportDrivers, $(MiniportDriver), 2)
    set FilePath       = $(!STF_WINDOWSSYSPATH)"\drivers\"$(MiniportFile)
    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"
        set Status = STATUS_SUCCESSFUL
        goto finish_DeInstallOption
    endif
do_removal =+
    shell "registry.inf" RemoveServicesEntry $(MiniportDriver)
    ifint $($ShellCode) != $(!SHELL_CODE_OK)
        Debug-Output "SCSI.INF: Failed to shell RemoveServicesEntry"
        goto finish_DeInstallOption
    endif
    ifstr(i) $($R0) != STATUS_SUCCESSFUL
        Debug-Output "SCSI.INF: Failed to disable services entry"
        goto finish_DeInstallOption
    endif
    set Status = STATUS_SUCCESSFUL
finish_DeInstallOption =+
    return $(Status)
[GetInstalledOptions]
    set Status = STATUS_FAILED
    set InstalledOptions = {}
    set InstalledOptionsText = {}
    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)
[Source Media Descriptions]
    1 = "Windows NT Workstation CD-ROM" , TAGFILE = cdrom_w.40
[Signature]
    FileType = MICROSOFT_FILE
[GetSignature]
    read-syms Signature
    return $(FileType)
[ProductType]
STF_PRODUCT  = Winnt
STF_PLATFORM = I386
[Files-ScsiMiniportDrivers]
aha154x = 1,AHA154X.SYS , SIZE=999
aha174x = 1,AHA174X.SYS , SIZE=999
aic78xx = 1,AIC78XX.SYS , SIZE=999
ami0nt = 1,AMI0NT.SYS , SIZE=999
amsint = 1,AMSINT.SYS , SIZE=999
arrow = 1,ARROW.SYS , SIZE=999
atapi = 1,ATAPI.SYS , SIZE=999
buslogic = 1,BUSLOGIC.SYS , SIZE=999
cpqarray = 1,CPQARRAY.SYS , SIZE=999
dac960nt = 1,DAC960NT.SYS , SIZE=999
delldsa = 1,DELLDSA.SYS , SIZE=999
dptscsi = 1,DPTSCSI.SYS , SIZE=999
fd16_700 = 1,FD16_700.SYS , SIZE=999
ncr53c9x = 1,NCR53C9X.SYS , SIZE=999
ncrc700 = 1,NCRC700.SYS , SIZE=999
ncrc710 = 1,NCRC710.SYS , SIZE=999
ncrc810 = 1,NCRC810.SYS , SIZE=999
oliscsi = 1,OLISCSI.SYS , SIZE=999
ql10wnt = 1,QL10WNT.SYS , SIZE=999
sparrow = 1,SPARROW.SYS , SIZE=999
spock = 1,SPOCK.SYS , SIZE=999
adp460= 1,SPARROW.SYS, SIZE=999
fd16pcmcianew= 1,FD16_700.SYS, SIZE=999

[LanguagesSupported]
    ENG
[OptionsTextENG]
    "AHA154X"    = "Adaptec 154x/164x"
    "AHA174X"    = "Adaptec 174x"
    "SPARROW"    = "Adaptec 151x/152x/AIC 6260/6360"
    "ARROW"      = "Adaptec 274x/284x/AIC 777x"
    "AIC78XX"    = "Adaptec 294x/AIC 78xx (PCI)"
    "AMSINT"     = "AMD PCI SCSI/NET Adapter"
    "AMI0NT"     = "AMIscsi"
    "BUSLOGIC"   = "BusLogic Standard SCSI Host Adapters"
    "CPQARRAY"   = "Compaq Drive Array"
    "DELLDSA"    = "Dell Drive Array"
    "DPTSCSI"    = "DPT (SCSI)"
    "FD16_700"   = "Future Domain 16xx / PCI / SCSI2Go"
    "SPOCK"      = "IBM PS/2"
    "ATAPI"      = "IDE CD-ROM (ATAPI 1.2) / Dual-channel PCI IDE"
    "DAC960NT"   = "Mylex DAC960 / DEC SWXCR-Ex"
    "NCR53C9X"   = "NCR 53c9x"
    "NCRC700"    = "NCR 53c700"
    "NCRC710"    = "NCR 53c710"
    "NCRC810"    = "NCR PCI (53c810)"
    "OLISCSI"    = "Olivetti ESC-1/ESC-2"
    "QL10WNT"    = "QLogic PCI SCSI adapters"
    "ADP460" 	 = "Adaptec SlimSCSI 16-Bit PCMCIA SCSI Host"
    "FD16PCMCIANEW" = "Future Domain SCSI2Go PCMCIA SCSI Host Adapter"

[Options]
    "AHA154X"    = aha154x
    "AHA174X"    = aha174x
    "SPARROW"    = sparrow
    "ARROW"      = arrow
    "AIC78XX"    = aic78xx
    "AMSINT"     = amsint
    "AMI0NT"     = ami0nt
    "BUSLOGIC"   = buslogic
    "CPQARRAY"   = cpqarray
    "DELLDSA"    = delldsa
    "DPTSCSI"    = dptscsi
    "FD16_700"   = fd16_700
    "SPOCK"      = spock
    "ATAPI"      = atapi
    "DAC960NT"   = dac960nt
    "NCR53C9X"   = ncr53c9x
    "NCRC700"    = ncrc700
    "NCRC710"    = ncrc710
    "NCRC810"    = ncrc810
    "OLISCSI"    = oliscsi
    "QL10WNT"    = ql10wnt
    "ADP460"     = adp460
    "FD16PCMCIANEW" = fd16pcmcianew

[ProgressCopyENG]
    ProCaption   = "Windows NT Setup"
    ProCancel    = "Cancel"
    ProCancelMsg = "Windows NT is not correctly installed.  Are you sure you want "+
                   "to cancel copying files?"
    ProCancelCap = "Setup Message"
    ProText1     = "Copying:"
    ProText2     = "To:"
[StringsENG]
    String1 = "SCSI Adapter"
    String2 = "Setup needs to copy SCSI driver files."$(!LF)$(!LF)+
              "Setup will look for the files in the location specified below. If you want "+
              "Setup to look in a different place, type the new location. When the location "+
              "is correct, click Continue."
