;
; WC3220.inf - installation file for the Scanner Driver
;
; Copyright (c) 2010 Xerox Corporation. All rights reserved.
;
; Manufacturer: Xerox
;

[Version]
;LayoutFile=Layout.inf
Signature= "$Windows NT$"
Class=Image
ClassGUID={6bdd1fc6-810f-11d0-bec7-08002be2092f}
Provider=%COMPANY_NAME%
DriverVer=01/26/2010,1.6.8.0
CatalogFile=WC3220.cat

[Manufacturer]
%COMPANY_NAME%=Models,NT.5.1,NT.5.2,NT.6.0,NT.6.1

;=================== Class Sections ===========================
[Models] 
%Model% = Scanner.Scan, USB\Vid_0924&Pid_4294&MI_00

[Models.NT.5.1]
%Model% = Scanner.ScanWithWIA, USB\Vid_0924&Pid_4294&MI_00

[Models.NT.5.2]
%Model% = Scanner.ScanWithWIA, USB\Vid_0924&Pid_4294&MI_00

[Models.NT.6.0]
%Model% = Scanner.ScanWithWIAVISTA, USB\Vid_0924&Pid_4294&MI_00

[Models.NT.6.1]
%Model% = Scanner.ScanWithWIAVISTA, USB\Vid_0924&Pid_4294&MI_00

; Windows 2000
[Scanner.Scan.NT]
Include= sti.inf
Needs= STI.USBSection
SubClass=StillImage
DeviceType=1
DeviceSubType=0x1
Capabilities=0x31
AddReg=SharedFiles2K.AddReg, TWAINScanPath.AddReg
CopyFiles=TWAIN_FILES,SHARE32_FILES,ICM_FILES,SSCAN2IO_FILES
ICMProfiles="sRGB Color Space Profile.icm"

[SharedFiles2K.AddReg]
HKLM,"SOFTWARE\%COMPANY_NAME%\INF Scanner Installer\%Model%","Shared",0x00000000,%SHARED_2K_FILES%

[Scanner.Scan.NT.Services]
Include=sti.inf
Needs=STI.UsbSection.Services

; Windows XP and 2003
[Scanner.ScanWithWIA.NT]
Include= sti.inf
Needs= STI.USBSection
SubClass=StillImage
DeviceType=1
PortSelect = No
DeviceSubType=0x1
Capabilities=0x31
DeviceData=WIAScan32.DeviceData
AddReg=WIAScan32.AddReg, SharedFiles32.AddReg, TWAINScanPath.AddReg
RegisterDlls=WIAScan32.RegisterDlls
CopyFiles=TWAIN_FILES,WIA32_FILES,SHARE32_FILES,ICM_FILES,ICM_WIA_FILES,SSCAN2IO_FILES 		; USB Only
ICMProfiles="sRGB Color Space Profile.icm"

[Scanner.ScanWithWIA.NT.Services]
Include=sti.inf
Needs=STI.UsbSection.Services

[WIAScan32.DeviceData]
Server=local
UI DLL=sti.dll
UI Class ID={C31877E6-4140-4261-BA96-72326FCDBA8C}
TwainDS=%Model%

[WIAScan32.RegisterDlls]
11,,SaXPUIEx.dll,1	; Register UI extension

[WIAScan32.AddReg]
;HKR,,HardwareConfig,1,1
HKR,,HardwareConfig,1,4 ; USB Device
HKR,,USDClass,,"{57575C28-05E9-4a14-8937-5C12E59C6DA3}"
HKR,DeviceData,DeviceMonitor,0x00010001,1 
HKR,DeviceData,DeviceBWThreshold,0x00010001,1
HKR,DeviceData,ADFOnePage,0x00010001,1
HKR,DeviceData,Vid,0x00010001,0x0924 
HKR,DeviceData,Pid,0x00010001,0x4294
HKR,DeviceData,ScannerProfile,0x00000000,"Xerox WorkCentre 3220.icc"
HKCR,CLSID\{57575C28-05E9-4a14-8937-5C12E59C6DA3},,,%Model%
HKCR,CLSID\{57575C28-05E9-4a14-8937-5C12E59C6DA3}\InProcServer32,,,%11%\SaXPWIA.dll
HKCR,CLSID\{57575C28-05E9-4a14-8937-5C12E59C6DA3}\InProcServer32,ThreadingModel,,Both

[SharedFiles32.AddReg]
HKLM,"SOFTWARE\%COMPANY_NAME%\INF Scanner Installer\%Model%","Shared",0x00000000,%SHARED_XP_FILES%

; Windows VISTA
[Scanner.ScanWithWIAVISTA.NT]
Include= sti.inf
Needs= STI.USBSection
SubClass=StillImage
DeviceType=1
PortSelect = No
DeviceSubType=0x1
Capabilities=0x31
DeviceData=WIAScanVISTA.DeviceData
AddReg=WIAScanVISTA.AddReg, SharedFilesVISTA.AddReg, TWAINScanPath.AddReg
RegisterDlls=WIAScanVISTA.RegisterDlls
CopyFiles=TWAIN_FILES,WIAVISTA_FILES,SHARE32_FILES,ICM_FILES,ICM_WIA_FILES,SHARESYSVISTA_FILES,SSCAN2IO_FILES 		; USB Only
ICMProfiles="sRGB Color Space Profile.icm"

[Scanner.ScanWithWIAVISTA.NT.Services]
Include=sti.inf
Needs=STI.UsbSection.Services

[WIAScanVISTA.DeviceData]
Server=local
UI DLL=sti.dll
UI Class ID={D2E517BF-5912-4778-85E9-321E05C8701D}
TwainDS=%Model%

[WIAScanVISTA.RegisterDlls]
;11,,ssuiext.dll,1	; Register UI extension

[WIAScanVISTA.AddReg]
;HKR,,HardwareConfig,1,1
HKR,,HardwareConfig,1,4 ; USB Device
HKR,DeviceData,DeviceMonitor,0x00010001,1 
HKR,DeviceData,DeviceBWThreshold,0x00010001,1
HKR,DeviceData,ADFOnePage,0x00010001,1
HKR,DeviceData,Vid,0x00010001,0x0924 
HKR,DeviceData,Pid,0x00010001,0x4294
HKR,DeviceData,ScannerProfile,0x00000000,"Xerox WorkCentre 3220.icc"
; Register Com
HKR,,USDClass,,"{CEF6CF6E-20D2-4028-B627-42ADC0B5B95E}"
HKCR,CLSID\{CEF6CF6E-20D2-4028-B627-42ADC0B5B95E},,,%Model%
HKCR,CLSID\{CEF6CF6E-20D2-4028-B627-42ADC0B5B95E}\InProcServer32,,,%11%\SaMinDrv.dll
HKCR,CLSID\{CEF6CF6E-20D2-4028-B627-42ADC0B5B95E}\InProcServer32,ThreadingModel,,"Both"

HKCR,CLSID\{AD835360-71BC-4851-B44A-BF2A9ACB8E78},,,"WIA Segmentation Filter"
HKCR,CLSID\{AD835360-71BC-4851-B44A-BF2A9ACB8E78}\InProcServer32,,,%11%\SaSegFlt.dll
HKCR,CLSID\{AD835360-71BC-4851-B44A-BF2A9ACB8E78}\InProcServer32,ThreadingModel,,"Both"

HKCR,CLSID\{5E074503-FD13-4133-952D-5BDF93C2FE52},,,"WIA Image Processing Filter"
HKCR,CLSID\{5E074503-FD13-4133-952D-5BDF93C2FE52}\InProcServer32,,,%11%\SaImgFlt.dll
HKCR,CLSID\{5E074503-FD13-4133-952D-5BDF93C2FE52}\InProcServer32,ThreadingModel,,"Both"

HKCR,CLSID\{51E137D2-CDB2-4277-B21D-C8B580B64270},,,"WIA Error Handler"
HKCR,CLSID\{51E137D2-CDB2-4277-B21D-C8B580B64270}\InProcServer32,,,%11%\SaErHdlr.dll
HKCR,CLSID\{51E137D2-CDB2-4277-B21D-C8B580B64270}\InProcServer32,ThreadingModel,,"Both"

;HKCR,CLSID\{B2F1E222-7862-4dfc-BD38-80707C09AED2},,,"WIA Dialog Extension Handler"
;HKCR,CLSID\{B2F1E222-7862-4dfc-BD38-80707C09AED2}\InProcServer32,,,%11%\ssuiextension2.dll
;HKCR,CLSID\{B2F1E222-7862-4dfc-BD38-80707C09AED2}\InProcServer32,ThreadingModel,,"Both"

HKCR,CLSID\{D2E517BF-5912-4778-85E9-321E05C8701D},,,"WIA Driver UI Extension"
HKCR,CLSID\{D2E517BF-5912-4778-85E9-321E05C8701D}\shellex\SegmentationFilter\{AD835360-71BC-4851-B44A-BF2A9ACB8E78},,,""
HKCR,CLSID\{D2E517BF-5912-4778-85E9-321E05C8701D}\shellex\ImageProcessingFilter\{5E074503-FD13-4133-952D-5BDF93C2FE52},,,""
HKCR,CLSID\{D2E517BF-5912-4778-85E9-321E05C8701D}\shellex\ErrorHandler\{51E137D2-CDB2-4277-B21D-C8B580B64270},,,""
;HKCR,CLSID\{BC7A1623-6F79-4159-82D7-A405033F2F76}\shellex\WiaDialogExtensionHandlers\{B2F1E222-7862-4dfc-BD38-80707C09AED2}

[SharedFilesVISTA.AddReg]
HKLM,"SOFTWARE\%COMPANY_NAME%\INF Scanner Installer\%Model%","Shared",0x00000000,%SHARED_VISTA_FILES%

[TWAINScanPath.AddReg]
HKLM,"SOFTWARE\SSScan\%Model%","TwainLocation",0x00000000,"%10%\Twain_32\%COMPANY_NAME%\%FOLDER_NAME%"
HKCU,"SOFTWARE\SSScan\%Model%","TwainLocation",0x00000000,"%10%\Twain_32\%COMPANY_NAME%\%FOLDER_NAME%"


;=================== ControlFlags ===========================
[ControlFlags]
; Remove comment from this line if all devices are PnP.
ExcludeFromSelect=*

;=================== DestinationDirs ===========================
[DestinationDirs]
DefaultDestDir=11
TWAIN_FILES = 10,Twain_32\%COMPANY_NAME%\%FOLDER_NAME%
WIA32_FILES = 11
SHARE32_FILES = 11
WIAVISTA_FILES = 11
SHARESYSVISTA_FILES = 11,drivers
ICM_FILES = 10,Twain_32\%COMPANY_NAME%\%FOLDER_NAME%
ICM_WIA_FILES = 23
SSCAN2IO_FILES = 10,Twain_32\%COMPANY_NAME%\%FOLDER_NAME%

;=================== CopyFiles ===========================
[ICM_FILES]
Xerox WorkCentre 3220.icc

[ICM_WIA_FILES]
Xerox WorkCentre 3220.icc

[TWAIN_FILES]
OEMUI.ver
Presets.ini
Defaults.ini
OEMDM2.dll,,,0x60      ; Do not overwrite if target is newer
OEMDS2.DS,,,0x60      ; Do not overwrite if target is newer
OEMDS2.dll,,,0x60      ; Do not overwrite if target is newer
OEMIMG2.dll,,,0x60      ; Do not overwrite if target is newer
OEMTW2.dll,,,0x60      ; Do not overwrite if target is newer
oemui.chm
OEMUI.dat
OEMUI2.dll,,,0x60      ; Do not overwrite if target is newer
OEMNW2.dll,,,0x60      ; Do not overwrite if target is newer
OEMUI.ipb
OEMUIL.ipb
OEMUIT.ipb
oemuicp.chm
OEMUIcp.dat
oemuict.chm
OEMUIct.dat
oemuicz.chm
OEMUIcz.dat
oemuidn.chm
OEMUIdn.dat
oemuidt.chm
OEMUIdt.dat
oemuifi.chm
OEMUIfi.dat
oemuifn.chm
OEMUIfn.dat
oemuigr.chm
OEMUIgr.dat
oemuihu.chm
OEMUIhu.dat
oemuiit.chm
OEMUIit.dat
oemuijp.chm
OEMUIjp.dat
oemuikr.chm
OEMUIkr.dat
oemuinr.chm
OEMUInr.dat
oemuipo.chm
OEMUIpo.dat
oemuipt.chm
OEMUIpt.dat
oemuiru.chm
OEMUIru.dat
oemuisp.chm
OEMUIsp.dat
oemuisw.chm
OEMUIsw.dat
oemuitk.chm
OEMUItk.dat
oemuiab.chm
OEMUIab.dat
oemuibp.chm
OEMUIbp.dat
oemuiel.chm
OEMUIel.dat
oemuihb.chm
OEMUIhb.dat

[SSCAN2IO_FILES]
NetDisc.dll,,,0x60      ; Do not overwrite if target is newer 
NetS2PC.ini
S2STR_AB.DAT 
S2STR_BP.DAT
S2STR_CP.DAT   
S2STR_CT.DAT
S2STR_CZ.DAT    
S2STR_DN.DAT   
S2STR_DT.DAT    
S2STR_EL.DAT
S2STR_EN.DAT  
S2STR_FI.DAT   
S2STR_FN.DAT    
S2STR_GR.DAT
S2STR_HB.DAT  
S2STR_HU.DAT  
S2STR_IT.DAT    
S2STR_JP.DAT
S2STR_KR.DAT   
S2STR_NR.DAT   
S2STR_PO.DAT   
S2STR_PT.DAT
S2STR_RU.DAT    
S2STR_SP.DAT    
S2STR_SW.DAT    
S2STR_TK.DAT
Sscan2io.exe,,,0x60      ; Do not overwrite if target is newer    

[WIA32_FILES]
SaXPWIA.dll,,,0x60      ; Do not overwrite if target is newer
SaXPEH.dll,,,0x60      ; Do not overwrite if target is newer
SaXPIPH.dll,,,0x60      ; Do not overwrite if target is newer
SaXPSTI.dll,,,0x60      ; Do not overwrite if target is newer
SaXPUIEx.dll,,,0x60      ; Do not overwrite if target is newer
WIAUISTR.loc,,,0x60      ; Do not overwrite if target is newer

[WIAVISTA_FILES]
SaMinDrv.dll,,,0x60      ; Do not overwrite if target is newer
SaImgFlt.dll,,,0x60      ; Do not overwrite if target is newer
SaErHdlr.dll,,,0x60      ; Do not overwrite if target is newer
SaSegFlt.dll,,,0x60      ; Do not overwrite if target is newer

[SHARE32_FILES]
Ssdevm.dll,,,0x10	        ;Do not overwrite
Ssusbpn.dll,,,0x10	;Do not overwrite

[SHARESYSVISTA_FILES]
SSPORT.sys,,,0x10	;Do not overwrite

;=================== SourceDisksNames ===========================
[SourceDisksNames]
1=%COMPANY_NAME%,,,""

;=================== SourceDisksNames ===========================
[SourceDisksFiles]
OEMUI.ver = 1
Presets.ini = 1
Defaults.ini = 1
OEMDM2.dll = 1
OEMDS2.DS = 1
OEMDS2.dll = 1
OEMIMG2.dll = 1
OEMTW2.dll = 1
oemui.chm = 1
OEMUI.dat = 1
OEMUI2.dll = 1
OEMNW2.dll = 1
OEMUI.ipb = 1
OEMUIL.ipb = 1
OEMUIT.ipb = 1
oemuicp.chm = 1
OEMUIcp.dat = 1
oemuict.chm = 1
OEMUIct.dat = 1
oemuicz.chm = 1
OEMUIcz.dat = 1
oemuidn.chm = 1
OEMUIdn.dat = 1
oemuidt.chm = 1
OEMUIdt.dat = 1
oemuifi.chm = 1
OEMUIfi.dat = 1
oemuifn.chm = 1
OEMUIfn.dat = 1
oemuigr.chm = 1
OEMUIgr.dat = 1
oemuihu.chm = 1
OEMUIhu.dat = 1
oemuiit.chm = 1
OEMUIit.dat = 1
oemuijp.chm = 1
OEMUIjp.dat = 1
oemuikr.chm = 1
OEMUIkr.dat = 1
oemuinr.chm = 1
OEMUInr.dat = 1
oemuipo.chm = 1
OEMUIpo.dat = 1
oemuipt.chm = 1
OEMUIpt.dat = 1
oemuiru.chm = 1
OEMUIru.dat = 1
oemuisp.chm = 1
OEMUIsp.dat = 1
oemuisw.chm = 1
OEMUIsw.dat = 1
oemuitk.chm = 1
OEMUItk.dat = 1
oemuiab.chm = 1
OEMUIab.dat = 1
oemuibp.chm = 1
OEMUIbp.dat = 1
oemuiel.chm = 1
OEMUIel.dat = 1
oemuihb.chm = 1
OEMUIhb.dat = 1

;== SSCAN2IO Files ==================================================
NetDisc.dll = 1,SSCAN2IO
NetS2PC.ini = 1,SSCAN2IO
S2STR_AB.DAT = 1,SSCAN2IO 
S2STR_BP.DAT = 1,SSCAN2IO
S2STR_CP.DAT = 1,SSCAN2IO   
S2STR_CT.DAT = 1,SSCAN2IO
S2STR_CZ.DAT = 1,SSCAN2IO    
S2STR_DN.DAT = 1,SSCAN2IO   
S2STR_DT.DAT = 1,SSCAN2IO    
S2STR_EL.DAT = 1,SSCAN2IO
S2STR_EN.DAT = 1,SSCAN2IO  
S2STR_FI.DAT = 1,SSCAN2IO  
S2STR_FN.DAT = 1,SSCAN2IO    
S2STR_GR.DAT = 1,SSCAN2IO
S2STR_HB.DAT = 1,SSCAN2IO  
S2STR_HU.DAT = 1,SSCAN2IO  
S2STR_IT.DAT = 1,SSCAN2IO    
S2STR_JP.DAT = 1,SSCAN2IO
S2STR_KR.DAT = 1,SSCAN2IO   
S2STR_NR.DAT = 1,SSCAN2IO   
S2STR_PO.DAT = 1,SSCAN2IO   
S2STR_PT.DAT = 1,SSCAN2IO
S2STR_RU.DAT = 1,SSCAN2IO    
S2STR_SP.DAT = 1,SSCAN2IO    
S2STR_SW.DAT = 1,SSCAN2IO    
S2STR_TK.DAT = 1,SSCAN2IO
Sscan2io.exe = 1,SSCAN2IO   

;= WIA Files ===================================================
SaXPWIA.dll = 1	        ;WIA XP Files
SaXPEH.dll = 1	        ;WIA XP Files
SaXPIPH.dll = 1	        ;WIA XP Files
SaXPSTI.dll = 1	        ;WIA XP Files
SaXPUIEx.dll = 1	;WIA XP Files
WIAUISTR.loc = 1	;WIA XP Files

SaMinDrv.dll = 1    	;VISTA WIA Filse
SaImgFlt.dll = 1     	;VISTA WIA Filse
SaErHdlr.dll = 1    	;VISTA WIA Filse
SaSegFlt.dll = 1     	;VISTA WIA Filse
Ssdevm.dll = 1		;Common Files
Ssusbpn.dll = 1		;Common Files
SSPORT.sys = 1		;Common Files for 32bits

;= CMS Files ===================================================
Xerox WorkCentre 3220.icc = 1


; =================== Strings =========================
[Strings]
SHARED_VISTA_FILES = "SSDEVM.DLL,SSUSBPN.DLL,SSPORT.sys,SaMinDrv.dll,SaImgFlt.dll,SaErHdlr.dll,SaSegFlt.dll"
SHARED_XP_FILES = "SSDEVM.DLL,SSUSBPN.DLL,SaXPWIA.dll,SaXPSTI.dll,SaXPEH.DLL,SaXPIPH.dll,SaXPUIEx.dll,WIAUISTR.loc"
SHARED_2K_FILES = "SSDEVM.DLL,SSUSBPN.DLL"
COMPANY_NAME = "Xerox"
FOLDER_NAME = "WC3220"
Model = "Xerox WorkCentre 3220"