[Version]
LayoutFile=Layout.inf
Signature= "$Windows NT$"
Class=Image
ClassGUID={6bdd1fc6-810f-11d0-bec7-08002be2092f}
Provider=%COMPANY_NAME%
DriverVer=04/06/2007,1.4.8.0
CatalogFile=WC3119.cat

[Manufacturer]
%COMPANY_NAME%=Models,NTAMD64.5.2,NTAMD64.6.0

;=================== Class Sections ===========================
[Models]

[Models.NTAMD64.5.2]
%Model% = Scanner.ScanWithWIA64, USB\Vid_0924&Pid_4265&MI_00

[Models.NTAMD64.6.0]
%Model% = Scanner.ScanWithWIAVISTA64, USB\Vid_0924&Pid_4265&MI_00

; Windows XP, 2003 64
[Scanner.ScanWithWIA64.NT]
Include= sti.inf
Needs= STI.USBSection
SubClass=StillImage
DeviceType=1
PortSelect = No
DeviceSubType=0x1
Capabilities=0x31
DeviceData=WIAScan64.DeviceData
AddReg=WIAScan64.AddReg, SharedFiles64.AddReg
RegisterDlls=WIAScan64.RegisterDlls
CopyFiles=TWAIN_FILES,WIA64_FILES,SHARE64_FILES,SHARESYS64_FILES,SHARE32FOR64_FILES    ;USB Only
ICMProfiles="sRGB Color Space Profile.icm"

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

[WIAScan64.DeviceData]
Server=local
UI DLL=sti.dll
UI Class ID={ACBF6AF6-51C9-46a9-87D8-A93F352BCB3E}

[WIAScan64.RegisterDlls]
11,,ssuiex64.dll,1	; Register UI extension

[WIAScan64.AddReg]
;HKR,,HardwareConfig,1,1
HKR,,HardwareConfig,1,4 ; USB Device
HKR,,USDClass,,"{CC05778C-DC0F-4e7f-B3AB-0EA575477DB7}"
HKR,DeviceData,DebugMode,0x00010001,0 
HKR,DeviceData,DeviceMonitor,0x00010001,1 
HKR,DeviceData,DeviceBWThreshold,0x00010001,1
HKR,DeviceData,ADFOnePage,0x00010001,1
HKR,DeviceData,Vid,0x00010001,0x0924 
HKR,DeviceData,Pid,0x00010001,0x4265
HKCR,CLSID\{CC05778C-DC0F-4e7f-B3AB-0EA575477DB7},,,%Model%
HKCR,CLSID\{CC05778C-DC0F-4e7f-B3AB-0EA575477DB7}\InProcServer32,,,%11%\SSWIA64.dll
HKCR,CLSID\{CC05778C-DC0F-4e7f-B3AB-0EA575477DB7}\InProcServer32,ThreadingModel,,Both

[SharedFiles64.AddReg]
HKLM,"SOFTWARE\%COMPANY_NAME%\INF Scanner Installer\%Model%","Shared",0x00,"SSDEVM64.DLL,SSDEVM.DLL,ssusbpn64.dll,SSUSBPN.DLL,ssusbp64.dll,SSPORT.sys,Sswia64.dll,SSSTI64.dll,SSEH64.dll,SSIPH64.dll,Ssuiex64.dll,WIAUISTR.loc"

; Windows VISTA 64
[Scanner.ScanWithWIAVISTA64.NT]
Include= sti.inf
Needs= STI.USBSection
SubClass=StillImage
DeviceType=1
PortSelect = No
DeviceSubType=0x1
Capabilities=0x31
DeviceData=WIAScanVISTA64.DeviceData
AddReg=WIAScanVISTA64.AddReg, SharedFilesVISTA64.AddReg
RegisterDlls=WIAScanVISTA64.RegisterDlls
CopyFiles=TWAIN_FILES,WIAVISTA64_FILES,SHARE64_FILES,SHARESYS64_FILES,SHARE32FOR64_FILES   ;USB Only
ICMProfiles="sRGB Color Space Profile.icm"

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

[WIAScanVISTA64.DeviceData]
Server=local
UI DLL=sti.dll
UI Class ID={BC7A1623-6F79-4159-82D7-A405033F2F76}

[WIAScanVISTA64.RegisterDlls]
;11,,ssuiex64.dll,1	; Register UI extension

[WIAScanVISTA64.AddReg]
;HKR,,HardwareConfig,1,1
HKR,,HardwareConfig,1,4 ; USB Device
HKR,DeviceData,DebugMode,0x00010001,0 
HKR,DeviceData,DeviceMonitor,0x00010001,1 
HKR,DeviceData,DeviceBWThreshold,0x00010001,1
HKR,DeviceData,ADFOnePage,0x00010001,1
HKR,DeviceData,Vid,0x00010001,0x0924 
HKR,DeviceData,Pid,0x00010001,0x4265
;HKR,DeviceData,ScannerProfile,0x00000000,"WC3119.icc"
; Register Com
HKR,,USDClass,,"{22ED2429-ACD0-4ab4-BF87-554767C1F445}"
HKCR,CLSID\{22ED2429-ACD0-4ab4-BF87-554767C1F445},,,%Model%
HKCR,CLSID\{22ED2429-ACD0-4ab4-BF87-554767C1F445}\InProcServer32,,,%11%\ssminidriver.dll
HKCR,CLSID\{22ED2429-ACD0-4ab4-BF87-554767C1F445}\InProcServer32,ThreadingModel,,"Both"

HKCR,CLSID\{0257F77C-A651-42c7-952E-101ADA19D3A2},,,"WIA Segmentation Filter"
HKCR,CLSID\{0257F77C-A651-42c7-952E-101ADA19D3A2}\InProcServer32,,,%11%\sssegfilter.dll
HKCR,CLSID\{0257F77C-A651-42c7-952E-101ADA19D3A2}\InProcServer32,ThreadingModel,,"Both"

HKCR,CLSID\{93811C15-9CD6-4d18-B9B6-698138D5C483},,,"WIA Image Processing Filter"
HKCR,CLSID\{93811C15-9CD6-4d18-B9B6-698138D5C483}\InProcServer32,,,%11%\ssimgfilter.dll
HKCR,CLSID\{93811C15-9CD6-4d18-B9B6-698138D5C483}\InProcServer32,ThreadingModel,,"Both"

HKCR,CLSID\{D429B8F8-F0F9-46d8-820C-0CDF3507C6DC},,,"WIA Error Handler"
HKCR,CLSID\{D429B8F8-F0F9-46d8-820C-0CDF3507C6DC}\InProcServer32,,,%11%\sserrhandler.dll
HKCR,CLSID\{D429B8F8-F0F9-46d8-820C-0CDF3507C6DC}\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\{BC7A1623-6F79-4159-82D7-A405033F2F76},,,"WIA Driver UI Extension"
HKCR,CLSID\{BC7A1623-6F79-4159-82D7-A405033F2F76}\shellex\SegmentationFilter\{0257F77C-A651-42c7-952E-101ADA19D3A2}
HKCR,CLSID\{BC7A1623-6F79-4159-82D7-A405033F2F76}\shellex\ImageProcessingFilter\{93811C15-9CD6-4d18-B9B6-698138D5C483}
HKCR,CLSID\{BC7A1623-6F79-4159-82D7-A405033F2F76}\shellex\ErrorHandler\{D429B8F8-F0F9-46d8-820C-0CDF3507C6DC}
;HKCR,CLSID\{BC7A1623-6F79-4159-82D7-A405033F2F76}\shellex\WiaDialogExtensionHandlers\{B2F1E222-7862-4dfc-BD38-80707C09AED2}

[SharedFilesVISTA64.AddReg]
HKLM,"SOFTWARE\%COMPANY_NAME%\INF Scanner Installer\%Model%","Shared",0x00,"SSDEVM64.DLL,SSDEVM.DLL,ssusbpn64.dll,SSUSBPN.DLL,ssusbp64.dll,SSPORT.sys,ssminidriver.dll,ssimgfilter.dll,sserrhandler.dll,sssegfilter.dll"

;=================== 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%
WIA64_FILES = 11
WIAVISTA64_FILES = 11
SHARE32FOR64_FILES = 10,SysWOW64
SHARE64_FILES = 11
SHARESYS64_FILES = 11,drivers

;=================== CopyFiles ===========================
[TWAIN_FILES]
OEMCFG.dll,,,96      ; Do not overwrite if target is newer
OEMDM.dll,,,96      ; Do not overwrite if target is newer
OEMDS.DS,,,96      ; Do not overwrite if target is newer
OEMDS.INI
OEMIMG.dll,,,96      ; Do not overwrite if target is newer
OEMTW.dll,,,96      ; Do not overwrite if target is newer
oemui.chm
OEMUI.dat
OEMUI.dll,,,96      ; Do not overwrite if target is newer
OEMUI.ipb
OEMUIl.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

[WIA64_FILES]
SSWIA64.dll,,,96      ; Do not overwrite if target is newer
SSEH64.dll,,,96      ; Do not overwrite if target is newer
SSIPH64.dll,,,96      ; Do not overwrite if target is newer
SSSTI64.dll,,,96      ; Do not overwrite if target is newer
SSUIEx64.dll,,,96      ; Do not overwrite if target is newer
WIAUISTR.loc,,,96      ; Do not overwrite if target is newer

[WIAVISTA64_FILES]
ssminidriver.dll,,,96      ; Do not overwrite if target is newer
ssimgfilter.dll,,,96      ; Do not overwrite if target is newer
sserrhandler.dll,,,96      ; Do not overwrite if target is newer
sssegfilter.dll,,,96      ; Do not overwrite if target is newer

[SHARE32FOR64_FILES]
Ssdevm.dll,,,16	;Do not overwrite
Ssusbpn.dll,,,16	;Do not overwrite

[SHARE64_FILES]
Ssdevm64.dll,,,16	;Do not overwrite
Ssusbp64.dll,,,16	;Do not overwrite

[SHARESYS64_FILES]
SSPORT.sys,,,16	;Do not overwrite

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

;=================== SourceDisksNames ===========================
[SourceDisksFiles]
OEMCFG.dll = 1
OEMDM.dll = 1
OEMDS.DS = 1
OEMDS.INI = 1
OEMIMG.dll = 1
OEMTW.dll = 1
oemui.chm = 1
OEMUI.dat = 1
OEMUI.dll = 1
OEMUI.ipb = 1
OEMUIl.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
SSWIA64.dll = 1		;WIA Files for 64bits
SSEH64.dll = 1		;WIA Files for 64bits
SSUIEx64.dll= 1		;WIA Files for 64bits
SSIPH64.dll = 1		;WIA Files for 64bits
SSSTI64.dll = 1		;WIA Files for 64bits
WIAUISTR.loc = 1	;WIA Files
ssminidriver.dll = 1    ;VISTA WIA Filse
ssimgfilter.dll = 1     ;VISTA WIA Filse
sserrhandler.dll = 1    ;VISTA WIA Filse
sssegfilter.dll = 1     ;VISTA WIA Filse
Ssdevm.dll = 1		;Common Files
Ssusbpn.dll = 1		;Common Files
Ssdevm64.dll = 1	;Common Files for 64bits
Ssusbp64.dll = 1	;Common Files for 64bits
SSPORT.sys = 1		;Common Files for 64bits	

; =================== Strings =========================
[Strings]
COMPANY_NAME = "Xerox"
FOLDER_NAME = "WC3119"
Model = "Xerox WorkCentre 3119 Series"


