; M5200SC.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 = 07/25/2012,5.1.1.8
CatalogFile=
;LayoutFile=LAYOUT.INF,LAYOUT1.INF,LAYOUT2.INF  


[SourceDisksFiles.x86]
ptm5200wiasec.dll=96
ptm5200wia.dll=96
ptm5200wialld.dll = 96

ptm5200ds.ds = 3
ImgEffect.dll = 3

ptm5200lld.dll = 3
ptm5200twrczhcn.dll = 3
ptm5200twrcenus.dll = 3

ptm5200twzhcn.chm = 4
ptm5200twenus.chm = 4


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

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



[SourceDisksFiles.amd64]
ptm5200wiasec.dll=99
ptm5200wia.dll = 99
ptm5200wialld.dll = 99

ptm5200ds.ds = 3
ImgEffect.dll = 3

ptm5200lld.dll = 3
ptm5200twrczhcn.dll = 3


ptm5200twzhcn.chm = 4



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

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


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

TWAINDRIVER.Delfiles=10,"twain_32\Pantum\ptm5200"
TWAINDRIVER.amd64.Delfiles=10,"twain_64\Pantum\ptm5200"
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_0E10&MI_00

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

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

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

[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=0x30
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"

[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=0x30
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"

[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=0x30
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"

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

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

;----------------------------------------------------------- DeviceData ----------------------------------------------------------
[SCANNER.WIA1.0DRIVER.DeviceData]
Server=local


LLDPath=%10%\twain_32\Pantum\ptm5200\ptm5200lld.dll
TwainDS=%SCANNER.WIA1.0.DeviceDesc%

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


LLDPath=%10%\twain_64\Pantum\ptm5200\ptm5200lld.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\ptm5200\ptm5200lld.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\ptm5200\ptm5200lld.dll
TwainDS=%SCANNER.WIA2.0.DeviceDesc%

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


[SCANNER.WIA1.0DRIVER.AddReg]
HKR,,USDClass,,"{53D81023-9E05-4e7c-B0CC-989D895D3FF4}"
HKR,,FriendlyName,,%SCANNER.WIA1.0.DeviceDesc%  ; add friendlyname 
HKR,,DeviceID,0, "USB\VID_232B&PID_0E10&MI_00" ;add deviceid 
HKR,,DeviceInterfaceGUIDs, 0x10000,"{6bdd1fc6-810f-11d0-bec7-08002be2092f}"

HKCR,CLSID\{53D81023-9E05-4e7c-B0CC-989D895D3FF4},,,"Pantum M5200 Series WIA 1.0 Minidriver"
HKCR,CLSID\{53D81023-9E05-4e7c-B0CC-989D895D3FF4}\InProcServer32,,,%11%\ptm5200wia.dll
HKCR,CLSID\{53D81023-9E05-4e7c-B0CC-989D895D3FF4}\InProcServer32,ThreadingModel,,Both
;HKLM,%RunOnce%,"PushScanRegister",,"rundll32.exe dlnasreg.dll,INFPushScanRegister" 

[SCANNER.WIA2.0DRIVER.AddReg]
HKR,,HardwareConfig,1,1
HKR,,USDClass,,"{80672F70-ABDF-4095-9E74-7DCBF139AAEF}"
HKR,,FriendlyName,,%SCANNER.WIA2.0.DeviceDesc%  ; add friendlyname 
HKR,,DeviceID,0, "USB\VID_232B&PID_0E10&MI_00" ;add deviceid 
HKR,,DeviceInterfaceGUIDs, 0x10000,"{6bdd1fc6-810f-11d0-bec7-08002be2092f}"

HKCR,CLSID\{80672F70-ABDF-4095-9E74-7DCBF139AAEF},,,"Pantum M5200 Series WIA 2.0 Minidriver"
HKCR,CLSID\{80672F70-ABDF-4095-9E74-7DCBF139AAEF}\InProcServer32,,,%11%\ptm5200wia.dll
HKCR,CLSID\{80672F70-ABDF-4095-9E74-7DCBF139AAEF}\InProcServer32,ThreadingModel,,"Both"

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

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


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

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

[SCANNER.WIA1.0DRIVER.CopyFiles]
ptm5200wia.dll
ptm5200wialld.dll


[SCANNER.WIA2.0DRIVER.CopyFiles]
ptm5200wia.dll,ptm5200wiasec.dll
ptm5200wialld.dll


[TWAINDRIVER.CopyFiles]
ptm5200ds.ds
ImgEffect.dll
ptm5200lld.dll
ptm5200twrczhcn.dll

ptm5200twzhcn.chm



[TWAINDRIVER.amd64.CopyFiles]
ptm5200ds.ds
ImgEffect.dll
ptm5200lld.dll
ptm5200twrczhcn.dll

ptm5200twzhcn.chm



[ICM.CopyFiles]


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



[SCANNER.WIA1.0DRIVER.Delfiles]
ptm5200wia.dll
ptm5200wialld.dll

[SCANNER.WIA2.0DRIVER.Delfiles]
ptm5200wia.dll
ptm5200wialld.dll

[TWAINDRIVER.Delfiles]
ptm5200ds.ds
ImgEffect.dll
ptm5200lld.dll
ptm5200twrczhcn.dll

ptm5200twzhcn.chm



[TWAINDRIVER.amd64.Delfiles]
ptm5200ds.ds
ImgEffect.dll
ptm5200lld.dll
ptm5200twrczhcn.dll

ptm5200twzhcn.chm



[ICM.Delfiles]


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