; K74_K75U.INF
;
; USB Scanner device setup information
;
; Copyright (c) 2016

[Version]
Signature="$CHICAGO$"
Class=Image
ClassGUID={6bdd1fc6-810f-11d0-bec7-08002be2092f}
Provider=%IPC%
DriverVer=12/12/2016,6.0.0.0
CatalogFile=K74_K75U.cat

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

[SourceDisksFiles]
usbscan.sy_=1
AutoSet.dll=1
GetInst32.dll=1

[DestinationDirs]
CopySetupFile=10
CopyUsbScan=11
DefaultDestDir=11

[CopyUsbScan]
usbscan.sys,usbscan.sy_,,32

[CoInstaller_CopyFiles]
GetInst32.dll

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

[InstallInfo]
OriginalInfSourcePath = %1%

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

[Models]
%IPCProduct_K74%=IPCProduct_K74,USB\VID_07b3&PID_190C
%IPCProduct_K75%=IPCProduct_K75,USB\VID_07b3&PID_190D


[Models.NTx86.5.1]
%IPCProduct_K74%=IPCProduct_K74_NT51,USB\VID_07b3&PID_190C
%IPCProduct_K75%=IPCProduct_K75_NT51,USB\VID_07b3&PID_190D

[Models.NTx86.6.0]
%IPCProduct_K74%=IPCProduct_K74_NT60,USB\VID_07b3&PID_190C
%IPCProduct_K75%=IPCProduct_K75_NT60,USB\VID_07b3&PID_190D


;=====for Windows XP before=======
[IPCProduct_K74]
AddReg=IPCProduct_K74.AddReg.9x,IPCProduct_UsbScan.AddReg
;Copyfiles=CopyUsbScan
Copyfiles=CopySetupFile,CopyUsbScan

[IPCProduct_K75]
AddReg=IPCProduct_K75.AddReg.9x,IPCProduct_UsbScan.AddReg
;Copyfiles=CopyUsbScan
Copyfiles=CopySetupFile,CopyUsbScan


[IPCProduct_K74.NT]
DriverVer=12/12/2016,6.0.0.0
Include=sti.inf
Needs=STI.USBSection
AddReg=IPCProduct_K74.AddReg,IPCProduct_UsbScan.AddReg
;Copyfiles=CopySetupFile

[IPCProduct_K75.NT]
DriverVer=12/12/2016,6.0.0.0
Include=sti.inf
Needs=STI.USBSection
AddReg=IPCProduct_K75.AddReg,IPCProduct_UsbScan.AddReg
;Copyfiles=CopySetupFile


[IPCProduct_K74.NT.Services]
Include=sti.inf
Needs=STI.USBSection.Services

[IPCProduct_K75.NT.Services]
Include=sti.inf
Needs=STI.USBSection.Services


[IPCProduct_K74.NT.CoInstallers]
AddReg=CoInstaller_AddReg
CopyFiles=CoInstaller_CopyFiles

[IPCProduct_K75.NT.CoInstallers]
AddReg=CoInstaller_AddReg
CopyFiles=CoInstaller_CopyFiles


[CopySetupFile]
AutoSet.dll,,,32

[IPCProduct_UsbScan.AddReg]
HKR,,DevLoader,,*NTKERN
HKR,,NTMPDriver,,"usbscan.sys"

[IPCProduct_K74.AddReg.9x]
HKLM,%RunOnce%,"RunSetup",,"RunDll32.exe AutoSet.dll,fnRun USBSCAN INFO,Uniscan\K74U"
HKLM,%InfInfo%,"SetupProgram",,"%1%\Install32.exe"
HKLM,%InfInfo%,"SetupExist",,"%1%\Model.ini"
HKLM,%InfInfo%,"CommandLine",,"K74"
HKLM,%InfInfo%,"SetupCaption",,"%IPCProduct_K74% Scanner Setup"
HKLM,%InfInfo%,"SetupErrorExist",,"Please insert the %IPCProduct_K74% Setup / Application CD-ROM into your CD-ROM drive."

[IPCProduct_K75.AddReg.9x]
HKLM,%RunOnce%,"RunSetup",,"RunDll32.exe AutoSet.dll,fnRun USBSCAN INFO,Uniscan\K75U"
HKLM,%InfInfo%,"SetupProgram",,"%1%\Install32.exe"
HKLM,%InfInfo%,"SetupExist",,"%1%\Model.ini"
HKLM,%InfInfo%,"CommandLine",,"K75"
HKLM,%InfInfo%,"SetupCaption",,"%IPCProduct_K75% Scanner Setup"
HKLM,%InfInfo%,"SetupErrorExist",,"Please insert the %IPCProduct_K75% Setup / Application CD-ROM into your CD-ROM drive."


;=====for Windows XP=======
[IPCProduct_K74_NT51]
DriverVer=12/12/2016,6.0.0.0
Include=sti.inf
Needs=STI.USBSection
SubClass=StillImage
DeviceType=1
Capabilities=0x31
DeviceData=IPCProduct_K74.DeviceData.WIA
AddReg=IPCProduct_K74.AddReg,IPCProduct_K74_Wia.AddReg
ICMProfiles="ADF Scanner(K74).icm"

[IPCProduct_K75_NT51]
DriverVer=12/12/2016,6.0.0.0
Include=sti.inf
Needs=STI.USBSection
SubClass=StillImage
DeviceType=1
Capabilities=0x31
DeviceData=IPCProduct_K75.DeviceData.WIA
AddReg=IPCProduct_K75.AddReg,IPCProduct_K75_Wia.AddReg
ICMProfiles="ADF Scanner(K75).icm"


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

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



[IPCProduct_K74_NT51.CoInstallers]
AddReg=CoInstaller_AddReg
CopyFiles=CoInstaller_CopyFiles

[IPCProduct_K75_NT51.CoInstallers]
AddReg=CoInstaller_AddReg
CopyFiles=CoInstaller_CopyFiles



[IPCProduct_K74.DeviceData.WIA]
TwainDS=%TwainDSName_K74%
ISISDriverName="ps286plus.pxn"
Server=local
UI DLL=sti.dll
UI Class ID={DE8762DE-D10E-4A79-B495-DBDDE786C622}

[IPCProduct_K75.DeviceData.WIA]
TwainDS=%TwainDSName_K75%
ISISDriverName="ps286plus.pxn"
Server=local
UI DLL=sti.dll
UI Class ID={2C93F261-F8F1-47D5-AD55-F11372DA8B6A}



[IPCProduct_K74.AddReg]
HKLM,%InfInfo%,"SetupRegKey",,"Software\Uniscan\K74U"
HKLM,%InfInfo%,"CommandLine",,"K74"
HKLM,%InfInfo%,"Execution File",,"Install32.exe"

[IPCProduct_K75.AddReg]
HKLM,%InfInfo%,"SetupRegKey",,"Software\Uniscan\K75U"
HKLM,%InfInfo%,"CommandLine",,"K75"
HKLM,%InfInfo%,"Execution File",,"Install32.exe"


[IPCProduct_K74_Wia.AddReg]
HKR,,HardwareConfig,1,4
HKLM,%RK_WIA_K74%,FullPath,,%11%\%FN_MicroDriver_K74%
HKLM,%RK_WIA_K74%,Brightness,0x00010001,0
HKLM,%RK_WIA_K74%,Contrast,0x00010001,0

HKR,,USDClass,,"{A45B4983-0414-4147-A52C-BCC90CC82A79}"
HKCR,CLSID\{A45B4983-0414-4147-A52C-BCC90CC82A79},,,"Uniscan WIA XP Scanner Minidriver"
HKCR,CLSID\{A45B4983-0414-4147-A52C-BCC90CC82A79}\InProcServer32,,,%11%\%FN_MicroDriver_K74%
HKCR,CLSID\{A45B4983-0414-4147-A52C-BCC90CC82A79}\InProcServer32,ThreadingModel,,Both

;;HKCR,CLSID\{DE8762DE-D10E-4A79-B495-DBDDE786C622}\shellex\WiaDialogExtensionHandlers\{B831BB2E-0147-43c8-8B59-D602AA1E33C0}
HKCR,CLSID\{DE8762DE-D10E-4A79-B495-DBDDE786C622}\shellex\PropertySheetHandlers\{B831BB2E-0147-43c8-8B59-D602AA1E33C0}

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

[IPCProduct_K75_Wia.AddReg]
HKR,,HardwareConfig,1,4
HKLM,%RK_WIA_K75%,FullPath,,%11%\%FN_MicroDriver_K75%
HKLM,%RK_WIA_K75%,Brightness,0x00010001,0
HKLM,%RK_WIA_K75%,Contrast,0x00010001,0

HKR,,USDClass,,"{C2422E21-F592-470F-9D81-4DA3AC4FD392}"
HKCR,CLSID\{C2422E21-F592-470F-9D81-4DA3AC4FD392},,,"Uniscan WIA XP Scanner Minidriver"
HKCR,CLSID\{C2422E21-F592-470F-9D81-4DA3AC4FD392}\InProcServer32,,,%11%\%FN_MicroDriver_K75%
HKCR,CLSID\{C2422E21-F592-470F-9D81-4DA3AC4FD392}\InProcServer32,ThreadingModel,,Both

;;HKCR,CLSID\{2C93F261-F8F1-47D5-AD55-F11372DA8B6A}\shellex\WiaDialogExtensionHandlers\{B831BB2E-0147-43c8-8B59-D602AA1E33C0}
HKCR,CLSID\{2C93F261-F8F1-47D5-AD55-F11372DA8B6A}\shellex\PropertySheetHandlers\{B831BB2E-0147-43c8-8B59-D602AA1E33C0}

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



;=====for Windows Vista later=======
[IPCProduct_K74_NT60]
DriverVer=12/12/2016,6.0.0.0
Include=sti.inf
Needs=STI.USBSection
SubClass=StillImage
DeviceType=1
DeviceSubType=0x1
Capabilities=0x31
;Events=PKWIADriver.Events
DeviceData=PKWIADriver_K74.DeviceData
AddReg=IPCProduct_K74_NT60.AddReg,IPCProduct_K74_NT60_Wia.AddReg
;Copyfiles=Win60CopyFile_K74_WIA
ICMProfiles="ADF Scanner(K74).icm"

[IPCProduct_K75_NT60]
DriverVer=12/12/2016,6.0.0.0
Include=sti.inf
Needs=STI.USBSection
SubClass=StillImage
DeviceType=1
DeviceSubType=0x1
Capabilities=0x31
;Events=PKWIADriver.Events
DeviceData=PKWIADriver_K75.DeviceData
AddReg=IPCProduct_K75_NT60.AddReg,IPCProduct_K75_NT60_Wia.AddReg
;Copyfiles=Win60CopyFile_K75_WIA
ICMProfiles="ADF Scanner(K75).icm"


[PKWIADriver.Events]

[PKWIADriver_K74.DeviceData]
UI Class ID={DE8762DE-D10E-4A79-B495-DBDDE786C622}
ISISDriverName="ps286plus.pxn"
;StoragePath=%10%\ServiceProfiles\LocalService\Documents\WIADRIVER\STORAGE

[PKWIADriver_K75.DeviceData]
UI Class ID={2C93F261-F8F1-47D5-AD55-F11372DA8B6A}
ISISDriverName="ps286plus.pxn"
;StoragePath=%10%\ServiceProfiles\LocalService\Documents\WIADRIVER\STORAGE


[IPCProduct_K74_NT60.AddReg]
HKLM,%InfInfo%,"SetupRegKey",,"Software\Uniscan\K74U"
HKLM,%InfInfo%,"CommandLine",,"K74"
HKLM,%InfInfo%,"Execution File",,"Install32.exe"

[IPCProduct_K75_NT60.AddReg]
HKLM,%InfInfo%,"SetupRegKey",,"Software\Uniscan\K75U"
HKLM,%InfInfo%,"CommandLine",,"K75"
HKLM,%InfInfo%,"Execution File",,"Install32.exe"



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

HKR,,USDClass,,"{A45B4983-0414-4147-A52C-BCC90CC82A79}"
HKCR,CLSID\{A45B4983-0414-4147-A52C-BCC90CC82A79},,,"Extended WIA Driver"
HKCR,CLSID\{A45B4983-0414-4147-A52C-BCC90CC82A79}\InProcServer32,,,%11%\%FN_PkWiaDrv20_K74%
HKCR,CLSID\{A45B4983-0414-4147-A52C-BCC90CC82A79}\InProcServer32,ThreadingModel,,"Both"

HKCR,CLSID\{DE8762DE-D10E-4A79-B495-DBDDE786C622},,,"WIA Driver UI Extension"
HKCR,CLSID\{DE8762DE-D10E-4A79-B495-DBDDE786C622}\shellex\SegmentationFilter\{150c3c05-d00c-4e68-b9a7-108879df7605}
HKCR,CLSID\{DE8762DE-D10E-4A79-B495-DBDDE786C622}\shellex\ImageProcessingFilter\{FD1FA12A-A733-41e9-AEE9-359F859D3165}
HKCR,CLSID\{DE8762DE-D10E-4A79-B495-DBDDE786C622}\shellex\ErrorHandler\{f6e88a9f-1728-41bf-b649-cc43c2ecab19}
;;;HKCR,CLSID\{DE8762DE-D10E-4A79-B495-DBDDE786C622}\shellex\WiaDialogExtensionHandlers\{b831bb2e-0147-43c8-8b59-d602aa1e33c0}
HKCR,CLSID\{DE8762DE-D10E-4A79-B495-DBDDE786C622}\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"


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

HKR,,USDClass,,"{C2422E21-F592-470F-9D81-4DA3AC4FD392}"
HKCR,CLSID\{C2422E21-F592-470F-9D81-4DA3AC4FD392},,,"Extended WIA Driver"
HKCR,CLSID\{C2422E21-F592-470F-9D81-4DA3AC4FD392}\InProcServer32,,,%11%\%FN_PkWiaDrv20_K75%
HKCR,CLSID\{C2422E21-F592-470F-9D81-4DA3AC4FD392}\InProcServer32,ThreadingModel,,"Both"

HKCR,CLSID\{2C93F261-F8F1-47D5-AD55-F11372DA8B6A},,,"WIA Driver UI Extension"
HKCR,CLSID\{2C93F261-F8F1-47D5-AD55-F11372DA8B6A}\shellex\SegmentationFilter\{150c3c05-d00c-4e68-b9a7-108879df7605}
HKCR,CLSID\{2C93F261-F8F1-47D5-AD55-F11372DA8B6A}\shellex\ImageProcessingFilter\{FD1FA12A-A733-41e9-AEE9-359F859D3165}
HKCR,CLSID\{2C93F261-F8F1-47D5-AD55-F11372DA8B6A}\shellex\ErrorHandler\{f6e88a9f-1728-41bf-b649-cc43c2ecab19}
;;;HKCR,CLSID\{2C93F261-F8F1-47D5-AD55-F11372DA8B6A}\shellex\WiaDialogExtensionHandlers\{b831bb2e-0147-43c8-8b59-d602aa1e33c0}
HKCR,CLSID\{2C93F261-F8F1-47D5-AD55-F11372DA8B6A}\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_K74_WIA]
;PkWiaDrv20_B7B.dll
;PkSegFilter.dll
;PkImgFilter.dll
;PkWiaError.dll
;PkWiaScanUI.dll

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

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


[IPCProduct_K74_NT60.CoInstallers]
AddReg=CoInstaller_AddReg
CopyFiles=CoInstaller_CopyFiles

[IPCProduct_K75_NT60.CoInstallers]
AddReg=CoInstaller_AddReg
CopyFiles=CoInstaller_CopyFiles


[Strings]
IPC="Uniscan"

IPCProduct_K74="Uniscan Qi-Scanner"
IPCProduct_K75="Uniscan Qi-Scanner II"

TwainDSName_K74="Uniscan Qi-Scanner"
TwainDSName_K75="Uniscan Qi-Scanner II"

RunOnce="Software\Microsoft\windows\CurrentVersion\RunOnce"
InfInfo="Software\USBSCAN INFO\Inf_Info"

RK_WIA_K74="Software\Uniscan\K74U\Wia"
RK_WIA_K75="Software\Uniscan\K75U\Wia"

FN_MicroDriver_K74="PkWiaDrv10_K74.dll"
FN_MicroDriver_K75="PkWiaDrv10_K75.dll"

FN_PkWiaDrv20_K74="PkWiaDrv20_K74.dll"
FN_PkWiaDrv20_K75="PkWiaDrv20_K75.dll"

FN_PkWiaXPUI="PkWiaXPUI.dll"
FN_PkWiaScanUI="PkWiaScanUI.dll"
FN_PkSegFilter="PkSegFilter.dll"
FN_PkImgFilter="PkImgFilter.dll"
FN_PkWiaError="PkWiaError.dll"
DisksName="USB Scanner CD-ROM"

;[ControlFlags]
;ExcludeFromSelect=*
