; fxsf3a.inf     Version 1.0.0.0
; FUJI XEROX DocuPrint M158 b
; Color Scanner's setup file.
; Copyright (c) 2012. All rights reserved.


[Version]
Signature="$Chicago$"
Class=Image
ClassGUID={6bdd1fc6-810f-11d0-bec7-08002be2092f}
Provider=%Mfg%
DriverVer=05/09/2012,1.0.0.0
CatalogFile=wiadriver.cat
LayoutFile=LAYOUT.INF,LAYOUT1.INF,LAYOUT2.INF

[SourceDisksFiles.x86]
fxsf3awia.dll=96
fxsf3awiaex.dll=96
fxsf3aimgfilter.dll=96
fxsf3aimghelper.dll=96
fxqsreg.dll=96

fxsf3atwn.ds=97
fxsf3aENGtwn.chm=97
fxsf3aCHStwn.chm=97
fxsf3aN.icm=97
fxsf3aDm.dll=97
fxsf3acl.dll=97

[SourceDisksNames.x86]
1=%Location%,,,
96 = "SCAN_X86",fxsf3aX86.CAB,,
97 = "SCAN_COMMON",fxsf3aCOMMON.CAB,,

[SourceDisksFiles.amd64]
fxsf3awia.dll=99
fxsf3awiaex.dll=99
fxsf3aimgfilter.dll=99
fxsf3aimghelper.dll=99
fxqsreg.dll=99

fxsf3atwn.ds=98
fxsf3aENGtwn.chm=98
fxsf3aCHStwn.chm=98
fxsf3aN.icm=98
fxsf3aDm.dll=98
fxsf3acl.dll=98
fxsf3aDm64.dll=98
fxsf3acl64.dll=98

[SourceDisksNames.amd64]
2=%Location%,,,
98 = "SCAN_COMMON",fxsf3aCOMMON.CAB,,
99 = "SCAN_AMD64",fxsf3aAMD64.CAB,,

[DestinationDirs]
DefaultDestDir=11
TWAINDRIVER.CopyFiles=10,"twain_32\FUjiXerox DocuPrint M158b"
TWAINDRIVER.amd64.CopyFiles=10,"twain_32\FUjiXerox DocuPrint M158b"
ICM.CopyFiles=23

TWAINDRIVER.Delfiles=10,"twain_32\FUjiXerox DocuPrint M158b"
TWAINDRIVER.amd64.Delfiles=10,"twain_32\FUjiXerox DocuPrint M158b"
ICM.Delfiles=23 

[Manufacturer]
%Mfg%=Models, NTx86.5, NTx86.6, NTamd64.5, NTamd64.6

[Models.NTx86.5]
%SCANNER.WIA1.0.DeviceDesc% = SCANNER.WIA1.0DRIVER.ntx86,  USB\VID_0550&PID_0137&MI_00

[Models.NTx86.6]
%SCANNER.WIA2.0.DeviceDesc% = SCANNER.WIA2.0DRIVER.ntx86,  USB\VID_0550&PID_0137&MI_00

[Models.NTamd64.5]
%SCANNER.WIA1.0.DeviceDesc% = SCANNER.WIA1.0DRIVER.ntamd64,  USB\VID_0550&PID_0137&MI_00

[Models.NTamd64.6]
%SCANNER.WIA2.0.DeviceDesc% = SCANNER.WIA2.0DRIVER.ntamd64,  USB\VID_0550&PID_0137&MI_00

;------------------------------------------------------ 32-bit Windows XP & 2003 Server DDInstall Section ------------------------------------------------------
[SCANNER.WIA1.0DRIVER.ntx86]
Include=sti.inf
Needs=STI.USBSection
SubClass=StillImage
DeviceType=1
DeviceSubType=0x1
Capabilities=0x31
Events=WIADRIVER.Events
DeviceData=SCANNER.WIA1.0DRIVER.DeviceData
AddReg=SCANNER.WIA1.0DRIVER.AddReg
;DelReg=SCANNER.WIA1.0DRIVER.DelReg
CopyFiles=SCANNER.WIA1.0DRIVER.CopyFiles,TWAINDRIVER.CopyFiles,ICM.CopyFiles
Delfiles=SCANNER.WIA1.0DRIVER.Delfiles,TWAINDRIVER.Delfiles,ICM.Delfiles
ICMProfiles="sRGB Color Space Profile.icm"
RegisterDlls=SCANNER.RegisterDlls

[SCANNER.WIA1.0DRIVER.ntx86.Services]
Include=sti.inf
Needs=STI.USBSection.Services


;------------------------------------------------------ 64 bit Windows XP & 2003 Server DDInstall Section -------------------------------------------------
[SCANNER.WIA1.0DRIVER.ntamd64]
Include=sti.inf
Needs=STI.USBSection
SubClass=StillImage
DeviceType=1
DeviceSubType=0x1
Capabilities=0x31
Events=WIADRIVER.Events
DeviceData=SCANNER.WIA1.0DRIVER.amd64.DeviceData
AddReg=SCANNER.WIA1.0DRIVER.AddReg
;DelReg=SCANNER.WIA1.0DRIVER.DelReg
CopyFiles=SCANNER.WIA1.0DRIVER.CopyFiles,TWAINDRIVER.CopyFiles,TWAINDRIVER.amd64.CopyFiles,ICM.CopyFiles
Delfiles=SCANNER.WIA1.0DRIVER.Delfiles,TWAINDRIVER.Delfiles,TWAINDRIVER.amd64.Delfiles,ICM.Delfiles
ICMProfiles="sRGB Color Space Profile.icm"
RegisterDlls=SCANNER.RegisterDlls

[SCANNER.WIA1.0DRIVER.ntamd64.Services]
Include=sti.inf
Needs=STI.USBSection.Services


;------------------------------------------------------ 32-bit Windows Vista & 2008 Server DDInstall Section ----------------------------------------------------
[SCANNER.WIA2.0DRIVER.ntx86]
Include=sti.inf
Needs=STI.USBSection
SubClass=StillImage
DeviceType=1
DeviceSubType=0x1
Capabilities=0x31
Events=WIADRIVER.Events
DeviceData=SCANNER.WIA2.0DRIVER.DeviceData
AddReg=SCANNER.WIA2.0DRIVER.AddReg
;DelReg=SCANNER.WIA2.0DRIVER.DelReg
CopyFiles=SCANNER.WIA2.0DRIVER.CopyFiles,TWAINDRIVER.CopyFiles,ICM.CopyFiles
Delfiles=SCANNER.WIA2.0DRIVER.Delfiles,TWAINDRIVER.Delfiles,ICM.Delfiles
ICMProfiles="sRGB Color Space Profile.icm"
RegisterDlls=SCANNER.RegisterDlls

[SCANNER.WIA2.0DRIVER.ntx86.Services]
Include=sti.inf
Needs=STI.USBSection.Services

;------------------------------------------------------ 64-bit Windows Vista & 2008 Server DDInstall Section -----------------------------------------------
[SCANNER.WIA2.0DRIVER.ntamd64]
Include=sti.inf
Needs=STI.USBSection
SubClass=StillImage
DeviceType=1
DeviceSubType=0x1
Capabilities=0x31
Events=WIADRIVER.Events
DeviceData=SCANNER.WIA2.0DRIVER.amd64.DeviceData
AddReg=SCANNER.WIA2.0DRIVER.AddReg
;DelReg=SCANNER.WIA2.0DRIVER.DelReg
CopyFiles=SCANNER.WIA2.0DRIVER.CopyFiles,TWAINDRIVER.CopyFiles,TWAINDRIVER.amd64.CopyFiles,ICM.CopyFiles
Delfiles=SCANNER.WIA2.0DRIVER.Delfiles,TWAINDRIVER.Delfiles,TWAINDRIVER.amd64.Delfiles,ICM.Delfiles
ICMProfiles="sRGB Color Space Profile.icm"
RegisterDlls=SCANNER.RegisterDlls

[SCANNER.WIA2.0DRIVER.ntamd64.Services]
Include=sti.inf
Needs=STI.USBSection.Services

;------------------------------------------------------------- Events ------------------------------------------------------------
[WIADRIVER.Events]
ScanButton=%ScanButton.Desc%,{A6C5A715-8C6E-11d2-977A-0000F87A926F},*

;----------------------------------------------------------- DeviceData ----------------------------------------------------------
[SCANNER.WIA1.0DRIVER.DeviceData]
Server=local
LLDPath=%10%\twain_32\FUjiXerox DocuPrint M158b\fxsf3aDm.dll
TwainDS="FX DP M158 b (TWAIN)"
ADFAttached=0,1

[SCANNER.WIA1.0DRIVER.amd64.DeviceData]
Server=local
LLDPath=%10%\twain_32\FUjiXerox DocuPrint M158b\fxsf3aDm64.dll
TwainDS="FX DP M158 b (TWAIN)"
ADFAttached=0,1

[SCANNER.WIA2.0DRIVER.DeviceData]
Server=local
UI Class ID={7FC41936-3387-4dfc-B5CE-53F5F7157AE2}
LLDPath=%10%\twain_32\FUjiXerox DocuPrint M158b\fxsf3aDm.dll
TwainDS="FX DP M158 b (TWAIN)"
ADFAttached=0,1

[SCANNER.WIA2.0DRIVER.amd64.DeviceData]
Server=local
UI Class ID={7FC41936-3387-4dfc-B5CE-53F5F7157AE2}
LLDPath=%10%\twain_32\FUjiXerox DocuPrint M158b\fxsf3aDm64.dll
TwainDS="FX DP M158 b (TWAIN)"
ADFAttached=0,1

;-------------------------------------------------------- Add Register --------------------------------------------------------
[SCANNER.AddReg]

[SCANNER.WIA1.0DRIVER.AddReg]
HKR,,USDClass,,"{5332009D-7211-4aa9-BB23-0A455C25295F}"
HKCR,CLSID\{5332009D-7211-4aa9-BB23-0A455C25295F},,,"FX DocuPrint M158 b WIA 1.0 Minidriver"
HKCR,CLSID\{5332009D-7211-4aa9-BB23-0A455C25295F}\InProcServer32,,,%11%\fxsf3awia.dll
HKCR,CLSID\{5332009D-7211-4aa9-BB23-0A455C25295F}\InProcServer32,ThreadingModel,,Both

[SCANNER.WIA2.0DRIVER.AddReg]
HKR,,HardwareConfig,1,1
HKR,,USDClass,,"{8B42D87D-F615-4b00-8B62-CB0C369FBAC4}"
HKCR,CLSID\{8B42D87D-F615-4b00-8B62-CB0C369FBAC4},,,"FX DocuPrint M158 b WIA 2.0 Minidriver"
HKCR,CLSID\{8B42D87D-F615-4b00-8B62-CB0C369FBAC4}\InProcServer32,,,%11%\fxsf3awia.dll
HKCR,CLSID\{8B42D87D-F615-4b00-8B62-CB0C369FBAC4}\InProcServer32,ThreadingModel,,"Both"

HKCR,CLSID\{7FC41936-3387-4dfc-B5CE-53F5F7157AE2},,,"WIA Driver UI Extension"
HKCR,CLSID\{7FC41936-3387-4dfc-B5CE-53F5F7157AE2}\shellex\ImageProcessingFilter\{F593009A-199C-4889-96FA-843E6CDC7817}

HKCR,CLSID\{F593009A-199C-4889-96FA-843E6CDC7817},,,"WIA Image Processing Filter"
HKCR,CLSID\{F593009A-199C-4889-96FA-843E6CDC7817}\InProcServer32,,,%11%\fxsf3aimgfilter.dll
HKCR,CLSID\{F593009A-199C-4889-96FA-843E6CDC7817}\InProcServer32,ThreadingModel,,"Both"

[SCANNER.RegisterDlls]
11,,fxqsreg.dll,1
;-------------------------------------------------------- Delete Register --------------------------------------------------------


;-------------------------------------------------------- Copy Files --------------------------------------------------------
[SCANNER.STIDRIVER.CopyFiles]

[SCANNER.WIA1.0DRIVER.CopyFiles]
fxsf3awia.dll
fxqsreg.dll

[SCANNER.WIA2.0DRIVER.CopyFiles]
fxsf3awia.dll,fxsf3awiaex.dll
fxsf3aimgfilter.dll
fxsf3aimghelper.dll
fxqsreg.dll

[TWAINDRIVER.CopyFiles]
fxsf3atwn.ds
fxsf3aENGtwn.chm
fxsf3aCHStwn.chm
fxsf3aDm.dll
fxsf3acl.dll

[TWAINDRIVER.amd64.CopyFiles]
fxsf3aDm64.dll
fxsf3acl64.dll

[ICM.CopyFiles]
fxsf3aN.icm

;-------------------------------------------------------- Delete Files --------------------------------------------------------
[SCANNER.STIDRIVER.Delfiles]
fxsf3asti.dll

[SCANNER.WIA1.0DRIVER.Delfiles]
fxsf3awia.dll
fxqsreg.dll

[SCANNER.WIA2.0DRIVER.Delfiles]
fxsf3awia.dll
fxsf3aimgfilter.dll
fxsf3aimghelper.dll
fxqsreg.dll

[TWAINDRIVER.Delfiles]
fxsf3aDm.dll
fxsf3atwn.ds
fxsf3aENGtwn.chm
fxsf3aCHStwn.chm
fxsf3acl.dll

[TWAINDRIVER.amd64.Delfiles]
fxsf3aDm64.dll
fxsf3acl64.dll

[ICM.Delfiles]
fxsf3aN.icm

[Strings]
Mfg="Fuji Xerox"
Location="SourceDisk"
SCANNER.WIA1.0.DeviceDesc="FX DP M158 b (WIA)"
SCANNER.WIA2.0.DeviceDesc="FX DP M158 b (WIA)"
ScanButton.Desc="File Button"