; Generic 20BW-5i/22BW-5i Scanner Driver
; Copyright (c) 2019 Generic

[Version]
Signature="$CHICAGO$"
Class=Image
ClassGUID={6bdd1fc6-810f-11d0-bec7-08002be2092f}
Provider=%MFGName%
DriverVer=05/31/2019,1.0.0.0
CatalogFile=GARRWTG.cat

[SourceDisksNames]
1=%DISKName%,,,

[SourceDisksFiles]
GARR205i.ds = 1
GARR225i.ds = 1
GARRWT.chm = 1
GARRWT.dll = 1
DrvInfo.ini = 1
SetupScan.dll = 1
Uninstscan.exe = 1
Uninstscan.dll = 1
ScanCoInstall.dll = 1
DIFxAPI.dll = 1

;Vista
W2GW205i.dll=1
W2GW225i.dll=1

WSDGW205i.dll=1
WSDGW225i.dll=1

[ControlFlags]
ExcludeFromSelect=*

[Manufacturer]
%MFGName%=ONWT,NTamd64.5.1,NTamd64.6.0

;2000
[ONWT]
%MODELName1%=T1WVM11, USB\VID_132B&PID_2382&MI_00
%MODELName3%=T3WVM11, USB\VID_132B&PID_2380&MI_00

%MODELNameA%=TAWVM11.NTamd64.6.0, UMB\WSDSCAN\Generic-20BW-5i
%MODELNameC%=TCWVM11.NTamd64.6.0, UMB\WSDSCAN\Generic-22BW-5i

;XP
[ONWT.NTamd64.5.1]
%MODELName1%=T1WVM11.NTamd64.5.1, USB\VID_132B&PID_2382&MI_00
%MODELName3%=T3WVM11.NTamd64.5.1, USB\VID_132B&PID_2380&MI_00

;Vista
[ONWT.NTamd64.6.0]
%MODELName1%=T1WVM11.NTamd64.6.0, USB\VID_132B&PID_2382&MI_00
%MODELName3%=T3WVM11.NTamd64.6.0, USB\VID_132B&PID_2380&MI_00

%MODELNameA%=TAWVM11.NTamd64.6.0, UMB\WSDSCAN\Generic-20BW-5i
%MODELNameC%=TCWVM11.NTamd64.6.0, UMB\WSDSCAN\Generic-22BW-5i

[DestinationDirs]
ScannerDS1.CopyFiles = 10,twain_32\GARR205i
ScannerDS3.CopyFiles = 10,twain_32\GARR225i
WIA20Driver1.CopyFiles=11
WIA20Driver3.CopyFiles=11
CoInstall.CopyFiles=11

WIA20DriverA.CopyFiles=11
WIA20DriverC.CopyFiles=11

[T1WVM11.CoInstallers]
AddReg          = CoInstall.AddReg
CopyFiles       = CoInstall.CopyFiles
[T3WVM11.CoInstallers]
AddReg          = CoInstall.AddReg
CopyFiles       = CoInstall.CopyFiles

[T1WVM11.NTamd64.5.1.CoInstallers]
AddReg          = CoInstall.AddReg
CopyFiles       = CoInstall.CopyFiles
[T3WVM11.NTamd64.5.1.CoInstallers]
AddReg          = CoInstall.AddReg
CopyFiles       = CoInstall.CopyFiles

[T1WVM11.NTamd64.6.0.CoInstallers]
AddReg          = CoInstall.AddReg
CopyFiles       = CoInstall.CopyFiles
[T3WVM11.NTamd64.6.0.CoInstallers]
AddReg          = CoInstall.AddReg
CopyFiles       = CoInstall.CopyFiles

;2000
[T1WVM11]
Include=sti.inf
Needs=STI.USBSection
CopyFiles=ScannerDS1.CopyFiles
AddReg=T1WVM11.AddReg
[T3WVM11]
Include=sti.inf
Needs=STI.USBSection
CopyFiles=ScannerDS3.CopyFiles
AddReg=T3WVM11.AddReg

;XP
[T1WVM11.NTamd64.5.1]
Include=sti.inf
Needs=STI.USBSection
CopyFiles=ScannerDS1.CopyFiles
AddReg=T1WVM11.AddReg
[T3WVM11.NTamd64.5.1]
Include=sti.inf
Needs=STI.USBSection
CopyFiles=ScannerDS3.CopyFiles
AddReg=T3WVM11.AddReg

;Vista
[T1WVM11.NTamd64.6.0]
Include=sti.inf
Needs=STI.USBSection
CopyFiles=ScannerDS1.CopyFiles,WIA20Driver1.CopyFiles
AddReg=T1WVM11.AddReg,WIA20Driver1.AddReg
;forWIA
PortSelect=no
SubClass=StillImage
DeviceType=1
DeviceSubType=0x1
Capabilities=0x30
DeviceData=WIA20Driver1.DeviceData
ICMProfiles="sRGB Color Space Profile.icm"
[T3WVM11.NTamd64.6.0]
Include=sti.inf
Needs=STI.USBSection
CopyFiles=ScannerDS3.CopyFiles,WIA20Driver3.CopyFiles
AddReg=T3WVM11.AddReg,WIA20Driver3.AddReg
;forWIA
PortSelect=no
SubClass=StillImage
DeviceType=1
DeviceSubType=0x1
Capabilities=0x30
DeviceData=WIA20Driver3.DeviceData
ICMProfiles="sRGB Color Space Profile.icm"

[TAWVM11.NTamd64.6.0]
Include=sti.inf
Needs=STI.WSDSection
CopyFiles=WIA20DriverA.CopyFiles
AddReg=WIA20DriverA.AddReg
;forWIA
PortSelect=no
SubClass=StillImage
DeviceType=1
DeviceSubType=0x1
Capabilities=0x30
DeviceData=WIA20DriverA.DeviceData
ICMProfiles="sRGB Color Space Profile.icm"
[TCWVM11.NTamd64.6.0]
Include=sti.inf
Needs=STI.WSDSection
CopyFiles=WIA20DriverC.CopyFiles
AddReg=WIA20DriverC.AddReg
;forWIA
PortSelect=no
SubClass=StillImage
DeviceType=1
DeviceSubType=0x1
Capabilities=0x30
DeviceData=WIA20DriverC.DeviceData
ICMProfiles="sRGB Color Space Profile.icm"

;2000
[T1WVM11.Services]
Include=sti.inf
Needs=STI.USBSection.Services
[T3WVM11.Services]
Include=sti.inf
Needs=STI.USBSection.Services

;XP
[T1WVM11.NTamd64.5.1.Services]
Include=sti.inf
Needs=STI.USBSection.Services
[T3WVM11.NTamd64.5.1.Services]
Include=sti.inf
Needs=STI.USBSection.Services

[TAWVM11.NTamd64.6.0.HW]
Include=sti.inf
Needs=STI.WSDSectionHW
[TCWVM11.NTamd64.6.0.HW]
Include=sti.inf
Needs=STI.WSDSectionHW

;Vista
[T1WVM11.NTamd64.6.0.Services]
Include=sti.inf
Needs=STI.USBSection.Services
[T3WVM11.NTamd64.6.0.Services]
Include=sti.inf
Needs=STI.USBSection.Services

[TAWVM11.NTamd64.6.0.Services]
Include=sti.inf
Needs=STI.WSDSection.Services
[TCWVM11.NTamd64.6.0.Services]
Include=sti.inf
Needs=STI.WSDSection.Services

;WIA2.0
[WIA20Driver1.DeviceData]
Server=local
UI Class ID={4DB1AD10-3391-11D2-9A33-00C04FA36145}
[WIA20Driver3.DeviceData]
Server=local
UI Class ID={4DB1AD10-3391-11D2-9A33-00C04FA36145}

[WIA20DriverA.DeviceData]
Server=local
UI Class ID={4DB1AD10-3391-11D2-9A33-00C04FA36145}
[WIA20DriverC.DeviceData]
Server=local
UI Class ID={4DB1AD10-3391-11D2-9A33-00C04FA36145}

[T1WVM11.AddReg]
HKR,,DevLoader,0,*ntkern
HKR,,NTMPDriver,0,usbscan.sys
HKLM,System\Currentcontrolset\Services\T1WVM11\Parameters,"MaximumTransferSize",0x10001,4096
HKLM,System\Currentcontrolset\Services\T1WVM11\Parameters,"DebugLevel",0x10001,2
[T3WVM11.AddReg]
HKR,,DevLoader,0,*ntkern
HKR,,NTMPDriver,0,usbscan.sys
HKLM,System\Currentcontrolset\Services\T3WVM11\Parameters,"MaximumTransferSize",0x10001,4096
HKLM,System\Currentcontrolset\Services\T3WVM11\Parameters,"DebugLevel",0x10001,2

;WIA2.0
[WIA20Driver1.AddReg]
HKR,,HardwareConfig,1,4
HKR,,USDClass,,"{FBD3715B-1CAC-410d-A91B-B1C9F9E74ED3}"
HKCR,CLSID\{FBD3715B-1CAC-410d-A91B-B1C9F9E74ED3},,,"Generic 20BW-5i Scanner WIA2.0 Driver"
HKCR,CLSID\{FBD3715B-1CAC-410d-A91B-B1C9F9E74ED3}\InProcServer32,,,%11%\W2GW205i.dll
HKCR,CLSID\{FBD3715B-1CAC-410d-A91B-B1C9F9E74ED3}\InProcServer32,ThreadingModel,,"Both"
[WIA20Driver3.AddReg]
HKR,,HardwareConfig,1,4
HKR,,USDClass,,"{FA180DE7-7C9D-4c24-86ED-C0A82405F6FD}"
HKCR,CLSID\{FA180DE7-7C9D-4c24-86ED-C0A82405F6FD},,,"Generic 22BW-5i Scanner WIA2.0 Driver"
HKCR,CLSID\{FA180DE7-7C9D-4c24-86ED-C0A82405F6FD}\InProcServer32,,,%11%\W2GW225i.dll
HKCR,CLSID\{FA180DE7-7C9D-4c24-86ED-C0A82405F6FD}\InProcServer32,ThreadingModel,,"Both"

[WIA20DriverA.AddReg]
HKR,,HardwareConfig,1,4
HKR,,USDClass,,"{0E26DE8F-F14C-4826-B342-36F3A1520AAD}"
HKCR,CLSID\{0E26DE8F-F14C-4826-B342-36F3A1520AAD},,,"Generic 20BW-5i WSD Scanner WIA2.0 Driver"
HKCR,CLSID\{0E26DE8F-F14C-4826-B342-36F3A1520AAD}\InProcServer32,,,%11%\WSDGW205i.dll
HKCR,CLSID\{0E26DE8F-F14C-4826-B342-36F3A1520AAD}\InProcServer32,ThreadingModel,,"Both"
[WIA20DriverC.AddReg]
HKR,,HardwareConfig,1,4
HKR,,USDClass,,"{DD6A7981-2BC2-4e00-93E2-A4A7C51D3F0C}"
HKCR,CLSID\{DD6A7981-2BC2-4e00-93E2-A4A7C51D3F0C},,,"Generic 22BW-5i WSD Scanner WIA2.0 Driver"
HKCR,CLSID\{DD6A7981-2BC2-4e00-93E2-A4A7C51D3F0C}\InProcServer32,,,%11%\WSDGW225i.dll
HKCR,CLSID\{DD6A7981-2BC2-4e00-93E2-A4A7C51D3F0C}\InProcServer32,ThreadingModel,,"Both"

[CoInstall.AddReg]
HKR,,CoInstallers32,0x10000,"ScanCoInstall.dll,CoDeviceInstall"

[ScannerDS1.CopyFiles]
GARR205i.ds
GARRWT.dll
GARRWT.chm
DrvInfo.ini
SetupScan.dll
Uninstscan.exe
Uninstscan.dll
DIFxAPI.dll
[ScannerDS3.CopyFiles]
GARR225i.ds
GARRWT.dll
GARRWT.chm
DrvInfo.ini
SetupScan.dll
Uninstscan.exe
Uninstscan.dll
DIFxAPI.dll

;Vista
[WIA20Driver1.CopyFiles]
W2GW205i.dll
[WIA20Driver3.CopyFiles]
W2GW225i.dll

[WIA20DriverA.CopyFiles]
WSDGW205i.dll
[WIA20DriverC.CopyFiles]
WSDGW225i.dll

[CoInstall.CopyFiles]
ScanCoInstall.dll
DrvInfo.ini

[Strings]
MFGName="Generic"
MODELName1="Generic 20BW-5i Scanner"
MODELName3="Generic 22BW-5i Scanner"

MODELNameA="Generic 20BW-5i WSD Scanner"
MODELNameC="Generic 22BW-5i WSD Scanner"
DISKName="Generic 20BW-5i/22BW-5i Scanner Driver Disk"
