;================================================================
;
;  KMWIADRV.INF
;
;  Kyocera WIA Driver Installation Script
;  Windows Vista/7
;  
;  (C) 2019 KYOCERA Document Solutions Inc.
; 
;
;  02/01/2019
;
;================================================================

[Version]
Signature="$WINDOWS NT$"
Class=Image
ClassGUID={6bdd1fc6-810f-11d0-bec7-08002be2092f}
Provider=%Mfg%
DriverVer=02/01/2019,2.03.0201.0
CatalogFile=kmwiadrv.cat

[SourceDisksFiles.x86]
kmwiadrvn20321.dll=1,%x86NetDir%
kmtwuiexn20321.dll=1,%x86NetDir%
AppliInfo20321.dat=1,%NetDir%
callgui20321.exe=1,%NetDir%
KM_TWAIN120321.ini=1,%NetDir%
KMSCNAPI20321.dll=1,%NetDir%
KMSCNTOOL20321.dll=1,%NetDir%
KMTwainPageLog20321.ini=1,%NetDir%
N_SCANCONFIG20321.xsd=1,%NetDir%
N_SCANPARAMLIST20321.xml=1,%NetDir%
N_SCANPARAMLIST20321.xsd=1,%NetDir%
RegList20321.ini=1,%NetDir%
WIAHelp_chs20321.chm=1,%NetDir%
WIAHelp_cht20321.chm=1,%NetDir%
WIAHelp_deu20321.chm=1,%NetDir%
WIAHelp_enu20321.chm=1,%NetDir%
WIAHelp_esp20321.chm=1,%NetDir%
WIAHelp_fra20321.chm=1,%NetDir%
WIAHelp_ita20321.chm=1,%NetDir%
WIAHelp_jpn20321.chm=1,%NetDir%
WIAHelp_kor20321.chm=1,%NetDir%
WIAHelp_nld20321.chm=1,%NetDir%
WIAHelp_ptb20321.chm=1,%NetDir%
WIAHelp_rus20321.chm=1,%NetDir%
kmwiadrvu.dll=1,%x86UsbDir%
kmtwuiexu.dll=1,%x86UsbDir%
kmtwaingui.dll=1,%UsbDir%
Ns1815TW.dll=1,%UsbDir%
KMUSBSCN2.dll=1,%UsbDir%
kmtwguilang_chs.dll=1,%UsbDir%
kmtwguilang_cht.dll=1,%UsbDir%
kmtwguilang_deu.dll=1,%UsbDir%
kmtwguilang_enu.dll=1,%UsbDir%
kmtwguilang_esp.dll=1,%UsbDir%
kmtwguilang_fra.dll=1,%UsbDir%
kmtwguilang_ita.dll=1,%UsbDir%
kmtwguilang_jpn.dll=1,%UsbDir%
kmtwguilang_kor.dll=1,%UsbDir%
kmtwguilang_ptb.dll=1,%UsbDir%
kmtwguilang_ptg.dll=1,%UsbDir%
kmtwguilang_rus.dll=1,%UsbDir%
callgui2.exe=1,%UsbDir%
KM_TWAIN2.ini=1,%UsbDir%
KMTwainPageLog2.ini=1,%UsbDir%
RegList2.ini=1,%UsbDir%
WIAHelp_chs2.chm=1,%UsbDir%
WIAHelp_cht2.chm=1,%UsbDir%
WIAHelp_deu2.chm=1,%UsbDir%
WIAHelp_enu2.chm=1,%UsbDir%
WIAHelp_esp2.chm=1,%UsbDir%
WIAHelp_fra2.chm=1,%UsbDir%
WIAHelp_ita2.chm=1,%UsbDir%
WIAHelp_jpn2.chm=1,%UsbDir%
WIAHelp_kor2.chm=1,%UsbDir%
WIAHelp_ptb2.chm=1,%UsbDir%
WIAHelp_ptg2.chm=1,%UsbDir%
WIAHelp_rus2.chm=1,%UsbDir%

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

[SourceDisksFiles.amd64]
kmwiadrvn20321.dll=1,%x64NetDir%
kmtwuiexn20321.dll=1,%x64NetDir%
AppliInfo20321.dat=1,%NetDir%
callgui20321.exe=1,%NetDir%
KM_TWAIN120321.ini=1,%NetDir%
KMSCNAPI20321.dll=1,%NetDir%
KMSCNTOOL20321.dll=1,%NetDir%
KMTwainPageLog20321.ini=1,%NetDir%
N_SCANCONFIG20321.xsd=1,%NetDir%
N_SCANPARAMLIST20321.xml=1,%NetDir%
N_SCANPARAMLIST20321.xsd=1,%NetDir%
RegList20321.ini=1,%NetDir%
WIAHelp_chs20321.chm=1,%NetDir%
WIAHelp_cht20321.chm=1,%NetDir%
WIAHelp_deu20321.chm=1,%NetDir%
WIAHelp_enu20321.chm=1,%NetDir%
WIAHelp_esp20321.chm=1,%NetDir%
WIAHelp_fra20321.chm=1,%NetDir%
WIAHelp_ita20321.chm=1,%NetDir%
WIAHelp_jpn20321.chm=1,%NetDir%
WIAHelp_kor20321.chm=1,%NetDir%
WIAHelp_nld20321.chm=1,%NetDir%
WIAHelp_ptb20321.chm=1,%NetDir%
WIAHelp_rus20321.chm=1,%NetDir%
kmwiadrvu.dll=1,%x64UsbDir%
kmtwuiexu.dll=1,%x64UsbDir%
kmtwaingui.dll=1,%UsbDir%
Ns1815TW.dll=1,%UsbDir%
KMUSBSCN2.dll=1,%UsbDir%
kmtwguilang_chs.dll=1,%UsbDir%
kmtwguilang_cht.dll=1,%UsbDir%
kmtwguilang_deu.dll=1,%UsbDir%
kmtwguilang_enu.dll=1,%UsbDir%
kmtwguilang_esp.dll=1,%UsbDir%
kmtwguilang_fra.dll=1,%UsbDir%
kmtwguilang_ita.dll=1,%UsbDir%
kmtwguilang_jpn.dll=1,%UsbDir%
kmtwguilang_kor.dll=1,%UsbDir%
kmtwguilang_ptb.dll=1,%UsbDir%
kmtwguilang_ptg.dll=1,%UsbDir%
kmtwguilang_rus.dll=1,%UsbDir%
callgui2.exe=1,%UsbDir%
KM_TWAIN2.ini=1,%UsbDir%
KMTwainPageLog2.ini=1,%UsbDir%
RegList2.ini=1,%UsbDir%
WIAHelp_chs2.chm=1,%UsbDir%
WIAHelp_cht2.chm=1,%UsbDir%
WIAHelp_deu2.chm=1,%UsbDir%
WIAHelp_enu2.chm=1,%UsbDir%
WIAHelp_esp2.chm=1,%UsbDir%
WIAHelp_fra2.chm=1,%UsbDir%
WIAHelp_ita2.chm=1,%UsbDir%
WIAHelp_jpn2.chm=1,%UsbDir%
WIAHelp_kor2.chm=1,%UsbDir%
WIAHelp_ptb2.chm=1,%UsbDir%
WIAHelp_ptg2.chm=1,%UsbDir%
WIAHelp_rus2.chm=1,%UsbDir%

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

[DestinationDirs]
DefaultDestDir=16422
KM_NETWORK_MODEL_WIA.CopyFiles=16422,%NetAppName%
KM_USB_MODEL_WIA.CopyFiles=16422,%UsbAppName%

[Manufacturer]
%Mfg%=Models, NTx86, NTamd64

[Models.NTx86]

"352ci WIA Driver (Network)" = 352ci_N.Device, KM_WC_352ci_N_WIA
"402ci WIA Driver (Network)" = 402ci_N.Device, KM_WC_402ci_N_WIA
"502ci WIA Driver (Network)" = 502ci_N.Device, KM_WC_502ci_N_WIA
"352ci WIA Driver (USB)" = 352ci.Device, USB\VID_0482&PID_0c7f&MI_01
"402ci WIA Driver (USB)" = 402ci.Device, USB\VID_0482&PID_0c80&MI_01
"502ci WIA Driver (USB)" = 502ci.Device, USB\VID_0482&PID_0cec&MI_01

[Models.NTamd64]

"352ci WIA Driver (Network)" = 352ci_N.Device, KM_WC_352ci_N_WIA
"402ci WIA Driver (Network)" = 402ci_N.Device, KM_WC_402ci_N_WIA
"502ci WIA Driver (Network)" = 502ci_N.Device, KM_WC_502ci_N_WIA
"352ci WIA Driver (USB)" = 352ci.Device, USB\VID_0482&PID_0c7f&MI_01
"402ci WIA Driver (USB)" = 402ci.Device, USB\VID_0482&PID_0c80&MI_01
"502ci WIA Driver (USB)" = 502ci.Device, USB\VID_0482&PID_0cec&MI_01

;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; ${Model info1}

[352ci_N.Device]
Include=sti.inf
Needs=STI.SerialSection
PortSelect=no
SubClass=StillImage
DeviceType=1
DeviceSubType=0x1
Capabilities=0x30
UnsupportedVersions=0x1
AddReg=KM_NETWORK_MODEL_WIA.AddReg
CopyFiles=KM_NETWORK_MODEL_WIA.CopyFiles
ICMProfiles="sRGB Color Space Profile.icm"
DeviceData=352ci_N.DeviceData

[402ci_N.Device]
Include=sti.inf
Needs=STI.SerialSection
PortSelect=no
SubClass=StillImage
DeviceType=1
DeviceSubType=0x1
Capabilities=0x30
UnsupportedVersions=0x1
AddReg=KM_NETWORK_MODEL_WIA.AddReg
CopyFiles=KM_NETWORK_MODEL_WIA.CopyFiles
ICMProfiles="sRGB Color Space Profile.icm"
DeviceData=402ci_N.DeviceData

[502ci_N.Device]
Include=sti.inf
Needs=STI.SerialSection
PortSelect=no
SubClass=StillImage
DeviceType=1
DeviceSubType=0x1
Capabilities=0x30
UnsupportedVersions=0x1
AddReg=KM_NETWORK_MODEL_WIA.AddReg
CopyFiles=KM_NETWORK_MODEL_WIA.CopyFiles
ICMProfiles="sRGB Color Space Profile.icm"
DeviceData=502ci_N.DeviceData

[352ci.Device]
Include=sti.inf
Needs=STI.USBSection
PortSelect=no
SubClass=StillImage
DeviceType=1
DeviceSubType=0x1
Capabilities=0x30
UnsupportedVersions=0x1
AddReg=KM_USB_MODEL_WIA.AddReg
CopyFiles=KM_USB_MODEL_WIA.CopyFiles
ICMProfiles="sRGB Color Space Profile.icm"
DeviceData=352ci.DeviceData

[402ci.Device]
Include=sti.inf
Needs=STI.USBSection
PortSelect=no
SubClass=StillImage
DeviceType=1
DeviceSubType=0x1
Capabilities=0x30
UnsupportedVersions=0x1
AddReg=KM_USB_MODEL_WIA.AddReg
CopyFiles=KM_USB_MODEL_WIA.CopyFiles
ICMProfiles="sRGB Color Space Profile.icm"
DeviceData=402ci.DeviceData

[502ci.Device]
Include=sti.inf
Needs=STI.USBSection
PortSelect=no
SubClass=StillImage
DeviceType=1
DeviceSubType=0x1
Capabilities=0x30
UnsupportedVersions=0x1
AddReg=KM_USB_MODEL_WIA.AddReg
CopyFiles=KM_USB_MODEL_WIA.CopyFiles
ICMProfiles="sRGB Color Space Profile.icm"
DeviceData=502ci.DeviceData

;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; ${Model info2}

[352ci_N.Device.Services]
Include=sti.inf
Needs=STI.SerialSection.Services

[352ci_N.DeviceData]
UI Class ID={C2C18CB5-E2A1-4FE2-9D4F-76767EEDF94B}
Model Name="352ci"
Version=%NetVersion%

[402ci_N.Device.Services]
Include=sti.inf
Needs=STI.SerialSection.Services

[402ci_N.DeviceData]
UI Class ID={C2C18CB5-E2A1-4FE2-9D4F-76767EEDF94B}
Model Name="402ci"
Version=%NetVersion%

[502ci_N.Device.Services]
Include=sti.inf
Needs=STI.SerialSection.Services

[502ci_N.DeviceData]
UI Class ID={C2C18CB5-E2A1-4FE2-9D4F-76767EEDF94B}
Model Name="502ci"
Version=%NetVersion%

[352ci.Device.Services]
Include=sti.inf
Needs=STI.USBSection.Services

[352ci.DeviceData]
UI Class ID={304C1DAE-2C32-44d5-AE6D-31C928ACF6AD}
Model Name="352ci"
Version=%UsbVersion%

[402ci.Device.Services]
Include=sti.inf
Needs=STI.USBSection.Services

[402ci.DeviceData]
UI Class ID={304C1DAE-2C32-44d5-AE6D-31C928ACF6AD}
Model Name="402ci"
Version=%UsbVersion%

[502ci.Device.Services]
Include=sti.inf
Needs=STI.USBSection.Services

[502ci.DeviceData]
UI Class ID={304C1DAE-2C32-44d5-AE6D-31C928ACF6AD}
Model Name="502ci"
Version=%UsbVersion%


[KM_NETWORK_MODEL_WIA.AddReg]
HKR,,HardwareConfig,1,1
HKR,,USDClass,,"{894E62DF-9FA3-4460-B29E-12AA22707FC4}"
HKCR,CLSID\{894E62DF-9FA3-4460-B29E-12AA22707FC4},,,"Kyocera WIA Scanner Network Driver"
HKCR,CLSID\{894E62DF-9FA3-4460-B29E-12AA22707FC4}\InProcServer32,,,%16422%\%NetAppName%\kmwiadrvn20321.dll
HKCR,CLSID\{894E62DF-9FA3-4460-B29E-12AA22707FC4}\InProcServer32,ThreadingModel,,"Both"

HKCR,CLSID\{C2C18CB5-E2A1-4FE2-9D4F-76767EEDF94B},,,"Kyocera WIA Driver UI Extension"
HKCR,CLSID\{C2C18CB5-E2A1-4FE2-9D4F-76767EEDF94B}\shellex\PropertySheetHandlers\{D228AEA1-AA52-4743-8A07-AEA669F6A842}
HKCR,CLSID\{C2C18CB5-E2A1-4FE2-9D4F-76767EEDF94B}\shellex\WiaDialogExtensionHandlers\{D228AEA1-AA52-4743-8A07-AEA669F6A842}

HKCR,CLSID\{D228AEA1-AA52-4743-8A07-AEA669F6A842},,,"Kyocera WIA UI Extension Handler"
HKCR,CLSID\{D228AEA1-AA52-4743-8A07-AEA669F6A842}\InProcServer32,,,%16422%\%NetAppName%\kmtwuiexn20321.dll
HKCR,CLSID\{D228AEA1-AA52-4743-8A07-AEA669F6A842}\InProcServer32,ThreadingModel,,"Apartment"

HKR,,CreateFileName,,"AUTO"
HKR,,PortSelect,,no

[KM_USB_MODEL_WIA.AddReg]
HKR,,CreateFileName,,AUTO
HKR,,HardwareConfig,1,1
HKR,,DevLoader,,*NTKERN
HKR,,NTMPDriver,,"usbscan.sys"
HKR,,USDClass,,"{D645D9D8-0A72-44bc-A289-B0ABD6EE3E0D}"
HKCR,CLSID\{D645D9D8-0A72-44bc-A289-B0ABD6EE3E0D},,,"Kyocera WIA Scanner USB Driver"
HKCR,CLSID\{D645D9D8-0A72-44bc-A289-B0ABD6EE3E0D}\InProcServer32,,,%16422%\%UsbAppName%\kmwiadrvu.dll
HKCR,CLSID\{D645D9D8-0A72-44bc-A289-B0ABD6EE3E0D}\InProcServer32,ThreadingModel,,"Both"

HKCR,CLSID\{304C1DAE-2C32-44d5-AE6D-31C928ACF6AD},,,"Kyocera WIA Driver UI Extension"
HKCR,CLSID\{304C1DAE-2C32-44d5-AE6D-31C928ACF6AD}\shellex\PropertySheetHandlers\{2BCA3E51-192D-430D-9D2E-CBF18030EAD7}
HKCR,CLSID\{304C1DAE-2C32-44d5-AE6D-31C928ACF6AD}\shellex\WiaDialogExtensionHandlers\{2BCA3E51-192D-430D-9D2E-CBF18030EAD7}

HKCR,CLSID\{2BCA3E51-192D-430D-9D2E-CBF18030EAD7},,,"Kyocera WIA UI Extension Handler"
HKCR,CLSID\{2BCA3E51-192D-430D-9D2E-CBF18030EAD7}\InProcServer32,,,%16422%\%UsbAppName%\kmtwuiexu.dll
HKCR,CLSID\{2BCA3E51-192D-430D-9D2E-CBF18030EAD7}\InProcServer32,ThreadingModel,,"Apartment"

HKR,,CreateFileName,,"AUTO"
HKR,,PortSelect,,no

[KM_NETWORK_MODEL_WIA.CopyFiles]
kmwiadrvn20321.dll
kmtwuiexn20321.dll
AppliInfo20321.dat
callgui20321.exe
KM_TWAIN120321.ini
KMSCNAPI20321.dll
KMSCNTOOL20321.dll
KMTwainPageLog20321.ini
N_SCANCONFIG20321.xsd
N_SCANPARAMLIST20321.xml
N_SCANPARAMLIST20321.xsd
RegList20321.ini
WIAHelp_chs20321.chm
WIAHelp_cht20321.chm
WIAHelp_deu20321.chm
WIAHelp_enu20321.chm
WIAHelp_esp20321.chm
WIAHelp_fra20321.chm
WIAHelp_ita20321.chm
WIAHelp_jpn20321.chm
WIAHelp_kor20321.chm
WIAHelp_nld20321.chm
WIAHelp_ptb20321.chm
WIAHelp_rus20321.chm

[KM_USB_MODEL_WIA.CopyFiles]
kmwiadrvu.dll
kmtwuiexu.dll
KMUSBSCN2.dll
Ns1815TW.dll
callgui.exe,callgui2.exe
KM_TWAIN1.ini,KM_TWAIN2.ini
KMTwainPageLog.ini,KMTwainPageLog2.ini
RegList.ini,RegList2.ini
kmtwguilang_chs.dll
kmtwguilang_cht.dll
kmtwguilang_deu.dll
kmtwguilang_enu.dll
kmtwguilang_esp.dll
kmtwguilang_fra.dll
kmtwguilang_ita.dll
kmtwguilang_jpn.dll
kmtwguilang_kor.dll
kmtwguilang_ptb.dll
kmtwguilang_ptg.dll
kmtwguilang_rus.dll
WIAHelp_chs.chm,WIAHelp_chs2.chm
WIAHelp_cht.chm,WIAHelp_cht2.chm
WIAHelp_deu.chm,WIAHelp_deu2.chm
WIAHelp_enu.chm,WIAHelp_enu2.chm
WIAHelp_esp.chm,WIAHelp_esp2.chm
WIAHelp_fra.chm,WIAHelp_fra2.chm
WIAHelp_ita.chm,WIAHelp_ita2.chm
WIAHelp_jpn.chm,WIAHelp_jpn2.chm
WIAHelp_kor.chm,WIAHelp_kor2.chm
WIAHelp_ptb.chm,WIAHelp_ptb2.chm
WIAHelp_ptg.chm,WIAHelp_ptg2.chm
WIAHelp_rus.chm,WIAHelp_rus2.chm

[KMUSB.UsbScan.AddService]
DisplayName    = usb_scan
ServiceType    = 1                  ; SERVICE_KERNEL_DRIVER
StartType      = 3                  ; SERVICE_DEMAND_START
ErrorControl   = 1                  ; SERVICE_ERROR_NORMAL
ServiceBinary  = %12%\usbscan.sys
LoadOrderGroup = Base

[Strings]
Mfg="TA_UTAX"
Location="GEN_LIB"
KM_NETWORK_MODEL_WIA.DeviceDesc="WIA Scanner Network Driver"
KM_USB_MODEL_WIA.DeviceDesc="WIA Scanner USB Driver"
NetAppName = "WIA Scanner\Boxless"
UsbAppName = "WIA Scanner\USB2"
x86NetDir="Network\x86"
x64NetDir="Network\x64"
x86UsbDir="USB\x86"
x64UsbDir="USB\x64"
NetDir="Network"
UsbDir="USB"
NetVersion="2.03.0201"
UsbVersion="2.03.0201"
DeviceClassName="Image"
SvcDesc="KM USB Scan Svc"