; BG3U_x64.INF
;
; USB Scanner(BG3U) device setup information (64bit)
;
; Copyright (c) 2013

[Version]
Signature="$Windows NT$"
Class=Image
ClassGUID={6bdd1fc6-810f-11d0-bec7-08002be2092f}
Provider=%IPC%
DriverVer=05/06/2013,5.0.0
CatalogFile=BG3U_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_BG3%=IPCProduct_BG3_NTamd64_51,USB\VID_07b3&PID_140A

[Models.NTamd64.6.0]
%IPCProduct_BG3%=IPCProduct_BG3_NTamd64_60,USB\VID_07b3&PID_140A


;=====for Windows XP 64bit=======
[IPCProduct_BG3_NTamd64_51]
DriverVer=05/06/2013,5.0.0
Include=sti.inf
Needs=STI.USBSection,STI.MICRODRIVERSection
SubClass=StillImage
DeviceType=1
Capabilities=0x31
DeviceData=IPCProduct_BG3.DeviceData.WIA
AddReg=IPCProduct_BG3.AddReg,IPCProduct_BG3_Wia.AddReg
;Copyfiles=WinXPCopyFile_BG3
ICMProfiles="Flatbed Scanner(BG3).icm"


[WinXPCopyFile_BG3]
;WIABG305.dll

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

[IPCProduct_BG3_NTamd64_51.CoInstallers]
AddReg=CoInstaller_AddReg
CopyFiles=CoInstaller_CopyFiles

[IPCProduct_BG3.AddReg]
HKLM,%InfInfo%,"SetupRegKey",,"Software\Wow6432Node\Founder\BG3U"
HKLM,%InfInfo%,"CommandLine",,"BG3"
HKLM,%InfInfo%,"Execution File",,"Install64.exe"

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

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

;=====for Windows Vista 64bit later=======
[IPCProduct_BG3_NTamd64_60]
DriverVer=05/06/2013,5.0.0 
Include=sti.inf
Needs=STI.USBSection
SubClass=StillImage
DeviceType=1
DeviceSubType=0x1
Capabilities=0x31
;Events=PKWIADriver.Events
DeviceData=PKWIADriver_BG3.DeviceData
AddReg=IPCProduct_BG3_NT60.AddReg,IPCProduct_BG3_NT60_Wia.AddReg
;Copyfiles=Win60CopyFile_BG3_WIA
ICMProfiles="Flatbed Scanner(BG3).icm"

[PKWIADriver.Events]

[PKWIADriver_BG3.DeviceData]
UI Class ID={9273E508-A015-4EE5-934B-DCDE3B928F71}
ISISDriverName="ps286plus.pxn"
;StoragePath=%10%\ServiceProfiles\LocalService\Documents\WIADRIVER\STORAGE

[IPCProduct_BG3_NT60.AddReg]
HKLM,%InfInfo%,"SetupRegKey",,"Software\Wow6432Node\Founder\BG3U"
HKLM,%InfInfo%,"CommandLine",,"BG3"
HKLM,%InfInfo%,"Execution File",,"Install64.exe"

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

HKR,,USDClass,,"{E7454B62-FE8D-470E-AF4A-F5F4B3FBBF2D}"
HKCR,CLSID\{E7454B62-FE8D-470E-AF4A-F5F4B3FBBF2D},,,"Extended WIA Driver"
HKCR,CLSID\{E7454B62-FE8D-470E-AF4A-F5F4B3FBBF2D}\InProcServer32,,,%11%\%FN_PkWiaDrv20_BG3%
HKCR,CLSID\{E7454B62-FE8D-470E-AF4A-F5F4B3FBBF2D}\InProcServer32,ThreadingModel,,"Both"

HKCR,CLSID\{9273E508-A015-4EE5-934B-DCDE3B928F71},,,"WIA Driver UI Extension"
HKCR,CLSID\{9273E508-A015-4EE5-934B-DCDE3B928F71}\shellex\SegmentationFilter\{150c3c05-d00c-4e68-b9a7-108879df7605}
HKCR,CLSID\{9273E508-A015-4EE5-934B-DCDE3B928F71}\shellex\ImageProcessingFilter\{FD1FA12A-A733-41e9-AEE9-359F859D3165}
HKCR,CLSID\{9273E508-A015-4EE5-934B-DCDE3B928F71}\shellex\ErrorHandler\{f6e88a9f-1728-41bf-b649-cc43c2ecab19}
;;;HKCR,CLSID\{9273E508-A015-4EE5-934B-DCDE3B928F71}\shellex\WiaDialogExtensionHandlers\{b831bb2e-0147-43c8-8b59-d602aa1e33c0}
HKCR,CLSID\{9273E508-A015-4EE5-934B-DCDE3B928F71}\shellex\PropertySheetHandlers\{B831BB2E-0147-43c8-8B59-D602AA1E33C0}

HKCR,CLSID\{B831BB2E-0147-43c8-8B59-D602AA1E33C0},,,"Plustek 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_BG3_WIA]
;PkWiaDrv20_BG3_x64.dll
;PkSegFilter_x64.dll
;PkImgFilter_x64.dll
;PkWiaError_x64.dll
;PkWiaScanUI_x64.dll
;PkWiaUI_x64.dll 

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

[IPCProduct_BG3_NTamd64_60.CoInstallers]
AddReg=CoInstaller_AddReg
CopyFiles=CoInstaller_CopyFiles

[Strings]
IPC="Product"
IPCProduct_BG3="Founder T6 Series"
TwainDSName_BG3="Founder T6 Series"
RunOnce="Software\Microsoft\windows\CurrentVersion\RunOnce"
InfInfo="Software\USBSCAN INFO\Inf_Info"
RK_WIA_BG3="Software\Wow6432Node\Founder\BG3U\Wia"
FN_Inf="BG3U_x64.inf"
FN_MicroDriver_BG3="WIABG305.dll"
FN_PkWiaDrv20_BG3="PkWiaDrv20_BG3_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="USB Scanner(BG3U) CD-ROM"

;[ControlFlags]
;ExcludeFromSelect=*
