; 683U_x64.INF
;
; ADF Duplex Scanner device setup information (64bit)
;
; Copyright (c) 2011

[Version]
Signature="$Windows NT$"
Class=Image
ClassGUID={6bdd1fc6-810f-11d0-bec7-08002be2092f}
Provider=%IPC%
DriverVer=11/11/2011,4.1.0.0
CatalogFile=683U_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%=IPCProduct_NTamd64_51,USB\VID_07b3&PID_1400

[Models.NTamd64.6.0]
%IPCProduct%=IPCProduct_NTamd64_60,USB\VID_07b3&PID_1400

;=====for Windows XP 64bit=======
[IPCProduct_NTamd64_51]
DriverVer=11/11/2011,4.1.0.0
Include=sti.inf
Needs=STI.USBSection,STI.MICRODRIVERSection
SubClass=StillImage
DeviceType=1
Capabilities=0x31
DeviceData=IPCProduct.DeviceData.WIA
AddReg=IPCProduct.AddReg,IPCProduct_Wia.AddReg
;Copyfiles=WinXPCopyFile
ICMProfiles="ADF Scanner(683).icm"

[WinXPCopyFile]
;WIA68305.dll

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

[IPCProduct_NTamd64_51.CoInstallers]
AddReg=CoInstaller_AddReg
CopyFiles=CoInstaller_CopyFiles

[IPCProduct.AddReg]
HKLM,%InfInfo%,"SetupRegKey",,"Software\Wow6432Node\Plustek\683U"
HKLM,%InfInfo%,"CommandLine",,"683"
HKLM,%InfInfo%,"Execution File",,"Install64.exe"

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

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

;=====for Windows Vista 64bit later=======
[IPCProduct_NTamd64_60]
DriverVer=11/11/2011,4.1.0.0
Include=sti.inf
Needs=STI.USBSection
SubClass=StillImage
DeviceType=1
DeviceSubType=0x1
Capabilities=0x31
;Events=PKWIADriver.Events
DeviceData=PKWIADriver.DeviceData
AddReg=IPCProduct_NT60.AddReg,IPCProduct_NT60_Wia.AddReg
;Copyfiles=Win60CopyFile_WIA
ICMProfiles="ADF Scanner(683).icm"

[PKWIADriver.Events]

[PKWIADriver.DeviceData]
UI Class ID={9E90F1FE-8C0B-4e32-B4A6-F82D0BFA2D39}
ISISDriverName="ad460.pxn"
;StoragePath=%10%\ServiceProfiles\LocalService\Documents\WIADRIVER\STORAGE

[IPCProduct_NT60.AddReg]
HKLM,%InfInfo%,"SetupRegKey",,"Software\Wow6432Node\Plustek\683U"
HKLM,%InfInfo%,"CommandLine",,"683"
HKLM,%InfInfo%,"Execution File",,"Install64.exe"

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

HKR,,USDClass,,"{94205587-5311-4d8d-AE57-9EF9B6269A03}"
HKCR,CLSID\{94205587-5311-4d8d-AE57-9EF9B6269A03},,,"Extended WIA Driver"
HKCR,CLSID\{94205587-5311-4d8d-AE57-9EF9B6269A03}\InProcServer32,,,%11%\%FN_PkWiaDrv20%
HKCR,CLSID\{94205587-5311-4d8d-AE57-9EF9B6269A03}\InProcServer32,ThreadingModel,,"Both"

HKCR,CLSID\{9E90F1FE-8C0B-4e32-B4A6-F82D0BFA2D39},,,"WIA Driver UI Extension"
HKCR,CLSID\{9E90F1FE-8C0B-4e32-B4A6-F82D0BFA2D39}\shellex\SegmentationFilter\{150c3c05-d00c-4e68-b9a7-108879df7605}
HKCR,CLSID\{9E90F1FE-8C0B-4e32-B4A6-F82D0BFA2D39}\shellex\ImageProcessingFilter\{FD1FA12A-A733-41e9-AEE9-359F859D3165}
HKCR,CLSID\{9E90F1FE-8C0B-4e32-B4A6-F82D0BFA2D39}\shellex\ErrorHandler\{f6e88a9f-1728-41bf-b649-cc43c2ecab19}
;;;HKCR,CLSID\{9E90F1FE-8C0B-4e32-B4A6-F82D0BFA2D39}\shellex\WiaDialogExtensionHandlers\{b831bb2e-0147-43c8-8b59-d602aa1e33c0}
HKCR,CLSID\{9E90F1FE-8C0B-4e32-B4A6-F82D0BFA2D39}\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_WIA]
;PkWiaDrv20_683_x64.dll
;PkSegFilter_x64.dll
;PkImgFilter_x64.dll
;PkWiaError_x64.dll
;PkWiaScanUI_x64.dll
;PkWiaUI_x64.dll

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

[IPCProduct_NTamd64_60.CoInstallers]
AddReg=CoInstaller_AddReg
CopyFiles=CoInstaller_CopyFiles

[Strings]
IPC="Product"
IPCProduct="Duplex ADF Scanner(683)"
TwainDSName="Duplex ADF Scanner(683)"
RunOnce="Software\Microsoft\windows\CurrentVersion\RunOnce"
InfInfo="Software\USBSCAN INFO\Inf_Info"
RK_WIA="Software\Wow6432Node\Plustek\683U\Wia"
FN_Inf="683U_x64.inf"
FN_MicroDriver="WIA68305.dll"
FN_PkWiaDrv20="PkWiaDrv20_683_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="Duplex ADF Scanner CD-ROM"

;[ControlFlags]
;ExcludeFromSelect=*
