; K5GU_x64.INF
;
;ADF Duplex Scanner(K5GU) device setup information
;
; Copyright (c) 2016

[Version]
Signature="$Windows NT$"
Class=Image
ClassGUID={6bdd1fc6-810f-11d0-bec7-08002be2092f}
Provider=%IPC%
DriverVer=06/06/2016,6.0.0.0
CatalogFile=K5GU_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_K5G%=IPCProduct_K5G_NTamd64_51,USB\VID_07b3&PID_1431

[Models.NTamd64.6.0]
%IPCProduct_K5G%=IPCProduct_K5G_NTamd64_60,USB\VID_07b3&PID_1431

;=====for Windows XP 64bit=======
[IPCProduct_K5G_NTamd64_51]
DriverVer=06/06/2016,6.0.0.0
Include=sti.inf
Needs=STI.USBSection,STI.MICRODRIVERSection
SubClass=StillImage
DeviceType=1
Capabilities=0x31
DeviceData=IPCProduct_K5G.DeviceData.WIA
AddReg=IPCProduct_K5G.AddReg,IPCProduct_K5G_Wia.AddReg
;Copyfiles=WinXPCopyFile_K5G
ICMProfiles="ADF Scanner(K5G).icm"

[WinXPCopyFile_K5G]
;WIAK5G05.dll

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

[IPCProduct_K5G_NTamd64_51.CoInstallers]
AddReg=CoInstaller_AddReg
CopyFiles=CoInstaller_CopyFiles


[IPCProduct_K5G.AddReg]
HKLM,%InfInfo%,"SetupRegKey",,"Software\Wow6432Node\Founder\K5GU"
HKLM,%InfInfo%,"CommandLine",,"K5G"
HKLM,%InfInfo%,"Execution File",,"Install64.exe"

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

[IPCProduct_K5G.DeviceData.WIA]
TwainDS=%TwainDSName_K5G%
ISISDriverName="ps286plus.pxn"
Server=local
MicroDriver="WIAK5G05.dll"
UI DLL=sti.dll
UI Class ID={051E115A-44F4-4C64-87F2-C3EA96CD0235}

;=====for Windows Vista 64bit later=======
[IPCProduct_K5G_NTamd64_60]
DriverVer=06/06/2016,6.0.0.0 
Include=sti.inf
Needs=STI.USBSection
SubClass=StillImage
DeviceType=1
DeviceSubType=0x1
Capabilities=0x31
;Events=PKWIADriver.Events
DeviceData=PKWIADriver_K5G.DeviceData
AddReg=IPCProduct_K5G_NT60.AddReg,IPCProduct_K5G_NT60_Wia.AddReg
;Copyfiles=Win60CopyFile_K5G_WIA
ICMProfiles="ADF Scanner(K5G).icm"

[PKWIADriver.Events]

[PKWIADriver_K5G.DeviceData]
UI Class ID={051E115A-44F4-4C64-87F2-C3EA96CD0235}
ISISDriverName="ps286plus.pxn"
;StoragePath=%10%\ServiceProfiles\LocalService\Documents\WIADRIVER\STORAGE

[IPCProduct_K5G_NT60.AddReg]
HKLM,%InfInfo%,"SetupRegKey",,"Software\Wow6432Node\Founder\K5GU"
HKLM,%InfInfo%,"CommandLine",,"K5G"
HKLM,%InfInfo%,"Execution File",,"Install64.exe"

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

HKR,,USDClass,,"{6776A37A-79C4-4A0B-A558-1515ED574C27}"
HKCR,CLSID\{6776A37A-79C4-4A0B-A558-1515ED574C27},,,"Extended WIA Driver"
HKCR,CLSID\{6776A37A-79C4-4A0B-A558-1515ED574C27}\InProcServer32,,,%11%\%FN_PkWiaDrv20_K5G%
HKCR,CLSID\{6776A37A-79C4-4A0B-A558-1515ED574C27}\InProcServer32,ThreadingModel,,"Both"

HKCR,CLSID\{051E115A-44F4-4C64-87F2-C3EA96CD0235},,,"WIA Driver UI Extension"
HKCR,CLSID\{051E115A-44F4-4C64-87F2-C3EA96CD0235}\shellex\SegmentationFilter\{150c3c05-d00c-4e68-b9a7-108879df7605}
HKCR,CLSID\{051E115A-44F4-4C64-87F2-C3EA96CD0235}\shellex\ImageProcessingFilter\{FD1FA12A-A733-41e9-AEE9-359F859D3165}
HKCR,CLSID\{051E115A-44F4-4C64-87F2-C3EA96CD0235}\shellex\ErrorHandler\{f6e88a9f-1728-41bf-b649-cc43c2ecab19}
;;;HKCR,CLSID\{051E115A-44F4-4C64-87F2-C3EA96CD0235}\shellex\WiaDialogExtensionHandlers\{b831bb2e-0147-43c8-8b59-d602aa1e33c0}
HKCR,CLSID\{051E115A-44F4-4C64-87F2-C3EA96CD0235}\shellex\PropertySheetHandlers\{B831BB2E-0147-43c8-8B59-D602AA1E33C0}

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

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

[IPCProduct_K5G_NTamd64_60.CoInstallers]
AddReg=CoInstaller_AddReg
CopyFiles=CoInstaller_CopyFiles

[Strings]
IPC="Product"
IPCProduct_K5G="Founder Z30D"
TwainDSName_K5G="Founder Z30D"
RunOnce="Software\Microsoft\windows\CurrentVersion\RunOnce"
InfInfo="Software\USBSCAN INFO\Inf_Info"
RK_WIA_K5G="Software\Wow6432Node\Founder\K5GU\Wia"
FN_Inf="K5GU_x64.inf"
FN_MicroDriver_K5G="WIAK5G05.dll"
FN_PkWiaDrv20_K5G="PkWiaDrv20_K5G_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 CD-ROM"

[Strings.0804]
IPC="Product"
IPCProduct_K5G="Founder Z30D"
TwainDSName_K5G="Founder Z30D"
RunOnce="Software\Microsoft\windows\CurrentVersion\RunOnce"
InfInfo="Software\USBSCAN INFO\Inf_Info"
RK_WIA_K5G="Software\Wow6432Node\Founder\K5GU\Wia"
FN_Inf="K5GU_x64.inf"
FN_MicroDriver_K5G="WIAK5G05.dll"
FN_PkWiaDrv20_K5G="PkWiaDrv20_K5G_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 CD-ROM"
;[ControlFlags]
;ExcludeFromSelect=*
