; 2C2_2C3U.INF
;
; A3 Scanner(2C2_2C3U) device setup information
;
; Copyright (c) 2017

[Version]
Signature="$CHICAGO$"
Class=Image
ClassGUID={6bdd1fc6-810f-11d0-bec7-08002be2092f}
Provider=%IPC%
DriverVer=08/06/2017,1.0
CatalogFile=2C2_2C3U.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_2C2%=IPCProduct_2C2,USB\VID_07b3&PID_1814
%IPCProduct_2C3%=IPCProduct_2C3,USB\VID_07b3&PID_1815

[Models.NTx86.5.1]
%IPCProduct_2C2%=IPCProduct_2C2_NT51,USB\VID_07b3&PID_1814
%IPCProduct_2C3%=IPCProduct_2C3_NT51,USB\VID_07b3&PID_1815


[Models.NTx86.6.0]
%IPCProduct_2C2%=IPCProduct_2C2_NT60,USB\VID_07b3&PID_1814
%IPCProduct_2C3%=IPCProduct_2C3_NT60,USB\VID_07b3&PID_1815


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

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


[IPCProduct_2C2.NT]
DriverVer=08/06/2017,1.0
Include=sti.inf
Needs=STI.USBSection
AddReg=IPCProduct_2C2.AddReg,IPCProduct_UsbScan.AddReg
;Copyfiles=CopySetupFile

[IPCProduct_2C3.NT]
DriverVer=08/06/2017,1.0
Include=sti.inf
Needs=STI.USBSection
AddReg=IPCProduct_2C3.AddReg,IPCProduct_UsbScan.AddReg
;Copyfiles=CopySetupFile



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

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

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

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

[CopySetupFile]
AutoSet.dll,,,32

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

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

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

;=====for Windows XP=======
[IPCProduct_2C2_NT51]
DriverVer=08/06/2017,1.0
Include=sti.inf
Needs=STI.USBSection
SubClass=StillImage
DeviceType=1
Capabilities=0x31
DeviceData=IPCProduct_2C2.DeviceData.WIA
AddReg=IPCProduct_2C2.AddReg,IPCProduct_2C2_Wia.AddReg
ICMProfiles="Uniscan A3 FB Scanner Series.icm"

[IPCProduct_2C3_NT51]
DriverVer=08/06/2017,1.0
Include=sti.inf
Needs=STI.USBSection
SubClass=StillImage
DeviceType=1
Capabilities=0x31
DeviceData=IPCProduct_2C3.DeviceData.WIA
AddReg=IPCProduct_2C3.AddReg,IPCProduct_2C3_Wia.AddReg
ICMProfiles="Uniscan A3 FB Scanner Series.icm"
[IPCProduct_2C2_NT51.Services]
Include=sti.inf
Needs=STI.USBSection.Services

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

[IPCProduct_2C2_NT51.CoInstallers]
AddReg=CoInstaller_AddReg
CopyFiles=CoInstaller_CopyFiles

[IPCProduct_2C3_NT51.CoInstallers]
AddReg=CoInstaller_AddReg
CopyFiles=CoInstaller_CopyFiles

[IPCProduct_2C2.DeviceData.WIA]
TwainDS=%TwainDSName_2C2%
ISISDriverName="ps286plus.pxn"
Server=local
UI DLL=sti.dll
UI Class ID={9AC258A8-48F3-421D-853F-89DCB675F4E2}

[IPCProduct_2C3.DeviceData.WIA]
TwainDS=%TwainDSName_2C3%
ISISDriverName="ps286plus.pxn"
Server=local
UI DLL=sti.dll
UI Class ID={A18F38E0-6002-4BA1-ADED-5E50F049CBFF}

[IPCProduct_2C2.AddReg]
HKLM,%InfInfo%,"SetupRegKey",,"Software\Uniscan\2C2U"
HKLM,%InfInfo%,"CommandLine",,"2C2"
HKLM,%InfInfo%,"Execution File",,"Install32.exe"

[IPCProduct_2C3.AddReg]
HKLM,%InfInfo%,"SetupRegKey",,"Software\Uniscan\2C3U"
HKLM,%InfInfo%,"CommandLine",,"2C3"
HKLM,%InfInfo%,"Execution File",,"Install32.exe"

[IPCProduct_2C2_Wia.AddReg]
HKR,,HardwareConfig,1,4
HKLM,%RK_WIA_2C2%,FullPath,,%11%\%FN_MicroDriver_2C2%
HKLM,%RK_WIA_2C2%,Brightness,0x00010001,0
HKLM,%RK_WIA_2C2%,Contrast,0x00010001,0

HKR,,USDClass,,"{095F370B-46BE-431B-ABB6-947AD335A04B}"
HKCR,CLSID\{095F370B-46BE-431B-ABB6-947AD335A04B},,,"Uniscan WIA XP Scanner Minidriver"
HKCR,CLSID\{095F370B-46BE-431B-ABB6-947AD335A04B}\InProcServer32,,,%11%\%FN_MicroDriver_2C2%
HKCR,CLSID\{095F370B-46BE-431B-ABB6-947AD335A04B}\InProcServer32,ThreadingModel,,Both

;;HKCR,CLSID\{9AC258A8-48F3-421D-853F-89DCB675F4E2}\shellex\WiaDialogExtensionHandlers\{B831BB2E-0147-43c8-8B59-D602AA1E33C0}
HKCR,CLSID\{9AC258A8-48F3-421D-853F-89DCB675F4E2}\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_2C3_Wia.AddReg]
HKR,,HardwareConfig,1,4
HKLM,%RK_WIA_2C3%,FullPath,,%11%\%FN_MicroDriver_2C3%
HKLM,%RK_WIA_2C3%,Brightness,0x00010001,0
HKLM,%RK_WIA_2C3%,Contrast,0x00010001,0

HKR,,USDClass,,"{CC94657B-3E80-465C-AF01-9826C983C24D}"
HKCR,CLSID\{CC94657B-3E80-465C-AF01-9826C983C24D},,,"Uniscan WIA XP Scanner Minidriver"
HKCR,CLSID\{CC94657B-3E80-465C-AF01-9826C983C24D}\InProcServer32,,,%11%\%FN_MicroDriver_2C3%
HKCR,CLSID\{CC94657B-3E80-465C-AF01-9826C983C24D}\InProcServer32,ThreadingModel,,Both

;;HKCR,CLSID\{A18F38E0-6002-4BA1-ADED-5E50F049CBFF}\shellex\WiaDialogExtensionHandlers\{B831BB2E-0147-43c8-8B59-D602AA1E33C0}
HKCR,CLSID\{A18F38E0-6002-4BA1-ADED-5E50F049CBFF}\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_2C2_NT60]
DriverVer=08/06/2017,1.0
Include=sti.inf
Needs=STI.USBSection
SubClass=StillImage
DeviceType=1
DeviceSubType=0x1
Capabilities=0x31
;Events=PKWIADriver.Events
DeviceData=PKWIADriver_2C2.DeviceData
AddReg=IPCProduct_2C2_NT60.AddReg,IPCProduct_2C2_NT60_Wia.AddReg
;Copyfiles=Win60CopyFile_2C2_WIA
ICMProfiles="Uniscan A3 FB Scanner Series.icm"

[IPCProduct_2C3_NT60]
DriverVer=08/06/2017,1.0
Include=sti.inf
Needs=STI.USBSection
SubClass=StillImage
DeviceType=1
DeviceSubType=0x1
Capabilities=0x31
;Events=PKWIADriver.Events
DeviceData=PKWIADriver_2C3.DeviceData
AddReg=IPCProduct_2C3_NT60.AddReg,IPCProduct_2C3_NT60_Wia.AddReg
;Copyfiles=Win60CopyFile_2C3_WIA
ICMProfiles="Uniscan A3 FB Scanner Series.icm"

[PKWIADriver.Events]

[PKWIADriver_2C2.DeviceData]
UI Class ID={49DC739C-8644-4103-A48D-9188FEFE8DC7}
ISISDriverName="ps286plus.pxn"
;StoragePath=%10%\ServiceProfiles\LocalService\Documents\WIADRIVER\STORAGE

[PKWIADriver_2C3.DeviceData]
UI Class ID={5B5F1FEF-E7F0-41F1-B397-08F6AB7D98D1}
ISISDriverName="ps286plus.pxn"
;StoragePath=%10%\ServiceProfiles\LocalService\Documents\WIADRIVER\STORAGE

[IPCProduct_2C2_NT60.AddReg]
HKLM,%InfInfo%,"SetupRegKey",,"Software\Uniscan\2C2U"
HKLM,%InfInfo%,"CommandLine",,"2C2"
HKLM,%InfInfo%,"Execution File",,"Install32.exe"

[IPCProduct_2C3_NT60.AddReg]
HKLM,%InfInfo%,"SetupRegKey",,"Software\Uniscan\2C3U"
HKLM,%InfInfo%,"CommandLine",,"2C3"
HKLM,%InfInfo%,"Execution File",,"Install32.exe"

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

HKR,,USDClass,,"{095F370B-46BE-431B-ABB6-947AD335A04B}"
HKCR,CLSID\{095F370B-46BE-431B-ABB6-947AD335A04B},,,"Extended WIA Driver"
HKCR,CLSID\{095F370B-46BE-431B-ABB6-947AD335A04B}\InProcServer32,,,%11%\%FN_PkWiaDrv20_2C2%
HKCR,CLSID\{095F370B-46BE-431B-ABB6-947AD335A04B}\InProcServer32,ThreadingModel,,"Both"

HKCR,CLSID\{49DC739C-8644-4103-A48D-9188FEFE8DC7},,,"WIA Driver UI Extension"
HKCR,CLSID\{49DC739C-8644-4103-A48D-9188FEFE8DC7}\shellex\SegmentationFilter\{150c3c05-d00c-4e68-b9a7-108879df7605}
HKCR,CLSID\{49DC739C-8644-4103-A48D-9188FEFE8DC7}\shellex\ImageProcessingFilter\{FD1FA12A-A733-41e9-AEE9-359F859D3165}
HKCR,CLSID\{49DC739C-8644-4103-A48D-9188FEFE8DC7}\shellex\ErrorHandler\{f6e88a9f-1728-41bf-b649-cc43c2ecab19}
;;;HKCR,CLSID\{49DC739C-8644-4103-A48D-9188FEFE8DC7}\shellex\WiaDialogExtensionHandlers\{b831bb2e-0147-43c8-8b59-d602aa1e33c0}
HKCR,CLSID\{49DC739C-8644-4103-A48D-9188FEFE8DC7}\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_2C3_NT60_Wia.AddReg]
HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,,usbscan.sys
HKR,,HardwareConfig,1,4
HKLM,%RK_WIA_2C3%,FullPath,,%11%\%FN_PkWiaDrv20_2C3%
HKLM,%RK_WIA_2C3%,Brightness,0x00010001,0
HKLM,%RK_WIA_2C3%,Contrast,0x00010001,0

HKR,,USDClass,,"{CC94657B-3E80-465C-AF01-9826C983C24D}"
HKCR,CLSID\{CC94657B-3E80-465C-AF01-9826C983C24D},,,"Extended WIA Driver"
HKCR,CLSID\{CC94657B-3E80-465C-AF01-9826C983C24D}\InProcServer32,,,%11%\%FN_PkWiaDrv20_2C3%
HKCR,CLSID\{CC94657B-3E80-465C-AF01-9826C983C24D}\InProcServer32,ThreadingModel,,"Both"

HKCR,CLSID\{5B5F1FEF-E7F0-41F1-B397-08F6AB7D98D1},,,"WIA Driver UI Extension"
HKCR,CLSID\{5B5F1FEF-E7F0-41F1-B397-08F6AB7D98D1}\shellex\SegmentationFilter\{150c3c05-d00c-4e68-b9a7-108879df7605}
HKCR,CLSID\{5B5F1FEF-E7F0-41F1-B397-08F6AB7D98D1}\shellex\ImageProcessingFilter\{FD1FA12A-A733-41e9-AEE9-359F859D3165}
HKCR,CLSID\{5B5F1FEF-E7F0-41F1-B397-08F6AB7D98D1}\shellex\ErrorHandler\{f6e88a9f-1728-41bf-b649-cc43c2ecab19}
;;;HKCR,CLSID\{5B5F1FEF-E7F0-41F1-B397-08F6AB7D98D1}\shellex\WiaDialogExtensionHandlers\{b831bb2e-0147-43c8-8b59-d602aa1e33c0}
HKCR,CLSID\{5B5F1FEF-E7F0-41F1-B397-08F6AB7D98D1}\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_2C2_WIA]
;PkWiaDrv20_2C2.dll
;PkSegFilter.dll
;PkImgFilter.dll
;PkWiaError.dll
;PkWiaScanUI.dll

[Win60CopyFile_2C3_WIA]
;PkWiaDrv20_2C3.dll
;PkSegFilter.dll
;PkImgFilter.dll
;PkWiaError.dll
;PkWiaScanUI.dll

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

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

[IPCProduct_2C2_NT60.CoInstallers]
AddReg=CoInstaller_AddReg
CopyFiles=CoInstaller_CopyFiles

[IPCProduct_2C3_NT60.CoInstallers]
AddReg=CoInstaller_AddReg
CopyFiles=CoInstaller_CopyFiles

[Strings]
IPC="UNIS"
IPCProduct_2C2="Uniscan M1X-II"
IPCProduct_2C3="Uniscan FM1000-II"

TwainDSName_2C2="Uniscan M1X-II"
TwainDSName_2C3="Uniscan FM1000-II"

RunOnce="Software\Microsoft\windows\CurrentVersion\RunOnce"
InfInfo="Software\USBSCAN INFO\Inf_Info"
RK_WIA_2C2="Software\Uniscan\2C2U\Wia"
RK_WIA_2C3="Software\Uniscan\2C3U\Wia"
FN_MicroDriver_2C2="PkWiaDrv10_2C2.dll"
FN_MicroDriver_2C3="PkWiaDrv10_2C3.dll"

FN_PkWiaDrv20_2C2="PkWiaDrv20_2C2.dll"
FN_PkWiaDrv20_2C3="PkWiaDrv20_2C3.dll"
FN_PkWiaXPUI="PkWiaXPUI.dll"
FN_PkWiaScanUI="PkWiaScanUI.dll"
FN_PkSegFilter="PkSegFilter.dll"
FN_PkImgFilter="PkImgFilter.dll"
FN_PkWiaError="PkWiaError.dll"
DisksName="Flatbed Scanner CD-ROM"

;[ControlFlags]
;ExcludeFromSelect=*
