; M5000SC.inf     
; installation file for the Scanner Driver
; Color Scanner's setup file.
; Copyright (c) 2010. All rights reserved.
; Manufacturer: Seine
;

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

DriverVer = 11/28/2013,5.1.1.66
CatalogFile=wiadriver.cat
;LayoutFile=LAYOUT.INF,LAYOUT1.INF,LAYOUT2.INF


[SourceDisksFiles.x86]
ptm5300wiasec.dll=96
ptm5300wia.dll=96
ptm5300wialld.dll = 96
ptm5300Apreg.dll =96
ptm5300wiaEffect.dll=96

ptm5300ds.ds = 3
ImgEffect.dll = 3
ptm5300lld.dll = 3
ptm5300twrczhcn.dll = 3
ptm5300twrcenus.dll = 3
ptm5300twrcru.dll = 3

ptm5300twrcar.dll = 3
ptm5300twrcesmx.dll = 3
ptm5300twrcfr.dll = 3
ptm5300twrcit.dll = 3
ptm5300twrcsv.dll = 3
ptm5300twrcno.dll = 3
ptm5300twrcja.dll = 3


ptm5300twzhcn.chm = 4
ptm5300twenus.chm = 4
ptm5300twru.chm = 4

ptm5300twit.chm = 4
ptm5300twar.chm = 4
ptm5300twesmx.chm = 4
ptm5300twfr.chm = 4
ptm5300twsv.chm = 4
ptm5300twno.chm = 4
ptm5300twja.chm = 4

[SourceDisksNames.x86]
1=%Location%,,,
96 = %SCAN32%,ptm5x00X86.CAB,,

3 = %DISK%,,,x32\ptm5300
4 = %DISK%,,,.



[SourceDisksFiles.amd64]
ptm5300wiasec.dll=99
ptm5300wia.dll = 99
ptm5300wialld.dll = 99
ptm5300wiaEffect.dll=99
ptm5300ApReg.dll =99
ptm5300ds.ds = 3
ImgEffect.dll = 3

ptm5300lld.dll = 3
ptm5300twrczhcn.dll = 3
ptm5300twrcenus.dll = 3
ptm5300twrcru.dll = 3

ptm5300twrcar.dll = 3
ptm5300twrcesmx.dll = 3
ptm5300twrcfr.dll = 3
ptm5300twrcit.dll = 3
ptm5300twrcsv.dll = 3
ptm5300twrcno.dll = 3
ptm5300twrcja.dll = 3

ptm5300twzhcn.chm = 4
ptm5300twenus.chm = 4
ptm5300twru.chm = 4

ptm5300twar.chm = 4
ptm5300twesmx.chm = 4
ptm5300twfr.chm = 4
ptm5300twit.chm = 4
ptm5300twsv.chm = 4
ptm5300twno.chm = 4
ptm5300twja.chm = 4

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

99 =%SCAN64%,ptm5x00AMD64.CAB,,
3 = %DISK%,,,x64\ptm5300
4 = %DISK%,,,.

[DestinationDirs]
DefaultDestDir=11    
TWAINDRIVER.CopyFiles=10,"twain_32\Pantum\ptm5300"
TWAINDRIVER.amd64.CopyFiles=10,"twain_64\Pantum\ptm5300"
ICM.CopyFiles=23

TWAINDRIVER.Delfiles=10,"twain_32\Pantum\ptm5300"
TWAINDRIVER.amd64.Delfiles=10,"twain_64\Pantum\ptm5300"
ICM.Delfiles=23


[Manufacturer]
%Company%=Seine, NTx86.5, NTx86.6, NTamd64.5, NTamd64.6


[Seine.NTx86.5]
%SCANNER.WIA1.0.DeviceDesc% = SCANNER.WIA1.0DRIVER.ntx86,USB\VID_232B&PID_1E10&MI_01

[Seine.NTx86.6]
%SCANNER.WIA2.0.DeviceDesc% = SCANNER.WIA2.0DRIVER.ntx86,USB\VID_232B&PID_1E10&MI_01

[Seine.NTamd64.5]
%SCANNER.WIA1.0.DeviceDesc% = SCANNER.WIA1.0DRIVER.ntamd64,USB\VID_232B&PID_1E10&MI_01

[Seine.NTamd64.6]
%SCANNER.WIA2.0.DeviceDesc% = SCANNER.WIA2.0DRIVER.ntamd64,USB\VID_232B&PID_1E10&MI_01
;----------------------------------------------------- 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
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
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
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
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


LLDPath=%10%\twain_32\Pantum\ptm5300\ptm5300lld.dll
TwainDS=%SCANNER.WIA1.0.DeviceDesc%

[SCANNER.WIA1.0DRIVER.amd64.DeviceData]
Server=local


LLDPath=%10%\twain_64\Pantum\ptm5300\ptm5300lld.dll
TwainDS=%SCANNER.WIA1.0.DeviceDesc%

[SCANNER.WIA2.0DRIVER.DeviceData]
Server=local
UI Class ID={35546DDF-0CFC-4d57-860E-5B28B99649EA}

LLDPath=%10%\twain_32\Pantum\ptm5300\ptm5300lld.dll
TwainDS=%SCANNER.WIA2.0.DeviceDesc%

[SCANNER.WIA2.0DRIVER.amd64.DeviceData]
Server=local
UI Class ID={35546DDF-0CFC-4d57-860E-5B28B99649EA}

LLDPath=%10%\twain_64\Pantum\ptm5300\ptm5300lld.dll
TwainDS=%SCANNER.WIA2.0.DeviceDesc%

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


[SCANNER.WIA1.0DRIVER.AddReg]
HKR,,USDClass,,"{3549DA94-41F1-43d5-9A6A-C37A54732E8E}"
HKR,,FriendlyName,,%SCANNER.WIA1.0.DeviceDesc%  ; add friendlyname 
HKR,,DeviceID,0, "USB\VID_232B&PID_1E10&MI_01" ;add deviceid 
HKR,,DeviceInterfaceGUIDs, 0x10000,"{6bdd1fc6-810f-11d0-bec7-08002be2092f}"

HKCR,CLSID\{3549DA94-41F1-43d5-9A6A-C37A54732E8E},,,"Pantum M5000-M6000 Series WIA 1.0 Minidriver"
HKCR,CLSID\{3549DA94-41F1-43d5-9A6A-C37A54732E8E}\InProcServer32,,,%11%\ptm5300wia.dll
HKCR,CLSID\{3549DA94-41F1-43d5-9A6A-C37A54732E8E}\InProcServer32,ThreadingModel,,Both


[SCANNER.WIA2.0DRIVER.AddReg]
HKR,,HardwareConfig,1,1
HKR,,USDClass,,"{4E150457-A5B8-4efe-9BAE-C7D94F81C6A6}"
HKR,,FriendlyName,,%SCANNER.WIA2.0.DeviceDesc%  ; add friendlyname 
HKR,,DeviceID,0, "USB\VID_232B&PID_1E10&MI_01" ;add deviceid 
HKR,,DeviceInterfaceGUIDs, 0x10000,"{6bdd1fc6-810f-11d0-bec7-08002be2092f}"

HKCR,CLSID\{4E150457-A5B8-4efe-9BAE-C7D94F81C6A6},,,"Pantum M5000-M6000 Series WIA 2.0 Minidriver"
HKCR,CLSID\{4E150457-A5B8-4efe-9BAE-C7D94F81C6A6}\InProcServer32,,,%11%\ptm5300wia.dll
HKCR,CLSID\{4E150457-A5B8-4efe-9BAE-C7D94F81C6A6}\InProcServer32,ThreadingModel,,"Both"

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


[SCANNER.PushApRegisterDlls]
11,,ptm5300ApReg.dll,1

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


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

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

[SCANNER.WIA1.0DRIVER.CopyFiles]
ptm5300wia.dll
ptm5300wialld.dll
ptm5300wiaEffect.dll
ptm5300ApReg.dll


[SCANNER.WIA2.0DRIVER.CopyFiles]
ptm5300wia.dll,ptm5300wiasec.dll
ptm5300wialld.dll
ptm5300wiaEffect.dll
ptm5300ApReg.dll

[TWAINDRIVER.CopyFiles]
ptm5300ds.ds
ImgEffect.dll
ptm5300lld.dll
ptm5300twrczhcn.dll
ptm5300twrcenus.dll
ptm5300twrcru.dll

ptm5300twrcar.dll 
ptm5300twrcesmx.dll 
ptm5300twrcfr.dll 
ptm5300twrcit.dll 
ptm5300twrcsv.dll 
ptm5300twrcno.dll 
ptm5300twrcja.dll 

ptm5300twzhcn.chm
ptm5300twenus.chm
ptm5300twru.chm

ptm5300twar.chm 
ptm5300twesmx.chm 
ptm5300twfr.chm 
ptm5300twit.chm 
ptm5300twsv.chm 
ptm5300twno.chm 
ptm5300twja.chm 


[TWAINDRIVER.amd64.CopyFiles]
ptm5300ds.ds
ImgEffect.dll
ptm5300lld.dll
ptm5300twrczhcn.dll
ptm5300twrcenus.dll
ptm5300twrcru.dll

ptm5300twrcar.dll 
ptm5300twrcesmx.dll 
ptm5300twrcfr.dll 
ptm5300twrcit.dll 
ptm5300twrcsv.dll 
ptm5300twrcno.dll 
ptm5300twrcja.dll 

ptm5300twzhcn.chm
ptm5300twenus.chm
ptm5300twru.chm

ptm5300twar.chm 
ptm5300twesmx.chm 
ptm5300twfr.chm 
ptm5300twit.chm 
ptm5300twsv.chm 
ptm5300twno.chm 
ptm5300twja.chm 

[ICM.CopyFiles]


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



[SCANNER.WIA1.0DRIVER.Delfiles]
ptm5300wia.dll
ptm5300wialld.dll
ptm5300wiaEffect.dll
ptm5300ApReg.dll

[SCANNER.WIA2.0DRIVER.Delfiles]
ptm5300wia.dll
ptm5300wialld.dll
ptm5300wiaEffect.dll
ptm5300ApReg.dll

[TWAINDRIVER.Delfiles]
ptm5300ds.ds
ImgEffect.dll
ptm5300lld.dll
ptm5300twrczhcn.dll
ptm5300twrcenus.dll
ptm5300twrcru.dll

ptm5300twrcar.dll 
ptm5300twrcesmx.dll 
ptm5300twrcfr.dll 
ptm5300twrcit.dll 
ptm5300twrcsv.dll 
ptm5300twrcno.dll 
ptm5300twrcja.dll 

ptm5300twzhcn.chm
ptm5300twenus.chm
ptm5300twru.chm


ptm5300twar.chm 
ptm5300twesmx.chm 
ptm5300twfr.chm 
ptm5300twit.chm 
ptm5300twsv.chm 
ptm5300twno.chm 
ptm5300twja.chm

[TWAINDRIVER.amd64.Delfiles]
ptm5300ds.ds
ImgEffect.dll
ptm5300lld.dll
ptm5300twrczhcn.dll
ptm5300twrcenus.dll
ptm5300twrcru.dll

ptm5300twrcar.dll 
ptm5300twrcesmx.dll 
ptm5300twrcfr.dll 
ptm5300twrcit.dll 
ptm5300twrcsv.dll 
ptm5300twrcno.dll 
ptm5300twrcja.dll 

ptm5300twzhcn.chm
ptm5300twenus.chm
ptm5300twru.chm

ptm5300twar.chm 
ptm5300twesmx.chm 
ptm5300twfr.chm 
ptm5300twit.chm 
ptm5300twsv.chm 
ptm5300twno.chm 
ptm5300twja.chm

[ICM.Delfiles]


[Strings]
Company ="Seine"
ProviderName="Seine"
DISK = "Pantum M5000-M6000 Series Setup Disc"
Location="Pantum M5000-M6000 Series Setup Disc"
SCANNER.WIA1.0.DeviceDesc="Pantum M5000-M6000 Series Scanner"
SCANNER.WIA2.0.DeviceDesc="Pantum M5000-M6000 Series Scanner"
ScanButton.Desc="Scan Button"
RunOnce="SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce"
SCAN64 = "SCAN_AMD64" 
SCAN32 = "SCAN_X86" 
