; 2282SC.inf     
; installation file for the Scanner Driver
; Color Scanner's setup file.
; Copyright (c) 2018. All rights reserved.
; Manufacturer: Konica
;

[Version]
Signature="$Windows NT$"
Class=Image
ClassGUID={6bdd1fc6-810f-11d0-bec7-08002be2092f}
Provider=%Company%

DriverVer = 04/03/2018,1.0.0.2
CatalogFile=2282wia.cat


[SourceDisksFiles.x86]
2282wiasec.dll=96
2282wia.dll=96
2282lld.dll = 96
2282Apreg.dll =96
2282ImgEffect.dll=96

2282ds.ds = 3
2282ImgEffect.dll = 3
2282lld.dll = 3

; RC file
2282twrczhcn.dll = 3
2282twrcenus.dll = 3

; Help file
2282twzhcn.chm = 4
2282twenus.chm = 4
2282.ini = 4

[SourceDisksNames.x86]
1=%Location%,,,

96 = %DISK%,,,2282X86
3 = %DISK%,,,x32\2282
4 = %DISK%,,,.



[SourceDisksFiles.amd64]
2282wiasec.dll=99
2282wia.dll = 99
2282lld.dll = 99
2282ImgEffect.dll=99
2282ApReg.dll =99

2282ds.ds = 3
2282ImgEffect.dll = 3
2282lld.dll = 3


; RC file
2282twrczhcn.dll = 3
2282twrcenus.dll = 3

; Help file
2282twzhcn.chm = 4
2282twenus.chm = 4
2282.ini = 4

[SourceDisksNames.amd64]
2 = %Location%,,,

99 = %DISK%,,,2282AMD64
3 = %DISK%,,,x32\2282
4 = %DISK%,,,.

[DestinationDirs]
DefaultDestDir=11    
TWAINDRIVER.CopyFiles=10,"twain_32\Konica\2282"
TWAINDRIVER.amd64.CopyFiles=10,"twain_64\Konica\2282"
ICM.CopyFiles=23
INI.CopyFiles=10

TWAINDRIVER.Delfiles=10,"twain_32\Konica\2282"
TWAINDRIVER.amd64.Delfiles=10,"twain_64\Konica\2282"
ICM.Delfiles=23


[Manufacturer]
%Company%=Konica, NTx86, NTx86.6.1, NTamd64, NTamd64.6.1


[Konica.NTx86]
%SCANNER.WIA1.0.DeviceDesc% = SCANNER.WIA1.0DRIVER.ntx86,%2282MF_VIDPID%

[Konica.NTx86.6.1]
%SCANNER.WIA2.0.DeviceDesc% = SCANNER.WIA2.0DRIVER.ntx86,%2282MF_VIDPID%

[Konica.NTamd64]
%SCANNER.WIA1.0.DeviceDesc% = SCANNER.WIA1.0DRIVER.ntamd64,%2282MF_VIDPID%

[Konica.NTamd64.6.1]
%SCANNER.WIA2.0.DeviceDesc% = SCANNER.WIA2.0DRIVER.ntamd64,%2282MF_VIDPID%

;---------------------------------------2282 Install-------------------------------------

;----------------------------------------------------- 32-bit Windows XP & 2003 Server DDInstall Section ------------------------------------------------------
[SCANNER.WIA1.0DRIVER.ntx86]
Include=sti.inf
Needs=STI.USBSection
PortSelect=no
SubClass=StillImage
DeviceType=1
DeviceSubType=0x1
Capabilities=0x33
Events=WIADRIVER.Events
DeviceData=SCANNER.WIA1.0DRIVER.DeviceData
AddReg=SCANNER.WIA1.0DRIVER.AddReg
;DelReg=SCANNER.WIA1.0DRIVER.DelReg
CopyFiles=SCANNER.WIA1.0DRIVER.CopyFiles,TWAINDRIVER.CopyFiles,ICM.CopyFiles,INI.CopyFiles
Delfiles=SCANNER.WIA1.0DRIVER.Delfiles,TWAINDRIVER.Delfiles,ICM.Delfiles
ICMProfiles="sRGB Color Space Profile.icm"
RegisterDlls=SCANNER.PushApRegisterDlls

[SCANNER.WIA1.0DRIVER.ntx86.Services]
Include=sti.inf
Needs=STI.USBSection.Services


;------------------------------------------------------ 64 bit Windows XP & 2003 Server DDInstall Section -------------------------------------------------
[SCANNER.WIA1.0DRIVER.ntamd64]
Include=sti.inf
Needs=STI.USBSection
PortSelect=no
SubClass=StillImage
DeviceType=1
DeviceSubType=0x1
Capabilities=0x33
Events=WIADRIVER.Events
DeviceData=SCANNER.WIA1.0DRIVER.amd64.DeviceData
AddReg=SCANNER.WIA1.0DRIVER.AddReg
;DelReg=SCANNER.WIA1.0DRIVER.DelReg
CopyFiles=SCANNER.WIA1.0DRIVER.CopyFiles,TWAINDRIVER.amd64.CopyFiles,ICM.CopyFiles,INI.CopyFiles
Delfiles=SCANNER.WIA1.0DRIVER.Delfiles,TWAINDRIVER.amd64.Delfiles,ICM.Delfiles
ICMProfiles="sRGB Color Space Profile.icm"
RegisterDlls=SCANNER.PushApRegisterDlls

[SCANNER.WIA1.0DRIVER.ntamd64.Services]
Include=sti.inf
Needs=STI.USBSection.Services


;------------------------------------------------------ 32-bit Windows Vista & 2008 Server DDInstall Section ----------------------------------------------------
[SCANNER.WIA2.0DRIVER.ntx86]
Include=sti.inf
Needs=STI.USBSection
PortSelect=no
SubClass=StillImage
DeviceType=1
DeviceSubType=0x1
Capabilities=0x33
Events=WIADRIVER.Events
DeviceData=SCANNER.WIA2.0DRIVER.DeviceData
AddReg=SCANNER.WIA2.0DRIVER.AddReg
;DelReg=SCANNER.WIA2.0DRIVER.DelReg
CopyFiles=SCANNER.WIA2.0DRIVER.CopyFiles,TWAINDRIVER.CopyFiles,ICM.CopyFiles,INI.CopyFiles
Delfiles=SCANNER.WIA2.0DRIVER.Delfiles,TWAINDRIVER.Delfiles,ICM.Delfiles
ICMProfiles="sRGB Color Space Profile.icm"
RegisterDlls=SCANNER.PushApRegisterDlls

[SCANNER.WIA2.0DRIVER.ntx86.Services]
Include=sti.inf
Needs=STI.USBSection.Services

;------------------------------------------------------ 64-bit Windows Vista & 2008 Server DDInstall Section -----------------------------------------------
[SCANNER.WIA2.0DRIVER.ntamd64]
Include=sti.inf
Needs=STI.USBSection
PortSelect=no
SubClass=StillImage
DeviceType=1
DeviceSubType=0x1
Capabilities=0x33
Events=WIADRIVER.Events
DeviceData=SCANNER.WIA2.0DRIVER.amd64.DeviceData
AddReg=SCANNER.WIA2.0DRIVER.AddReg
;DelReg=SCANNER.WIA2.0DRIVER.DelReg
CopyFiles=SCANNER.WIA2.0DRIVER.CopyFiles,TWAINDRIVER.amd64.CopyFiles,ICM.CopyFiles,INI.CopyFiles
Delfiles=SCANNER.WIA2.0DRIVER.Delfiles,TWAINDRIVER.amd64.Delfiles,ICM.Delfiles
ICMProfiles="sRGB Color Space Profile.icm"
RegisterDlls=SCANNER.PushApRegisterDlls

[SCANNER.WIA2.0DRIVER.ntamd64.Services]
Include=sti.inf
Needs=STI.USBSection.Services

;------------------------------------------------------------- Events ------------------------------------------------------------
[WIADRIVER.Events]
;not support
%ScanButton.Desc%=%ScanButton.Desc%,{C00EB795-8C6E-11d2-977A-0000F87A926F},*

;----------------------------------------------------------- DeviceData ----------------------------------------------------------
[SCANNER.WIA1.0DRIVER.DeviceData]
Server=local
TwainDS=%SCANNER.WIA1.0.DeviceDesc%
ADFAttached=1
FilePrifix=2282

[SCANNER.WIA1.0DRIVER.amd64.DeviceData]
Server=local
TwainDS=%SCANNER.WIA1.0.DeviceDesc%
ADFAttached=1
FilePrifix=2282

[SCANNER.WIA2.0DRIVER.DeviceData]
Server=local
UI Class ID={35546DDF-0CFC-4d57-860E-5B28B99649EA}
TwainDS=%SCANNER.WIA2.0.DeviceDesc%
ADFAttached=1
FilePrifix=2282

[SCANNER.WIA2.0DRIVER.amd64.DeviceData]
Server=local
UI Class ID={35546DDF-0CFC-4d57-860E-5B28B99649EA}
TwainDS=%SCANNER.WIA2.0.DeviceDesc%
ADFAttached=1
FilePrifix=2282

;-------------------------------------------------------- Add Register --------------------------------------------------------


[SCANNER.WIA1.0DRIVER.AddReg]
HKR,,USDClass,,%WIA1_GUID%
HKR,,FriendlyName,,%SCANNER.WIA1.0.DeviceDesc%  ; add friendlyname 
HKR,,DeviceInterfaceGUIDs, 0x10000,"{6bdd1fc6-810f-11d0-bec7-08002be2092f}"

HKCR,CLSID\%WIA1_GUID%,,,"KONICA MINOLTA bizhub 2282MF Series WIA 1.0 Minidriver"
HKCR,CLSID\%WIA1_GUID%\InProcServer32,,,%11%\2282wia.dll
HKCR,CLSID\%WIA1_GUID%\InProcServer32,ThreadingModel,,Both


[SCANNER.WIA2.0DRIVER.AddReg]
HKR,,HardwareConfig,1,1
HKR,,USDClass,,%WIA2_GUID%
HKR,,FriendlyName,,%SCANNER.WIA2.0.DeviceDesc%  ; add friendlyname 
HKR,,DeviceInterfaceGUIDs, 0x10000,"{6bdd1fc6-810f-11d0-bec7-08002be2092f}"

HKCR,CLSID\%WIA2_GUID%,,,"KONICA MINOLTA bizhub 2282MF Series WIA 2.0 Minidriver"
HKCR,CLSID\%WIA2_GUID%\InProcServer32,,,%11%\2282wiasec.dll
HKCR,CLSID\%WIA2_GUID%\InProcServer32,ThreadingModel,,"Both"

HKCR,CLSID\{35546DDF-0CFC-4d57-860E-5B28B99649EA},,,"WIA Driver UI Extension"


[SCANNER.PushApRegisterDlls]
11,,2282ApReg.dll,1

;-------------------------------------------------------- Delete Register --------------------------------------------------------


;=================== ControlFlags ===========================
[ControlFlags]
; Remove comment from this line if all devices are PnP.
ExcludeFromSelect=*

;-------------------------------------------------------- Copy Files --------------------------------------------------------

[INI.CopyFiles]
2282.ini

[SCANNER.WIA1.0DRIVER.CopyFiles]
2282wia.dll
2282lld.dll
2282ImgEffect.dll
2282ApReg.dll


[SCANNER.WIA2.0DRIVER.CopyFiles]
2282wiasec.dll
2282lld.dll
2282ImgEffect.dll
2282ApReg.dll

[TWAINDRIVER.CopyFiles]

2282ds.ds
2282ImgEffect.dll
2282lld.dll


2282twrczhcn.dll
2282twzhcn.chm
2282twrcenus.dll
2282twenus.chm


[TWAINDRIVER.amd64.CopyFiles]

2282ds.ds
2282ImgEffect.dll
2282lld.dll

2282twrczhcn.dll
2282twzhcn.chm
2282twrcenus.dll
2282twenus.chm

[ICM.CopyFiles]


;-------------------------------------------------------- Delete Files --------------------------------------------------------



[SCANNER.WIA1.0DRIVER.Delfiles]
2282wia.dll
2282lld.dll
2282ImgEffect.dll
2282ApReg.dll

[SCANNER.WIA2.0DRIVER.Delfiles]
2282wiasec.dll
2282lld.dll
2282ImgEffect.dll
2282ApReg.dll

[TWAINDRIVER.Delfiles]

2282ds.ds
2282ImgEffect.dll
2282lld.dll

2282twrczhcn.dll
2282twzhcn.chm
2282twrcenus.dll
2282twenus.chm


[TWAINDRIVER.amd64.Delfiles]
2282ds.ds
2282ImgEffect.dll
2282lld.dll

2282twrczhcn.dll
2282twzhcn.chm
2282twrcenus.dll
2282twenus.chm


[ICM.Delfiles]


[Strings]
Company ="Konica"
ProviderName="Konica"
DISK = "KONICA MINOLTA bizhub 2282MF Series Setup Disc"
Location="KONICA MINOLTA bizhub 2282MF Series Setup Disc"
SCANNER.WIA1.0.DeviceDesc="KONICA MINOLTA bizhub 2282MF Series Scanner"
SCANNER.WIA2.0.DeviceDesc="KONICA MINOLTA bizhub 2282MF Series Scanner"
ScanButton.Desc="Scan Button"
RunOnce="SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce"
SCAN64 = "SCAN_AMD64" 
SCAN32 = "SCAN_X86" 
2282MF_VIDPID = "USB\VID_232B&PID_FF22&MI_01" ; 2282MF
WIA1_GUID = "{D411FB0D-0C9C-4a59-8683-B8C5DAA6F6CE}"
WIA2_GUID = "{CD1EE532-32D5-41f3-9D8E-844FA6BB27C5}"