; 6B5U_x64.INF
;
; Sheetfed Duplex Scanner device setup information (64bit)
;
; Copyright (c) 2014

[Version]
Signature="$Windows NT$"
Class=Image
ClassGUID={6bdd1fc6-810f-11d0-bec7-08002be2092f}
Provider=%IPC%
DriverVer=06/27/2012,4.1.1.0
CatalogFile=6B5U_x64.cat

;=====Common=======
[SourceDisksNames]
1=%DisksName%,,,

[SourceDisksFiles]
GetInst64.dll=1

[DestinationDirs]
CopySetupFile=10
DefaultDestDir=11

[CoInstaller_CopyFiles]
GetInst64.dll

[CoInstaller_AddReg]
HKR,,CoInstallers32,0x00010000,"GetInst64.dll,GetInfoCoInstaller"

[InstallInfo]
OriginalInfSourcePath = %1%

[Manufacturer]
%IPC%=Models,NTamd64.5.1,NTamd64.6.0

[Models.NTamd64.5.1]
%IPCProduct_6B5%=IPCProduct_6B5_NTamd64_51,USB\VID_07b3&PID_0C14

[Models.NTamd64.6.0]
%IPCProduct_6B5%=IPCProduct_6B5_NTamd64_60,USB\VID_07b3&PID_0C14

;=====for Windows XP 64bit=======
[IPCProduct_6B5_NTamd64_51]
DriverVer=06/27/2012,4.1.1.0
Include=sti.inf
Needs=STI.USBSection,STI.MICRODRIVERSection
SubClass=StillImage
DeviceType=1
Capabilities=0x31
DeviceData=IPCProduct_6B5.DeviceData.WIA
AddReg=IPCProduct_6B5.AddReg,IPCProduct_6B5_Wia.AddReg
;Copyfiles=WinXPCopyFile_6B5
ICMProfiles="Sheetfed Scanner(6B5).icm"

[WinXPCopyFile_6B5]
;WIA6B505.dll

[IPCProduct_6B5_NTamd64_51.Services]
Include=sti.inf
Needs=STI.USBSection.Services

[IPCProduct_6B5_NTamd64_51.CoInstallers]
AddReg=CoInstaller_AddReg
CopyFiles=CoInstaller_CopyFiles


[IPCProduct_6B5.AddReg]
HKLM,%InfInfo%,"SetupRegKey",,"Software\Wow6432Node\Uniscan\6B5U"
HKLM,%InfInfo%,"CommandLine",,"6B5"
HKLM,%InfInfo%,"Execution File",,"Install64.exe"

[IPCProduct_6B5_Wia.AddReg]
HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,,usbscan.sys
HKR,,HardwareConfig,1,4
HKLM,%InfInfo%,"Temp_WiaDriver",,%FN_MicroDriver_6B5%
HKLM,%RK_WIA_6B5%,PathName,,%11%\%FN_MicroDriver_6B5%
HKLM,%RK_WIA_6B5%,STAMP,,%FN_STAMP%
HKLM,%RK_WIA_6B5%,SIZE,,%FN_SIZE%
HKLM,%RK_WIA_6B5%,Brightness,0x00010001,0
HKLM,%RK_WIA_6B5%,Contrast,0x00010001,0

[IPCProduct_6B5.DeviceData.WIA]
TwainDS=%TwainDSName_6B5%
ISISDriverName="ps286plus.pxn"
Server=local
MicroDriver="WIA6B505.dll"
UI DLL=sti.dll
UI Class ID={4DB1AD10-3391-11D2-9A33-00C04FA36145}

;=====for Windows Vista 64bit later=======
[IPCProduct_6B5_NTamd64_60]
DriverVer=06/27/2012,4.1.1.0 
Include=sti.inf
Needs=STI.USBSection
SubClass=StillImage
DeviceType=1
DeviceSubType=0x1
Capabilities=0x31
;Events=PKWIADriver.Events
DeviceData=PKWIADriver_6B5.DeviceData
AddReg=IPCProduct_6B5_NT60.AddReg,IPCProduct_6B5_NT60_Wia.AddReg
;Copyfiles=Win60CopyFile_6B5_WIA
ICMProfiles="Sheetfed Scanner(6B5).icm"

[PKWIADriver.Events]

[PKWIADriver_6B5.DeviceData]
UI Class ID={CFBBAA91-02D1-4D7D-9FA7-0EB7C11FBB35}
ISISDriverName="ps286plus.pxn"
;StoragePath=%10%\ServiceProfiles\LocalService\Documents\WIADRIVER\STORAGE

[IPCProduct_6B5_NT60.AddReg]
HKLM,%InfInfo%,"SetupRegKey",,"Software\Wow6432Node\Uniscan\6B5U"
HKLM,%InfInfo%,"CommandLine",,"6B5"
HKLM,%InfInfo%,"Execution File",,"Install64.exe"

[IPCProduct_6B5_NT60_Wia.AddReg]
HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,,usbscan.sys
HKR,,HardwareConfig,1,4
HKLM,%RK_WIA_6B5%,FullPath,,%11%\%FN_PkWiaDrv20_6B5%
HKLM,%RK_WIA_6B5%,Brightness,0x00010001,0
HKLM,%RK_WIA_6B5%,Contrast,0x00010001,0

HKR,,USDClass,,"{F9CB8DB3-E289-4F24-822D-A096E128300B}"
HKCR,CLSID\{F9CB8DB3-E289-4F24-822D-A096E128300B},,,"Extended WIA Driver"
HKCR,CLSID\{F9CB8DB3-E289-4F24-822D-A096E128300B}\InProcServer32,,,%11%\%FN_PkWiaDrv20_6B5%
HKCR,CLSID\{F9CB8DB3-E289-4F24-822D-A096E128300B}\InProcServer32,ThreadingModel,,"Both"

HKCR,CLSID\{CFBBAA91-02D1-4D7D-9FA7-0EB7C11FBB35},,,"WIA Driver UI Extension"
HKCR,CLSID\{CFBBAA91-02D1-4D7D-9FA7-0EB7C11FBB35}\shellex\SegmentationFilter\{150c3c05-d00c-4e68-b9a7-108879df7605}
HKCR,CLSID\{CFBBAA91-02D1-4D7D-9FA7-0EB7C11FBB35}\shellex\ImageProcessingFilter\{FD1FA12A-A733-41e9-AEE9-359F859D3165}
HKCR,CLSID\{CFBBAA91-02D1-4D7D-9FA7-0EB7C11FBB35}\shellex\ErrorHandler\{f6e88a9f-1728-41bf-b649-cc43c2ecab19}
;;;HKCR,CLSID\{CFBBAA91-02D1-4D7D-9FA7-0EB7C11FBB35}\shellex\WiaDialogExtensionHandlers\{b831bb2e-0147-43c8-8b59-d602aa1e33c0}
HKCR,CLSID\{CFBBAA91-02D1-4D7D-9FA7-0EB7C11FBB35}\shellex\PropertySheetHandlers\{B831BB2E-0147-43c8-8B59-D602AA1E33C0}

HKCR,CLSID\{B831BB2E-0147-43c8-8B59-D602AA1E33C0},,,"Uniscan WIA UI Extension"
HKCR,CLSID\{B831BB2E-0147-43c8-8B59-D602AA1E33C0}\InProcServer32,,,%11%\%FN_PkWiaScanUI%
HKCR,CLSID\{B831BB2E-0147-43c8-8B59-D602AA1E33C0}\InProcServer32,ThreadingModel,,"Both"

HKCR,CLSID\{150c3c05-d00c-4e68-b9a7-108879df7605},,,"WIA Segmentation Filter"
HKCR,CLSID\{150c3c05-d00c-4e68-b9a7-108879df7605}\InProcServer32,,,%11%\%FN_PkSegFilter%
HKCR,CLSID\{150c3c05-d00c-4e68-b9a7-108879df7605}\InProcServer32,ThreadingModel,,"Both"

HKCR,CLSID\{FD1FA12A-A733-41e9-AEE9-359F859D3165},,,"WIA Image Processing Filter"
HKCR,CLSID\{FD1FA12A-A733-41e9-AEE9-359F859D3165}\InProcServer32,,,%11%\%FN_PkImgFilter%
HKCR,CLSID\{FD1FA12A-A733-41e9-AEE9-359F859D3165}\InProcServer32,ThreadingModel,,"Both"

HKCR,CLSID\{f6e88a9f-1728-41bf-b649-cc43c2ecab19},,,"WIA Error Handler"
HKCR,CLSID\{f6e88a9f-1728-41bf-b649-cc43c2ecab19}\InProcServer32,,,%11%\%FN_PkWiaError%
HKCR,CLSID\{f6e88a9f-1728-41bf-b649-cc43c2ecab19}\InProcServer32,ThreadingModel,,"Both"



[Win60CopyFile_6B5_WIA]
;PkWiaDrv20_6B5_x64.dll
;PkSegFilter_x64.dll
;PkImgFilter_x64.dll
;PkWiaError_x64.dll
;PkWiaScanUI_x64.dll
;PkWiaUI_x64.dll 

[IPCProduct_6B5_NTamd64_60.Services]
Include=sti.inf
Needs=STI.USBSection.Services

[IPCProduct_6B5_NTamd64_60.CoInstallers]
AddReg=CoInstaller_AddReg
CopyFiles=CoInstaller_CopyFiles

[Strings]
IPC="UNIS"
IPCProduct_6B5="Uniscan FXA"
TwainDSName_6B5="Uniscan FXA"
RunOnce="Software\Microsoft\windows\CurrentVersion\RunOnce"
InfInfo="Software\USBSCAN INFO\Inf_Info"
RK_WIA_6B5="Software\Wow6432Node\Uniscan\6B5U\Wia"
FN_Inf="6B5U_x64.inf"
FN_MicroDriver_6B5="WIA6B505.dll"
FN_PkWiaDrv20_6B5="PkWiaDrv20_6B5_x64.dll"
FN_PkWiaScanUI="PkWiaScanUI_x64.dll"
FN_PkSegFilter="PkSegFilter_x64.dll"
FN_PkImgFilter="PkImgFilter_x64.dll"
FN_PkWiaError="PkWiaError_x64.dll"
FN_STAMP="10030000"
FN_SIZE="2550,3508"
DisksName="Flatbed Scanner CD-ROM"

;[ControlFlags]
;ExcludeFromSelect=*
