; r502xusd.inf : INF file for the RTC RM5023/5028 scanner device
; Copyright (c) 2007 MURATA MACHINERY, LTD.
; 

[Version]
Signature="$CHICAGO$"
Class=Image
ClassGUID={6bdd1fc6-810f-11d0-bec7-08002be2092f}
Provider=%Pvd%
CatalogFile=r502xusd.cat
DriverVer=12/06/2012,1.0.0.1

[ControlFlags]
ExcludeFromSelect=*

[DestinationDirs]
DefaultDestDir = 11
MFPscn.TwainFiles = 10,twain_32\%Fldr%
MFPscn.SysWow64 = 10,SysWOW64

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

[Models]
%MFPscn.DeviceDesc%=MFPscn.Install_I386,USB\VID_1144&PID_0168&MI_01
%MFPscn.DeviceDesc%=MFPscn.Install_I386,USB\VID_1144&PID_0169&MI_01

[Models.NTx86]
%MFPscn.DeviceDesc%=MFPscn.Install_I386,USB\VID_1144&PID_0168&MI_01
%MFPscn.DeviceDesc%=MFPscn.Install_I386,USB\VID_1144&PID_0169&MI_01

[Models.NTamd64]
%MFPscn.DeviceDesc%=MFPscn.Install_AMD64,USB\VID_1144&PID_0168&MI_01
%MFPscn.DeviceDesc%=MFPscn.Install_AMD64,USB\VID_1144&PID_0169&MI_01

;----------------------------- x64
[MFPscn.Install_AMD64.NT]
Include=sti.inf
Needs=STI.USBSection
SubClass=StillImage
DeviceType=1
DeviceSubType=0x01
Capabilities=0x01
DeviceData=MFPscn.DeviceData
AddReg=MFPscn.AddRegUSD,MFPscn.AddRegDRV
CopyFiles=MFPscn.ScannerFiles,MFPscn.TwainFiles,MFPscn.SysWow64
UninstallSection=MFPscn.Uninstall
ICMProfiles="sRGB Color Space Profile.icm"

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

;----------------------------- Windows 2000/XP
[MFPscn.Install_I386.NT]
Include=sti.inf
Needs=STI.USBSection
SubClass=StillImage
DeviceType=1
DeviceSubType=0x01
Capabilities=0x01
DeviceData=MFPscn.DeviceData
AddReg=MFPscn.AddRegUSD,MFPscn.AddRegDRV
CopyFiles=MFPscn.ScannerFiles,MFPscn.TwainFiles,MFPscn.System32
UninstallSection=MFPscn.Uninstall
ICMProfiles="sRGB Color Space Profile.icm"

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

;----------------------------- Windows 9X
[MFPscn.Install_I386]
SubClass=StillImage
DeviceType=1
DeviceSubType=0x01
Capabilities=0x01
DeviceData=MFPscn.DeviceData
AddReg=MFPscn.AddRegUSD,MFPscn.AddRegDRV
CopyFiles=MFPscn.ScannerFiles,MFPscn.TwainFiles,MFPscn.System32
UninstallSection=MFPscn.Uninstall
ICMProfiles="sRGB Color Space Profile.icm"

;----------------------------- 
[MFPscn.DeviceData]
TwainDS=%MFPscn.TwainDS%

[MFPscn.AddRegUSD]
HKR,,HardwareConfig,1,4
HKR,,DevLoader,,*NTKERN
HKR,,NTMPDriver,,"usbscan.sys"
;It is necessary to change the following GUID for a different model. 
HKR,,USDClass,,"{4B3FA379-BF7A-4cc5-B203-837E9498463A}"
HKCR,CLSID\{4B3FA379-BF7A-4cc5-B203-837E9498463A},,,%MFPscn.USDName%
HKCR,CLSID\{4B3FA379-BF7A-4cc5-B203-837E9498463A}\InProcServer32,,,%11%\%MFPscn.USDFile%
HKCR,CLSID\{4B3FA379-BF7A-4cc5-B203-837E9498463A}\InProcServer32,ThreadingModel,,"Both"

[MFPscn.AddRegDRV]

[MFPscn.Uninstall]
DelReg=MFPscn.AddRegUSD,MFPscn.AddRegDRV
DelFiles=MFPscn.ScannerFiles,MFPscn.TwainFiles

;----------------------------- 
[MFPscn.ScannerFiles]
r502xusd.dll

[MFPscn.TwainFiles]
mrsetwu.ds
mrsetwu.lrc
mrsetwu.msf

[MFPscn.System32]
mrsxpars.dll
mrscodec.dll

[MFPscn.SysWow64]
mrsxpars.dll
mrscodec.dll

;----------------------------- 
[SourceDisksNames.x86]
1 = %DISK%,,
2 = %DISK%,,,\i386

[SourceDisksNames.amd64]
1 = %DISK%,,
2 = %DISK%,,,\x64

[SourceDisksFiles]
r502xusd.dll =2
mrsetwu.ds   =1
mrsetwu.lrc  =1
mrsetwu.msf  =1
mrsxpars.dll =1
mrscodec.dll =1

;----------------------------- 
[Strings]
Pvd  = "Muratec"
Mfg  = "RISO"
Fldr = "RM502XL"
DISK = "RTC RM5023/5028 Printer/Scanner Driver Disk"
MFPscn.DeviceDesc = "RTC RM5023/5028 Scan"
MFPscn.TwainDS    = "RTC RM5023/5028 Scan"
MFPscn.USDName    = "Muratec USD"
MFPscn.USDFile    = "r502xusd.dll"
