; M7300DWFSC.inf     
; installation file for the Scanner Driver
; Color Scanner's setup file.
; Copyright (c) 2016. All rights reserved.
; Manufacturer: Pantum
;

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

DriverVer = 03/31/2017,1.0.0.1
CatalogFile=ptm7300wia.cat


[SourceDisksFiles.x86]
ptm7100wiasec.dll=96
ptm7100wia.dll=96
ptm7100lld.dll = 96
ptm7100Apreg.dll =96
ptm7100ImgEffect.dll=96

ptm7100ds.ds = 3
ptm7100ImgEffect.dll = 3
ptm7100lld.dll = 3

; RC file
ptm7100twrczhcn.dll = 3
ptm7100twrczhtw.dll = 3
ptm7100twrcenus.dll = 3
ptm7100twrcru.dll = 3
ptm7100twrcesmx.dll = 3

ptm7100twrcfr.dll = 3
ptm7100twrcit.dll = 3
ptm7100twrcde.dll = 3
ptm7100twrctr.dll = 3
ptm7100twrcpl.dll = 3
ptm7100twrche.dll = 3
ptm7100twrcar.dll = 3

; Help file
ptm7100twzhcn.chm = 4
ptm7100twzhtw.chm = 4
ptm7100twenus.chm = 4
ptm7100twru.chm = 4
ptm7100twit.chm = 4

ptm7100twesmx.chm = 4
ptm7100twfr.chm = 4
ptm7100twde.chm = 4
ptm7100twtr.chm = 4
ptm7100twpl.chm = 4
ptm7100twhe.chm = 4
ptm7100twar.chm = 4

ptm7100.ini = 4

[SourceDisksNames.x86]
1=%Location%,,,
; 96 = %SCAN32%,ptm7100X86.CAB,,
96 = %DISK%,,,ptm7100X86

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



[SourceDisksFiles.amd64]
ptm7100wiasec.dll=99
ptm7100wia.dll = 99
ptm7100lld.dll = 99
ptm7100ImgEffect.dll=99
ptm7100ApReg.dll =99

ptm7100ds.ds = 3
ptm7100ImgEffect.dll = 3
ptm7100lld.dll = 3


; RC file
ptm7100twrczhcn.dll = 3
ptm7100twrczhtw.dll = 3
ptm7100twrcenus.dll = 3
ptm7100twrcru.dll = 3
ptm7100twrcesmx.dll = 3

ptm7100twrcfr.dll = 3
ptm7100twrcit.dll = 3
ptm7100twrcde.dll = 3
ptm7100twrctr.dll = 3
ptm7100twrcpl.dll = 3
ptm7100twrche.dll = 3
ptm7100twrcar.dll = 3

; Help file
ptm7100twzhcn.chm = 4
ptm7100twzhtw.chm = 4
ptm7100twenus.chm = 4
ptm7100twru.chm = 4
ptm7100twesmx.chm = 4

ptm7100twfr.chm = 4
ptm7100twit.chm = 4
ptm7100twde.chm = 4
ptm7100twtr.chm = 4
ptm7100twpl.chm = 4
ptm7100twhe.chm = 4
ptm7100twar.chm = 4

ptm7100.ini = 4

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

99 = %DISK%,,,ptm7100AMD64
; 99 = %SCAN64%,ptm7100AMD64.CAB,,
3 = %DISK%,,,x32\ptm7100
4 = %DISK%,,,.

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

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


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


[Pantum.NTx86]
%SCANNER.WIA1.0.DeviceDesc% = SCANNER.WIA1.0DRIVER.ntx86,%M7300FDN_VIDPID%
%SCANNER.WIA1.0.DeviceDesc% = SCANNER.WIA1.0DRIVER.ntx86,%M7300FDW_VIDPID%

[Pantum.NTx86.6.1]
%SCANNER.WIA2.0.DeviceDesc% = SCANNER.WIA2.0DRIVER.ntx86,%M7300FDN_VIDPID%
%SCANNER.WIA2.0.DeviceDesc% = SCANNER.WIA2.0DRIVER.ntx86,%M7300FDW_VIDPID%

[Pantum.NTamd64]
%SCANNER.WIA1.0.DeviceDesc% = SCANNER.WIA1.0DRIVER.ntamd64,%M7300FDN_VIDPID%
%SCANNER.WIA1.0.DeviceDesc% = SCANNER.WIA1.0DRIVER.ntamd64,%M7300FDW_VIDPID%

[Pantum.NTamd64.6.1]
%SCANNER.WIA2.0.DeviceDesc% = SCANNER.WIA2.0DRIVER.ntamd64,%M7300FDN_VIDPID%
%SCANNER.WIA2.0.DeviceDesc% = SCANNER.WIA2.0DRIVER.ntamd64,%M7300FDW_VIDPID%

;---------------------------------------M7300 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
AutoDuplexAttached=1
FilePrifix=ptm7100

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

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

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

;-------------------------------------------------------- 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%,,,"Pantum M7300 Series WIA 1.0 Minidriver"
HKCR,CLSID\%WIA1_GUID%\InProcServer32,,,%11%\ptm7100wia.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%,,,"Pantum M7300 Series WIA 2.0 Minidriver"
HKCR,CLSID\%WIA2_GUID%\InProcServer32,,,%11%\ptm7100wiasec.dll
HKCR,CLSID\%WIA2_GUID%\InProcServer32,ThreadingModel,,"Both"

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


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

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


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

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

[INI.CopyFiles]
ptm7100.ini

[SCANNER.WIA1.0DRIVER.CopyFiles]
ptm7100wia.dll
ptm7100lld.dll
ptm7100ImgEffect.dll
ptm7100ApReg.dll


[SCANNER.WIA2.0DRIVER.CopyFiles]
ptm7100wiasec.dll
ptm7100lld.dll
ptm7100ImgEffect.dll
ptm7100ApReg.dll

[TWAINDRIVER.CopyFiles]

ptm7100ds.ds
ptm7100ImgEffect.dll
ptm7100lld.dll


ptm7100twrczhcn.dll
ptm7100twrczhtw.dll
ptm7100twrcenus.dll
ptm7100twrcru.dll
ptm7100twrcesmx.dll 

ptm7100twrcfr.dll 
ptm7100twrcit.dll 
ptm7100twrcde.dll 
ptm7100twrctr.dll 
ptm7100twrcpl.dll
ptm7100twrche.dll
ptm7100twrcar.dll

ptm7100twzhcn.chm
ptm7100twzhtw.chm
ptm7100twenus.chm
ptm7100twru.chm
ptm7100twesmx.chm 

ptm7100twfr.chm 
ptm7100twit.chm 
ptm7100twde.chm 
ptm7100twtr.chm 
ptm7100twpl.chm
ptm7100twhe.chm
ptm7100twar.chm

[TWAINDRIVER.amd64.CopyFiles]

ptm7100ds.ds
ptm7100ImgEffect.dll
ptm7100lld.dll


ptm7100twrczhcn.dll
ptm7100twrczhtw.dll
ptm7100twrcenus.dll
ptm7100twrcru.dll
ptm7100twrcesmx.dll 

ptm7100twrcfr.dll 
ptm7100twrcit.dll 
ptm7100twrcde.dll 
ptm7100twrctr.dll 
ptm7100twrcpl.dll
ptm7100twrche.dll
ptm7100twrcar.dll

ptm7100twzhcn.chm
ptm7100twzhtw.chm
ptm7100twenus.chm
ptm7100twru.chm
ptm7100twesmx.chm 

ptm7100twfr.chm 
ptm7100twit.chm 
ptm7100twde.chm 
ptm7100twtr.chm
ptm7100twpl.chm
ptm7100twhe.chm
ptm7100twar.chm

[ICM.CopyFiles]


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



[SCANNER.WIA1.0DRIVER.Delfiles]
ptm7100wia.dll
ptm7100lld.dll
ptm7100ImgEffect.dll
ptm7100ApReg.dll

[SCANNER.WIA2.0DRIVER.Delfiles]
ptm7100wiasec.dll
ptm7100lld.dll
ptm7100ImgEffect.dll
ptm7100ApReg.dll

[TWAINDRIVER.Delfiles]

ptm7100ds.ds
ptm7100ImgEffect.dll
ptm7100lld.dll



ptm7100twrczhcn.dll
ptm7100twrczhtw.dll
ptm7100twrcenus.dll
ptm7100twrcru.dll
ptm7100twrcesmx.dll 

ptm7100twrcfr.dll 
ptm7100twrcit.dll 
ptm7100twrcde.dll 
ptm7100twrctr.dll 
ptm7100twrcpl.dll
ptm7100twrche.dll
ptm7100twrcar.dll

ptm7100twzhcn.chm
ptm7100twzhtw.chm
ptm7100twenus.chm
ptm7100twru.chm
ptm7100twesmx.chm 

ptm7100twfr.chm 
ptm7100twit.chm 
ptm7100twde.chm 
ptm7100twtr.chm 
ptm7100twpl.chm
ptm7100twhe.chm
ptm7100twar.chm

[TWAINDRIVER.amd64.Delfiles]
ptm7100ds.ds
ptm7100ImgEffect.dll
ptm7100lld.dll

ptm7100twrczhcn.dll
ptm7100twrczhtw.dll
ptm7100twrcenus.dll
ptm7100twrcru.dll
ptm7100twrcesmx.dll 

ptm7100twrcfr.dll 
ptm7100twrcit.dll 
ptm7100twrcde.dll 
ptm7100twrctr.dll
ptm7100twrcpl.dll
ptm7100twrche.dll
ptm7100twrcar.dll

ptm7100twzhcn.chm
ptm7100twzhtw.chm
ptm7100twenus.chm
ptm7100twru.chm
ptm7100twesmx.chm 

ptm7100twfr.chm 
ptm7100twit.chm 
ptm7100twde.chm 
ptm7100twtr.chm 
ptm7100twpl.chm
ptm7100twhe.chm
ptm7100twar.chm

[ICM.Delfiles]


[Strings]
Company ="Pantum"
ProviderName="Pantum"
DISK = "Pantum M7300 Series Setup Disc"
Location="Pantum M7300 Series Setup Disc"
SCANNER.WIA1.0.DeviceDesc="Pantum M7300 Series Scanner"
SCANNER.WIA2.0.DeviceDesc="Pantum M7300 Series Scanner"
ScanButton.Desc="Scan Button"
RunOnce="SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce"
SCAN64 = "SCAN_AMD64" 
SCAN32 = "SCAN_X86" 
M7300FDN_VIDPID   = "USB\VID_232B&PID_0ED4&MI_01" ; M7300FDN
M7300FDW_VIDPID   = "USB\VID_232B&PID_0ED5&MI_01" ; M7300FDW
WIA1_GUID = "{D411FB0D-0C9C-4a59-8683-B8C5DAA6F6CE}"
WIA2_GUID = "{CD1EE532-32D5-41f3-9D8E-844FA6BB27C5}"