; M6760DWSC.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 = 12/30/2016,1.0.2.4
CatalogFile=ptm6760wia.cat


[SourceDisksFiles.x86]
ptm6700wiasec.dll=96
ptm6700wia.dll=96
ptm6700lld.dll = 96
ptm6700Apreg.dll =96
ptm6700ImgEffect.dll=96

ptm6700ds.ds = 3
ptm6700ImgEffect.dll = 3
ptm6700lld.dll = 3

; RC file
ptm6700twrczhcn.dll = 3
ptm6700twrczhtw.dll = 3
ptm6700twrcenus.dll = 3
ptm6700twrcru.dll = 3
ptm6700twrcesmx.dll = 3

ptm6700twrcfr.dll = 3
ptm6700twrcit.dll = 3
ptm6700twrcde.dll = 3
ptm6700twrctr.dll = 3
ptm6700twrcpl.dll = 3
ptm6700twrche.dll = 3


; Help file
ptm6700twzhcn.chm = 4
ptm6700twzhtw.chm = 4
ptm6700twenus.chm = 4
ptm6700twru.chm = 4
ptm6700twit.chm = 4

ptm6700twesmx.chm = 4
ptm6700twfr.chm = 4
ptm6700twde.chm = 4
ptm6700twtr.chm = 4
ptm6700twpl.chm = 4
ptm6700twhe.chm = 4
ptm6700.ini = 4

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

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



[SourceDisksFiles.amd64]
ptm6700wiasec.dll=99
ptm6700wia.dll = 99
ptm6700lld.dll = 99
ptm6700ImgEffect.dll=99
ptm6700ApReg.dll =99

ptm6700ds.ds = 3
ptm6700ImgEffect.dll = 3
ptm6700lld.dll = 3


; RC file
ptm6700twrczhcn.dll = 3
ptm6700twrczhtw.dll = 3
ptm6700twrcenus.dll = 3
ptm6700twrcru.dll = 3
ptm6700twrcesmx.dll = 3

ptm6700twrcfr.dll = 3
ptm6700twrcit.dll = 3
ptm6700twrcde.dll = 3
ptm6700twrctr.dll = 3
ptm6700twrcpl.dll = 3
ptm6700twrche.dll = 3


; Help file
ptm6700twzhcn.chm = 4
ptm6700twzhtw.chm = 4
ptm6700twenus.chm = 4
ptm6700twru.chm = 4
ptm6700twesmx.chm = 4

ptm6700twfr.chm = 4
ptm6700twit.chm = 4
ptm6700twde.chm = 4
ptm6700twtr.chm = 4
ptm6700twpl.chm = 4
ptm6700twhe.chm = 4
ptm6700.ini = 4

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

99 = %DISK%,,,ptm6700AMD64
; 99 = %SCAN64%,ptm6700AMD64.CAB,,
3 = %DISK%,,,x32\ptm6700
4 = %DISK%,,,.

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

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


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


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

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

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

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

;---------------------------------------M6700 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%
FilePrifix=ptm6700

[SCANNER.WIA1.0DRIVER.amd64.DeviceData]
Server=local
TwainDS=%SCANNER.WIA1.0.DeviceDesc%
FilePrifix=ptm6700

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

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

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

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


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

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


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

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

[INI.CopyFiles]
ptm6700.ini


[SCANNER.WIA1.0DRIVER.CopyFiles]
ptm6700wia.dll
ptm6700lld.dll
ptm6700ImgEffect.dll
ptm6700ApReg.dll


[SCANNER.WIA2.0DRIVER.CopyFiles]
ptm6700wiasec.dll
ptm6700lld.dll
ptm6700ImgEffect.dll
ptm6700ApReg.dll

[TWAINDRIVER.CopyFiles]

ptm6700ds.ds
ptm6700ImgEffect.dll
ptm6700lld.dll


ptm6700twrczhcn.dll
ptm6700twrczhtw.dll
ptm6700twrcenus.dll
ptm6700twrcru.dll
ptm6700twrcesmx.dll 

ptm6700twrcfr.dll 
ptm6700twrcit.dll 
ptm6700twrcde.dll 
ptm6700twrctr.dll 
ptm6700twrcpl.dll 
ptm6700twrche.dll 

ptm6700twzhcn.chm
ptm6700twzhtw.chm
ptm6700twenus.chm
ptm6700twru.chm
ptm6700twesmx.chm 

ptm6700twfr.chm 
ptm6700twit.chm 
ptm6700twde.chm 
ptm6700twtr.chm 
ptm6700twpl.chm 
ptm6700twhe.chm 

[TWAINDRIVER.amd64.CopyFiles]

ptm6700ds.ds
ptm6700ImgEffect.dll
ptm6700lld.dll


ptm6700twrczhcn.dll
ptm6700twrczhtw.dll
ptm6700twrcenus.dll
ptm6700twrcru.dll
ptm6700twrcesmx.dll 

ptm6700twrcfr.dll 
ptm6700twrcit.dll 
ptm6700twrcde.dll 
ptm6700twrctr.dll
ptm6700twrcpl.dll
ptm6700twrche.dll 

ptm6700twzhcn.chm
ptm6700twzhtw.chm
ptm6700twenus.chm
ptm6700twru.chm
ptm6700twesmx.chm 

ptm6700twfr.chm 
ptm6700twit.chm 
ptm6700twde.chm 
ptm6700twtr.chm
ptm6700twpl.chm
ptm6700twhe.chm

[ICM.CopyFiles]


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



[SCANNER.WIA1.0DRIVER.Delfiles]
ptm6700wia.dll
ptm6700lld.dll
ptm6700ImgEffect.dll
ptm6700ApReg.dll

[SCANNER.WIA2.0DRIVER.Delfiles]
ptm6700wiasec.dll
ptm6700lld.dll
ptm6700ImgEffect.dll
ptm6700ApReg.dll

[TWAINDRIVER.Delfiles]

ptm6700ds.ds
ptm6700ImgEffect.dll
ptm6700lld.dll



ptm6700twrczhcn.dll
ptm6700twrczhtw.dll
ptm6700twrcenus.dll
ptm6700twrcru.dll
ptm6700twrcesmx.dll 

ptm6700twrcfr.dll 
ptm6700twrcit.dll 
ptm6700twrcde.dll 
ptm6700twrctr.dll 
ptm6700twrcpl.dll
ptm6700twrche.dll

ptm6700twzhcn.chm
ptm6700twzhtw.chm
ptm6700twenus.chm
ptm6700twru.chm
ptm6700twesmx.chm 

ptm6700twfr.chm 
ptm6700twit.chm 
ptm6700twde.chm 
ptm6700twtr.chm 
ptm6700twpl.chm
ptm6700twhe.chm

[TWAINDRIVER.amd64.Delfiles]
ptm6700ds.ds
ptm6700ImgEffect.dll
ptm6700lld.dll

ptm6700twrczhcn.dll
ptm6700twrczhtw.dll
ptm6700twrcenus.dll
ptm6700twrcru.dll
ptm6700twrcesmx.dll 

ptm6700twrcfr.dll 
ptm6700twrcit.dll 
ptm6700twrcde.dll 
ptm6700twrctr.dll
ptm6700twrcpl.dll
ptm6700twrche.dll

ptm6700twzhcn.chm
ptm6700twzhtw.chm
ptm6700twenus.chm
ptm6700twru.chm
ptm6700twesmx.chm 

ptm6700twfr.chm 
ptm6700twit.chm 
ptm6700twde.chm 
ptm6700twtr.chm
ptm6700twpl.chm
ptm6700twhe.chm 

[ICM.Delfiles]


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