; Generic 19BW-3 PCL/21BW-3 PCL/23BW-3 PCL Scanner Driver
; Copyright (c) 2010 Generic

[Version]
Signature="$CHICAGO$"
Class=Image
ClassGUID={6bdd1fc6-810f-11d0-bec7-08002be2092f}
Provider=%MFGName%
DriverVer=08/30/2011,1.0.0.1
CatalogFile=TGWP.cat

[SourceDisksNames]
1=%DISKName%,,,

[SourceDisksFiles]
TGW21PCL.ds = 1
TGW23PCL.ds = 1
TGW19PCL.ds = 1
TGW.chm = 1
TGW.dll = 1
DrvInfo.ini = 1
SetupScan.dll = 1
Uninstscan.exe = 1
Uninstscan.dll = 1
ScanCoInstall.dll = 1

;XP
W1GW21PCL.dll=1
W1GW23PCL.dll=1
W1GW19PCL.dll=1

;Vista
W2GW21PCL.dll=1
W2GW23PCL.dll=1
W2GW19PCL.dll=1

WSDGW21PCL.dll=1
WSDGW23PCL.dll=1
WSDGW19PCL.dll=1

[ControlFlags]
ExcludeFromSelect=*

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

;2000
[ONWT]
%MODELName2%=T2WVM11, USB\VID_132B&PID_20dd&MI_00
%MODELName4%=T4WVM11, USB\VID_132B&PID_20e5&MI_00
%MODELName6%=T6WVM11, USB\VID_132B&PID_20df&MI_00

%MODELNameB%=TBWVM11.NTx86.6.0, UMB\WSDSCAN\Generic-21BW-3-PCL
%MODELNameD%=TDWVM11.NTx86.6.0, UMB\WSDSCAN\Generic-23BW-3-PCL
%MODELNameF%=TFWVM11.NTx86.6.0, UMB\WSDSCAN\Generic-19BW-3-PCL

;XP
[ONWT.NTx86.5.1]
%MODELName2%=T2WVM11.NTx86.5.1, USB\VID_132B&PID_20dd&MI_00
%MODELName4%=T4WVM11.NTx86.5.1, USB\VID_132B&PID_20e5&MI_00
%MODELName6%=T6WVM11.NTx86.5.1, USB\VID_132B&PID_20df&MI_00

;Vista
[ONWT.NTx86.6.0]
%MODELName2%=T2WVM11.NTx86.6.0, USB\VID_132B&PID_20dd&MI_00
%MODELName4%=T4WVM11.NTx86.6.0, USB\VID_132B&PID_20e5&MI_00
%MODELName6%=T6WVM11.NTx86.6.0, USB\VID_132B&PID_20df&MI_00

%MODELNameB%=TBWVM11.NTx86.6.0, UMB\WSDSCAN\Generic-21BW-3-PCL
%MODELNameD%=TDWVM11.NTx86.6.0, UMB\WSDSCAN\Generic-23BW-3-PCL
%MODELNameF%=TFWVM11.NTx86.6.0, UMB\WSDSCAN\Generic-19BW-3-PCL

[DestinationDirs]
ScannerDS2.CopyFiles = 10,twain_32\TGW21PCL
ScannerDS4.CopyFiles = 10,twain_32\TGW23PCL
ScannerDS6.CopyFiles = 10,twain_32\TGW19PCL
WIADriver2.CopyFiles=11
WIADriver4.CopyFiles=11
WIADriver6.CopyFiles=11
WIA20Driver2.CopyFiles=11
WIA20Driver4.CopyFiles=11
WIA20Driver6.CopyFiles=11
CoInstall.CopyFiles=11

WIA20DriverB.CopyFiles=11
WIA20DriverD.CopyFiles=11
WIA20DriverF.CopyFiles=11

[T2WVM11.CoInstallers]
AddReg          = CoInstall.AddReg
CopyFiles       = CoInstall.CopyFiles
[T4WVM11.CoInstallers]
AddReg          = CoInstall.AddReg
CopyFiles       = CoInstall.CopyFiles
[T6WVM11.CoInstallers]
AddReg          = CoInstall.AddReg
CopyFiles       = CoInstall.CopyFiles

[T2WVM11.NTx86.5.1.CoInstallers]
AddReg          = CoInstall.AddReg
CopyFiles       = CoInstall.CopyFiles
[T4WVM11.NTx86.5.1.CoInstallers]
AddReg          = CoInstall.AddReg
CopyFiles       = CoInstall.CopyFiles
[T6WVM11.NTx86.5.1.CoInstallers]
AddReg          = CoInstall.AddReg
CopyFiles       = CoInstall.CopyFiles

[T2WVM11.NTx86.6.0.CoInstallers]
AddReg          = CoInstall.AddReg
CopyFiles       = CoInstall.CopyFiles
[T4WVM11.NTx86.6.0.CoInstallers]
AddReg          = CoInstall.AddReg
CopyFiles       = CoInstall.CopyFiles
[T6WVM11.NTx86.6.0.CoInstallers]
AddReg          = CoInstall.AddReg
CopyFiles       = CoInstall.CopyFiles

;2000
[T2WVM11]
Include=sti.inf
Needs=STI.USBSection
CopyFiles=ScannerDS2.CopyFiles
AddReg=T2WVM11.AddReg
[T4WVM11]
Include=sti.inf
Needs=STI.USBSection
CopyFiles=ScannerDS4.CopyFiles
AddReg=T4WVM11.AddReg
[T6WVM11]
Include=sti.inf
Needs=STI.USBSection
CopyFiles=ScannerDS6.CopyFiles
AddReg=T6WVM11.AddReg

;XP
[T2WVM11.NTx86.5.1]
Include=sti.inf
Needs=STI.USBSection
CopyFiles=ScannerDS2.CopyFiles,WIADriver2.CopyFiles
AddReg=T2WVM11.AddReg,WIADriver2.AddReg
;forWIA
PortSelect=no
SubClass=StillImage
DeviceType=1
DeviceSubType=0x1
Capabilities=0x30
DeviceData=WIADriver2.DeviceData
ICMProfiles="sRGB Color Space Profile.icm"
[T4WVM11.NTx86.5.1]
Include=sti.inf
Needs=STI.USBSection
CopyFiles=ScannerDS4.CopyFiles,WIADriver4.CopyFiles
AddReg=T4WVM11.AddReg,WIADriver4.AddReg
;forWIA
PortSelect=no
SubClass=StillImage
DeviceType=1
DeviceSubType=0x1
Capabilities=0x30
DeviceData=WIADriver4.DeviceData
ICMProfiles="sRGB Color Space Profile.icm"
[T6WVM11.NTx86.5.1]
Include=sti.inf
Needs=STI.USBSection
CopyFiles=ScannerDS6.CopyFiles,WIADriver6.CopyFiles
AddReg=T6WVM11.AddReg,WIADriver6.AddReg
;forWIA
PortSelect=no
SubClass=StillImage
DeviceType=1
DeviceSubType=0x1
Capabilities=0x30
DeviceData=WIADriver6.DeviceData
ICMProfiles="sRGB Color Space Profile.icm"

;Vista
[T2WVM11.NTx86.6.0]
Include=sti.inf
Needs=STI.USBSection
CopyFiles=ScannerDS2.CopyFiles,WIA20Driver2.CopyFiles
AddReg=T2WVM11.AddReg,WIA20Driver2.AddReg
;forWIA
PortSelect=no
SubClass=StillImage
DeviceType=1
DeviceSubType=0x1
Capabilities=0x30
DeviceData=WIA20Driver2.DeviceData
ICMProfiles="sRGB Color Space Profile.icm"
[T4WVM11.NTx86.6.0]
Include=sti.inf
Needs=STI.USBSection
CopyFiles=ScannerDS4.CopyFiles,WIA20Driver4.CopyFiles
AddReg=T4WVM11.AddReg,WIA20Driver4.AddReg
;forWIA
PortSelect=no
SubClass=StillImage
DeviceType=1
DeviceSubType=0x1
Capabilities=0x30
DeviceData=WIA20Driver4.DeviceData
ICMProfiles="sRGB Color Space Profile.icm"
[T6WVM11.NTx86.6.0]
Include=sti.inf
Needs=STI.USBSection
CopyFiles=ScannerDS6.CopyFiles,WIA20Driver6.CopyFiles
AddReg=T6WVM11.AddReg,WIA20Driver6.AddReg
;forWIA
PortSelect=no
SubClass=StillImage
DeviceType=1
DeviceSubType=0x1
Capabilities=0x30
DeviceData=WIA20Driver6.DeviceData
ICMProfiles="sRGB Color Space Profile.icm"

[TBWVM11.NTx86.6.0]
Include=sti.inf
Needs=STI.WSDSection
CopyFiles=WIA20DriverB.CopyFiles
AddReg=WIA20DriverB.AddReg
;forWIA
PortSelect=no
SubClass=StillImage
DeviceType=1
DeviceSubType=0x1
Capabilities=0x30
DeviceData=WIA20DriverB.DeviceData
ICMProfiles="sRGB Color Space Profile.icm"
[TDWVM11.NTx86.6.0]
Include=sti.inf
Needs=STI.WSDSection
CopyFiles=WIA20DriverD.CopyFiles
AddReg=WIA20DriverD.AddReg
;forWIA
PortSelect=no
SubClass=StillImage
DeviceType=1
DeviceSubType=0x1
Capabilities=0x30
DeviceData=WIA20DriverD.DeviceData
ICMProfiles="sRGB Color Space Profile.icm"
[TFWVM11.NTx86.6.0]
Include=sti.inf
Needs=STI.WSDSection
CopyFiles=WIA20DriverF.CopyFiles
AddReg=WIA20DriverF.AddReg
;forWIA
PortSelect=no
SubClass=StillImage
DeviceType=1
DeviceSubType=0x1
Capabilities=0x30
DeviceData=WIA20DriverF.DeviceData
ICMProfiles="sRGB Color Space Profile.icm"

;2000
[T2WVM11.Services]
Include=sti.inf
Needs=STI.USBSection.Services
[T4WVM11.Services]
Include=sti.inf
Needs=STI.USBSection.Services
[T6WVM11.Services]
Include=sti.inf
Needs=STI.USBSection.Services

;XP
[T2WVM11.NTx86.5.1.Services]
Include=sti.inf
Needs=STI.USBSection.Services
[T4WVM11.NTx86.5.1.Services]
Include=sti.inf
Needs=STI.USBSection.Services
[T6WVM11.NTx86.5.1.Services]
Include=sti.inf
Needs=STI.USBSection.Services

[TBWVM11.NTx86.6.0.HW]
Include=sti.inf
Needs=STI.WSDSectionHW
[TDWVM11.NTx86.6.0.HW]
Include=sti.inf
Needs=STI.WSDSectionHW
[TFWVM11.NTx86.6.0.HW]
Include=sti.inf
Needs=STI.WSDSectionHW

;Vista
[T2WVM11.NTx86.6.0.Services]
Include=sti.inf
Needs=STI.USBSection.Services
[T4WVM11.NTx86.6.0.Services]
Include=sti.inf
Needs=STI.USBSection.Services
[T6WVM11.NTx86.6.0.Services]
Include=sti.inf
Needs=STI.USBSection.Services

[TBWVM11.NTx86.6.0.Services]
Include=sti.inf
Needs=STI.WSDSection.Services
[TDWVM11.NTx86.6.0.Services]
Include=sti.inf
Needs=STI.WSDSection.Services
[TFWVM11.NTx86.6.0.Services]
Include=sti.inf
Needs=STI.WSDSection.Services

;WIA1.0
[WIADriver2.DeviceData]
Server=local
UI Class ID={4DB1AD10-3391-11D2-9A33-00C04FA36145}
[WIADriver4.DeviceData]
Server=local
UI Class ID={4DB1AD10-3391-11D2-9A33-00C04FA36145}
[WIADriver6.DeviceData]
Server=local
UI Class ID={4DB1AD10-3391-11D2-9A33-00C04FA36145}

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

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

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

;WIA1.0
[WIADriver2.AddReg]
HKR,,HardwareConfig,1,4
HKR,,USDClass,,"{D2192CF8-BFD0-4716-BC35-7087527F28FE}"
HKCR,CLSID\{D2192CF8-BFD0-4716-BC35-7087527F28FE},,,"Generic 21BW-3 PCL Scanner WIA1.0 Driver"
HKCR,CLSID\{D2192CF8-BFD0-4716-BC35-7087527F28FE}\InProcServer32,,,%11%\W1GW21PCL.dll
HKCR,CLSID\{D2192CF8-BFD0-4716-BC35-7087527F28FE}\InProcServer32,ThreadingModel,,Both
[WIADriver4.AddReg]
HKR,,HardwareConfig,1,4
HKR,,USDClass,,"{EA48ACA0-8EA2-4f75-863A-E80111F31EDA}"
HKCR,CLSID\{EA48ACA0-8EA2-4f75-863A-E80111F31EDA},,,"Generic 23BW-3 PCL Scanner WIA1.0 Driver"
HKCR,CLSID\{EA48ACA0-8EA2-4f75-863A-E80111F31EDA}\InProcServer32,,,%11%\W1GW23PCL.dll
HKCR,CLSID\{EA48ACA0-8EA2-4f75-863A-E80111F31EDA}\InProcServer32,ThreadingModel,,Both
[WIADriver6.AddReg]
HKR,,HardwareConfig,1,4
HKR,,USDClass,,"{C3B47CB8-524B-46f1-94A6-45827C1C780F}"
HKCR,CLSID\{C3B47CB8-524B-46f1-94A6-45827C1C780F},,,"Generic 19BW-3 PCL Scanner WIA1.0 Driver"
HKCR,CLSID\{C3B47CB8-524B-46f1-94A6-45827C1C780F}\InProcServer32,,,%11%\W1GW19PCL.dll
HKCR,CLSID\{C3B47CB8-524B-46f1-94A6-45827C1C780F}\InProcServer32,ThreadingModel,,Both

;WIA2.0
[WIA20Driver2.AddReg]
HKR,,HardwareConfig,1,4
HKR,,USDClass,,"{7971B43A-E5FB-452a-891D-6C4A7C5988A2}"
HKCR,CLSID\{7971B43A-E5FB-452a-891D-6C4A7C5988A2},,,"Generic 21BW-3 PCL Scanner WIA2.0 Driver"
HKCR,CLSID\{7971B43A-E5FB-452a-891D-6C4A7C5988A2}\InProcServer32,,,%11%\W2GW21PCL.dll
HKCR,CLSID\{7971B43A-E5FB-452a-891D-6C4A7C5988A2}\InProcServer32,ThreadingModel,,"Both"
[WIA20Driver4.AddReg]
HKR,,HardwareConfig,1,4
HKR,,USDClass,,"{687343AD-CE19-459f-8CA3-E4D983EEC6C2}"
HKCR,CLSID\{687343AD-CE19-459f-8CA3-E4D983EEC6C2},,,"Generic 23BW-3 PCL Scanner WIA2.0 Driver"
HKCR,CLSID\{687343AD-CE19-459f-8CA3-E4D983EEC6C2}\InProcServer32,,,%11%\W2GW23PCL.dll
HKCR,CLSID\{687343AD-CE19-459f-8CA3-E4D983EEC6C2}\InProcServer32,ThreadingModel,,"Both"
[WIA20Driver6.AddReg]
HKR,,HardwareConfig,1,4
HKR,,USDClass,,"{24A19AEA-64BF-4121-AF12-17F3E1FE95D8}"
HKCR,CLSID\{24A19AEA-64BF-4121-AF12-17F3E1FE95D8},,,"Generic 19BW-3 PCL Scanner WIA2.0 Driver"
HKCR,CLSID\{24A19AEA-64BF-4121-AF12-17F3E1FE95D8}\InProcServer32,,,%11%\W2GW19PCL.dll
HKCR,CLSID\{24A19AEA-64BF-4121-AF12-17F3E1FE95D8}\InProcServer32,ThreadingModel,,"Both"

[WIA20DriverB.AddReg]
HKR,,HardwareConfig,1,4
HKR,,USDClass,,"{1A1270F6-0D78-484e-AA2C-EA7A7978D0BD}"
HKCR,CLSID\{1A1270F6-0D78-484e-AA2C-EA7A7978D0BD},,,"Generic 21BW-3 PCL WSD Scanner WIA2.0 Driver"
HKCR,CLSID\{1A1270F6-0D78-484e-AA2C-EA7A7978D0BD}\InProcServer32,,,%11%\WSDGW21PCL.dll
HKCR,CLSID\{1A1270F6-0D78-484e-AA2C-EA7A7978D0BD}\InProcServer32,ThreadingModel,,"Both"
[WIA20DriverD.AddReg]
HKR,,HardwareConfig,1,4
HKR,,USDClass,,"{7C3972F5-19BB-4c9f-9DA7-94A01C30DFD1}"
HKCR,CLSID\{7C3972F5-19BB-4c9f-9DA7-94A01C30DFD1},,,"Generic 23BW-3 PCL WSD Scanner WIA2.0 Driver"
HKCR,CLSID\{7C3972F5-19BB-4c9f-9DA7-94A01C30DFD1}\InProcServer32,,,%11%\WSDGW23PCL.dll
HKCR,CLSID\{7C3972F5-19BB-4c9f-9DA7-94A01C30DFD1}\InProcServer32,ThreadingModel,,"Both"
[WIA20DriverF.AddReg]
HKR,,HardwareConfig,1,4
HKR,,USDClass,,"{5850D3A9-3EA6-4d5c-B0F6-9B3F5F88510B}"
HKCR,CLSID\{5850D3A9-3EA6-4d5c-B0F6-9B3F5F88510B},,,"Generic 19BW-3 PCL WSD Scanner WIA2.0 Driver"
HKCR,CLSID\{5850D3A9-3EA6-4d5c-B0F6-9B3F5F88510B}\InProcServer32,,,%11%\WSDGW19PCL.dll
HKCR,CLSID\{5850D3A9-3EA6-4d5c-B0F6-9B3F5F88510B}\InProcServer32,ThreadingModel,,"Both"

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

[ScannerDS2.CopyFiles]
TGW21PCL.ds
TGW.dll
TGW.chm
DrvInfo.ini
SetupScan.dll
Uninstscan.exe
Uninstscan.dll
[ScannerDS4.CopyFiles]
TGW23PCL.ds
TGW.dll
TGW.chm
DrvInfo.ini
SetupScan.dll
Uninstscan.exe
Uninstscan.dll
[ScannerDS6.CopyFiles]
TGW19PCL.ds
TGW.dll
TGW.chm
DrvInfo.ini
SetupScan.dll
Uninstscan.exe
Uninstscan.dll

;XP
[WIADriver2.CopyFiles]
W1GW21PCL.dll
[WIADriver4.CopyFiles]
W1GW23PCL.dll
[WIADriver6.CopyFiles]
W1GW19PCL.dll

;Vista
[WIA20Driver2.CopyFiles]
W2GW21PCL.dll
[WIA20Driver4.CopyFiles]
W2GW23PCL.dll
[WIA20Driver6.CopyFiles]
W2GW19PCL.dll

[WIA20DriverB.CopyFiles]
WSDGW21PCL.dll
[WIA20DriverD.CopyFiles]
WSDGW23PCL.dll
[WIA20DriverF.CopyFiles]
WSDGW19PCL.dll

[CoInstall.CopyFiles]
ScanCoInstall.dll
DrvInfo.ini

[Strings]
MFGName="Generic"
MODELName2="Generic 21BW-3 PCL Scanner"
MODELName4="Generic 23BW-3 PCL Scanner"
MODELName6="Generic 19BW-3 PCL Scanner"

MODELNameB="Generic 21BW-3 PCL WSD Scanner"
MODELNameD="Generic 23BW-3 PCL WSD Scanner"
MODELNameF="Generic 19BW-3 PCL WSD Scanner"
DISKName="Generic 19BW-3 PCL/21BW-3 PCL/23BW-3 PCL Scanner Driver Disk"
