; PmxScan.INF  -- Windows Still Image Setup File for the DDK
;  WINME 2002/07/01 Scan_XXX.inf 

; Leave thse lines as they are
[Version]
Signature="$CHICAGO$"
Class=Image
ClassGUID={6bdd1fc6-810f-11d0-bec7-08002be2092f}
Provider=%Msft%
LayoutFile=layout.inf, layout1.inf
DriverVer=11/06/2001,1.0.0.0

[Manufacturer]
%Mfg%=Models

[Models]
; Replace PnPIDINformation with the hardware ID generated by your
; device for PnP identification
%ProductDesc% = Samp, USB\VID_0461&PID_0374
%ProductDesc% = Samp, USB\VID_0461&PID_0347
%ProductDesc% = Samp, USB\VID_0461&PID_0363
%ProductDesc% = Samp, USB\VID_0461&PID_0367
%ProductDesc% = Samp, USB\VID_0461&PID_0365
%ProductDesc% = Samp, USB\VID_04A7&PID_0224
%ProductDesc% = Samp, USB\VID_04A7&PID_0226
%ProductDesc% = Samp, USB\VID_04A7&PID_0225
%ProductDesc% = Samp, USB\VID_04A7&PID_0229
%ProductDesc% = Samp, USB\VID_0461&PID_0377
%ProductDesc% = Samp, USB\VID_0461&PID_0371
%ProductDesc% = Samp, USB\VID_04A7&PID_022C 
%ProductDesc% = Samp, USB\VID_0461&PID_0378 
%ProductDesc% = Samp, USB\VID_04A7&PID_0229 
%ProductDesc% = Samp, USB\VID_04A7&PID_022A
%ProductDesc% = Samp, USB\VID_0461&PID_0375
%ProductDesc% = Samp, USB\VID_0402&PID_5623

[Uninstall.PreSetupCommand]
%10%\Twain_32\%TwainDir%\DelINF.EXE VID_0461&PID_0374
%10%\Twain_32\%TwainDir%\DelINF.EXE VID_0461&PID_0347
%10%\Twain_32\%TwainDir%\DelINF.EXE VID_0461&PID_0363
%10%\Twain_32\%TwainDir%\DelINF.EXE VID_04A7&PID_0224
%10%\Twain_32\%TwainDir%\DelINF.EXE VID_04A7&PID_0226
%10%\Twain_32\%TwainDir%\DelINF.EXE VID_04A7&PID_0225
%10%\Twain_32\%TwainDir%\DelINF.EXE VID_04A7&PID_0229
%10%\Twain_32\%TwainDir%\DelINF.EXE VID_0461&PID_0377
%10%\Twain_32\%TwainDir%\DelINF.EXE VID_0461&PID_0371
%10%\Twain_32\%TwainDir%\DelINF.EXE VID_04A7&PID_022C
%10%\Twain_32\%TwainDir%\DelINF.EXE VID_0461&PID_0378
%10%\Twain_32\%TwainDir%\DelINF.EXE VID_04A7&PID_0229
%10%\Twain_32\%TwainDir%\DelINF.EXE VID_04A7&PID_022A
%10%\Twain_32\%TwainDir%\DelINF.EXE VID_0461&PID_0375
%10%\Twain_32\%TwainDir%\DelINF.EXE VID_0402&PID_5623







[ControlFlags]
; remove comment from this line for PnP devices
; ExcludeFromSelect.WIN=*
ExcludeFromSelect=*

[SourceDisksNames]
1116=%ProductDesc%,,,

[SourceDisksFiles]
pmxusb.cpl=1116
pmxsca95.sys=1116
pmxsca98.sys=1116
CONSTANT.INI=1116
Config.dat=1116
E1_USB.INI=1116
E1_EPP.INI=1116
HW_ENG.INI=1116
ImgProc.dll=1116
LTDIS90n.dll=1116
;;;ltfil90n.DLL=1116
ltimg90n.dll=1116
;;;ltkrn90n.dll=1116
LUT.PLG=1116
PMXUSD.DLL=1116
PROTOCOL.DS=1116
PROTOCOL.INI=1116
prdirect.dll=1116
UI3RD_32.DLL=1116
gl.dll=1116
Twunk_16.exe=1116
Twunk_32.exe=1116
APackENG.DLL=1116
W95Inf16.DLL=1116
W95Inf32.DLL=1116
DrvEpp.dll=1116
RunUnDrv.exe=1116
Ppsio2.ini=1116
Ppsio2.sys=1116
DelINF.EXE=1116
Scanner.OS=1116
Vpmx3d.vxd=1116
divJPG.DLL=1116
DJpegDLL.dll=1116
Vizmicro.dll=1116

; Depend on language
TW_Eng.HLP=1116
Scan_Eng.inf=1116
Scan_Eng.ini=1116
Tw_Eng.dll=1116
Tw32_Eng.dll=1116
UI32_Eng.DLL=1116
S32_Eng.dll=1116
TW_ENG.REG=1116

;Thunis Twain
UIBmpEng.dll=1116
outline.dat=1116
userEng.dat=1116


;Founder Twain
UIBmpEng.dll=1116
outline.dat=1116


; TWAIN Help Manual
TW_Eng.HLP=1116
TW_Eng.cnt=1116


;Reltek Drivers File
pr4800.ini=1116
RtScan.dll=1116
Vizstr.txt=1116
pr5800.ini=1116
Pr0225.ini=1116
Pr8900.ini=1116
VICEO.DLL=1116

;S&Q Drivers File
CalData.ini=1116
Llf_scan.dll=1116
io_port.dll=1116
fvc.dll=1116
SQ1394.dll=1116
VICEO.DLL=1116

;Genesys Drivers File
RtScan.dll=1116
RtScan.ini=1116
Vizstr.txt=1116
VICEO.DLL=1116



;S&Q 9000 Drivers File
CalData.ini=1116
Nta.dll=1116
Rtscan.dll=1116
LUTN.plg=1116
LUTR.plg=1116
LUTr_mtg.plg=1116
LUTGray.Plg=1116
LUTT.plg=1116
ScanPar.ini=1116
Tcaldata.ini=1116
viceo.dll=1116
Vizstr.txt=1116
P90_48r.lut=1116
Pmx9000n.lut=1116
Pmx9000r.lut=1116
Pmx9000t.lut=1116
 
 
;ALi U2 1200 Drivers File
VICEO.DLL=1116
Mini5623.dll=1116
M5623.bin=1116
SPilot.ini=1116 
 


;Runutil 為安裝完 inf檔後會SHOW 請插上Scanner
Runutil.exe=1116

[DestinationDirs]
DefaultDestDir=11               ; LDID_SYS that is, \windows\system
CopyFiles.Sys32.NTX86=12				; system32\drivers
CopyFiles.Sys32.WIN=11
CopyFiles.Inf=17
CopyFiles.UninstallInf=10,twain_32\%TwainDir%
TwainDriver.CopyFiles=10,twain_32\%TwainDir%
Uninstall.ExtraFiles=10,twain_32\%TwainDir%
TwainTrunk.CopyFiles=10
CopyFiles.USB=10,twain_32\%TwainDir%
CopyFiles.EPP=10,twain_32\%TwainDir%
CopyFiles.EPP.WIN=10,twain_32\%TwainDir%
CopyFiles.EPP.NTX86=12
CopyFiles.WIADriver=11
CopyFiles.ProfilesFile= 10, Twain_32\%TwainDir%\Profiles

[Samp]
; USB 95/98/ME
SubClass=StillImage
DeviceType=1
DeviceSubType=0x1
Capabilities=0x00000033
;PropertyPages="USBScan.cpl,EnumStiPropPages"
ICMProfiles="sRGB Color Space Profile.icm"
DeviceData=Samp.DeviceData
AddReg=Uninstall.Add.Reg.USB,Samp.AddReg.Win,Samp.AddReg.WIADriver
Events=SampUSD.Events
CopyFiles=Samp.CopyFiles,CopyFiles.Sys32.Win,TwainDriver.CopyFiles,CopyFiles.USB,TwainTrunk.CopyFiles,CopyFiles.Inf,CopyFiles.UninstallInf,AdvPack,CopyFiles.WIADriver,CopyFiles.ProfilesFile
Uninstall=DefaultUnInstall.USB
RunPostSetupCommands = PostSetupCommandsSection_Win
UpdateInis=Update.Hardware.INI



[Samp.Services]
AddService = pmxscan, 0x00000002, PmxScan.AddService

[Samp.NTX86.Services]
Include=sti.inf
Needs=STI.USBSection.Services

[PostSetupCommandsSection_Win]
RegEdit.exe /s %10%\twain_32\%TwainDir%\TWAIN.REG



[PostSetupCommandsSection_NTX86]
RegEdit.exe /s %10%\twain_32\%TwainDir%\TWAIN.REG
%11%\Attrib.EXE -R %10%\twain_32\%TwainDir%\*.* /S


[DefaultInstall]
; EPP 95/98
AddReg=Uninstall.Add.Reg.EPP.WIADriver
CopyFiles=Samp.CopyFiles,CopyFiles.EPP,CopyFiles.EPP.Win,TwainDriver.CopyFiles,TwainTrunk.CopyFiles,CopyFiles.Inf,CopyFiles.UninstallInf,AdvPack,CopyFiles.WIADriver,CopyFiles.ProfilesFile
Uninstall=DefaultUnInstall.EPP
RunPostSetupCommands = PostSetupCommandsSection_Win
UpdateInis=Update.Hardware.INI



[Samp.DeviceData]
; Ancillary data to be associated with this device.
; TwainDS, ICMProfile, and ISISDriverName are known identifiers
TwainDS=%Product%
; ISISDriverName="Samp.pxw"
; You can also attach additional information to any device.


;;;;WIA
;;;;; for G6 48 Bit UP
MicroDriver="Vizmicro.dll"

;;;;; for G6 42 Bit Down
;;MicroDriver="pmicro.dll"

TwainDS="USB Scanner"
Server=local
UI DLL=sti.dll
UI Class ID={4DB1AD10-3391-11D2-9A33-00C04FA36145}
SpecialInfo="USB Scanner"
PollTimeout=700,1
Resolutions="75, 100, 150, 200, 300, 600"



[SampUSD.Events]
;ButtonPress="%ButtonPress%",{EF2F45C1-E038-11D1-A415-0080C85429A2},Sti Event
;ButtonDown0=%String8%,{F55B91C1-9471-11D2-953E-0040052FC4F9},*
;ButtonDown1=%String9%,{F55B91C2-9471-11D2-953E-0040052FC4F9},*
;ButtonDown2=%String10%,{F55B91C3-9471-11D2-953E-0040052FC4F9},*
;ButtonDown3=%String11%,{F55B91C4-9471-11D2-953E-0040052FC4F9},*

[Samp.AddReg.Win]
; This all depends on which kernel services you need
HKR,,DeviceType,1,1
HKR,,DevLoader,,*NTKERN
; list system driver here if required such as this line for SCSI devices using MS SCSISCAN
HKR,,NTMPDriver,,"usbscan.sys"
HKR,,OkToHibernate,3,01

[Samp.AddReg.WIADriver]
HKCR,CLSID\{BB6CF8E2-1511-40bd-91BA-80D43C53064E},,,"Micro driver version"
HKCR,CLSID\{BB6CF8E2-1511-40bd-91BA-80D43C53064E}\InProcServer32,,,%11%\wiafbdrv.dll
HKCR,CLSID\{BB6CF8E2-1511-40bd-91BA-80D43C53064E}\InProcServer32,ThreadingModel,,"Both"
HKR,,HardwareConfig,1,2
HKR,,USDClass,,"{BB6CF8E2-1511-40bd-91BA-80D43C53064E}"


[Samp.AddReg.STI]
; Replace the GUID in these four lines with a new GUID from guidgen
; Also change it in Sampusd.h
HKR,,USDClass,,"{C3A80960-28B1-11D1-ACAD-00A02438AD48}"
;Change the dll name at the end of this line
HKCR,CLSID\{C3A80960-28B1-11D1-ACAD-00A02438AD48},,,"USB Scanner STI USD"
HKCR,CLSID\{C3A80960-28B1-11D1-ACAD-00A02438AD48}\InProcServer32,,,%10%\twain_32\%TwainDir%\pmxusd.dll
HKCR,CLSID\{C3A80960-28B1-11D1-ACAD-00A02438AD48}\InProcServer32,ThreadingModel,,"Apartment"

[Samp.CopyFiles]
pmxusb.cpl

[CopyFiles.Sys32.NTX86]
; Still Image Kernel Driver
usbscan.sys

[CopyFiles.Sys32.Win]
usbscan.sys

 
[CopyFiles.WIADriver]
; Copy WIA file 
wiafbdrv.dll

E1.ini,E1_USB.ini,,32
viceo.dll,,,32
gl.dll,,,32
lut.plg,,,32
;;; for G648 up
Vizmicro.dll

;;;;; for G642 Down
;;Pmicro.dll,,,32


;;;;;Reltek Drivers File to System WIA
;pr4800.ini
;RtScan.dll
;Vizstr.txt
;pr5800.ini
;Pr0225.ini
;Pr8900.ini
;VICEO.DLL

;;;;;S&Q Drivers File to System WIA
;;CalData.ini
;;Llf_scan.dll
;;io_port.dll
;;fvc.dll
;;SQ1394.dll
;;VICEO.DLL

;;;;;Genesys Drivers File to System WIA
RtScan.dll
RtScan.ini
Vizstr.txt
VICEO.DLL


;S&Q 9000 Drivers File  to System WIA
;;;;CalData.ini
;;;;Nta.dll
;RtScan.dll
;;;;LUTN.plg
;;;;LUTR.plg
;;;;LUTr_mtg.plg
;;;;LUTGray.Plg
;;;;LUTT.plg
;;;;ScanPar.ini
;;;;Tcaldata.ini
;VICEO.DLL
;Vizstr.txt

 
;ALi U2 1200 Drivers File to System WIA
;;VICEO.DLL
;;;;;Mini5623.dll
;;;;;M5623.bin
;;;;;SPilot.ini
 


[CopyFiles.ProfilesFile]
;;;;Dummy.txt
;;;;P90_48r.lut
;;;;Pmx9000n.lut
;;;;Pmx9000r.lut
;;;;Pmx9000t.lut
 

[TwainDriver.CopyFiles]
; %windir%\twain_32\%TwainDir%
CONSTANT.INI
Config.dat
HARDWARE.INI,HW_ENG.INI
ImgProc.dll
LTDIS90n.dll
;;;ltfil90n.DLL
ltimg90n.dll
;;;ltkrn90n.dll
LUT.PLG
PMXUSD.DLL
PROTOCOL.DS
PROTOCOL.INI
UI3RD_32.DLL
VICEO.DLL
divJPG.DLL
DJpegDLL.dll
gl.dll
prdirect.dll
DelINF.EXE

; Depend on language
set32.dll,S32_Eng.DLL
UI32.DLL,UI32_Eng.DLL
TWAIN.REG,TW_ENG.REG

;;;Thunis Twain 專用
UIBmp.dll,UIBmpEng.dll
outline.dat
user.dat,userEng.dat

;Founder Twain  專用
;;UIBmp.dll,UIBmpEng.dll
;;outline.dat

; TWAIN Help Manual
TWAIN.HLP,TW_ENG.HLP
TWAIN.cnt,TW_Eng.cnt

;;;;;Reltek Drivers File
;pr4800.ini
;RtScan.dll
;Vizstr.txt
;pr5800.ini
;Pr0225.ini
;Pr8900.ini
;VICEO.DLL

;;;;;S&Q Drivers File
;;CalData.ini
;;Llf_scan.dll
;;io_port.dll
;;fvc.dll
;;SQ1394.dll
;;VICEO.DLL

;;;;;Genesys Drivers File
RtScan.dll
RtScan.ini
Vizstr.txt
VICEO.DLL



;S&Q 9000 Drivers File
;;;如果要用此機種Driver 需將[CopyFiles.ProfilesFile] 裡的檔案讓它進行拷貝的動作 2002/2/22 by Dragon  
;;;;CalData.ini
;;;;Nta.dll
;RtScan.dll
;;;;LUTN.plg
;;;;LUTR.plg
;;;;LUTr_mtg.plg
;;;;LUTGray.Plg
;;;;LUTT.plg
;;;;ScanPar.ini
;;;;Tcaldata.ini
;VICEO.DLL
;Vizstr.txt

 
;ALi U2 1200 Drivers File
;;VICEO.DLL
;;;;;Mini5623.dll
;;;;;M5623.bin
;;;;;SPilot.ini
 




;Runutil 為安裝完 inf檔後會SHOW 請插上Scanner
Runutil.exe

[CopyFiles.USB]
E1.INI,E1_USB.ini



[CopyFiles.EPP.NTX86]
Ppsio2.ini
Ppsio2.sys

[CopyFiles.EPP.WIN]
Vpmx3d.vxd

[AdvPack]
AdvPack.DLL,APackENG.DLL,,16
W95Inf16.DLL,,,16
W95Inf32.DLL,,,16


[TwainTrunk.CopyFiles]
Twunk_16.exe,,,16
Twunk_32.exe,,,16
; Depend on language
Twain.dll,Tw_Eng.dll,,16
Twain_32.dll,Tw32_Eng.dll,,16
RunUnDrv.exe

[CopyFiles.Inf]
; Depend on language
PmxScan.inf,Scanner.OS

[CopyFiles.UninstallInf]
PmxScan.inf,Scan_Eng.ini

[PmxScan.AddService]
DisplayName    = %pmxscan.SvcDesc%
ServiceType    = 1                  ; SERVICE_KERNEL_DRIVER
StartType      = 3                  ; SERVICE_DEMAND_START
ErrorControl   = 1                  ; SERVICE_ERROR_NORMAL
ServiceBinary  = %12%\usbscan.sys
LoadOrderGroup = Base


[DefaultUnInstall.USB]
;USB Uninstall => 95/98
DelFiles=Samp.CopyFiles,TwainDriver.CopyFiles,CopyFiles.USB,Uninstall.ExtraFiles,CopyFiles.UninstallInf,CopyFiles.Inf,CopyFiles.WIADriver,CopyFiles.ProfilesFile
DelReg=Uninstall.Add.Reg.USB,Samp.AddReg.WIADriver
BeginPrompt=BeginUPromptSection
EndPrompt=EndUPromptSection
DelDirs = RemoveDirsSection
RunPostSetupCommands = PostSetupCommandSection
RunPreSetupCommands = Uninstall.PreSetupCommand


[DefaultUnInstall.EPP]
;EPP Uninstall => 95/98
DelFiles=Samp.CopyFiles,TwainDriver.CopyFiles,CopyFiles.EPP,CopyFiles.EPP.Win,Uninstall.ExtraFiles,CopyFiles.Inf
DelReg=Uninstall.Add.Reg.EPP
BeginPrompt=BeginUPromptSection
EndPrompt=EndUPromptSection
DelDirs = RemoveDirsSection
RunPostSetupCommands = PostSetupCommandSection



[PostSetupCommandSection]
%10%\RunUnDrv.exe %10%\Twain_32\%TwainDir%\HotKey.INF DefaultUnInstall
;;;%10%\RunUnDrv.exe %10%\Twain_32\%TwainDir%\SButton.Inf DefaultUnInstall


[PostSetupCommandSection_NTX86]
%10%\RunUnDrv.exe %10%\Twain_32\%TwainDir%\HotKey.INF DefaultUnInstall.NTX86
;;;%10%\RunUnDrv.exe %10%\Twain_32\%TwainDir%\SButton.Inf DefaultUnInstall.NTX86


[Uninstall.ExtraFiles]
Twain.GID
Preview.bmp
PRDirect.log

[BeginUPromptSection]
Prompt=%BeginUPromptPrompt%
ButtonType=YESNO
Title=%BeginUPromptTitle%

[EndUPromptSection]
Prompt=%EndUPromptPrompt%

[RemoveDirsSection]
%10%\Twain_32\%TwainDir%
%10%\Twain_32\%TwainDir%\Temp


[Uninstall.Add.Reg.USB]
HKCU,Software\Visioneer\TwainPrefs
HKLM,%Uninstall%%Product%
HKLM,%Uninstall%%Product%,"DisplayName",,"%Product%"
HKLM,%Uninstall%%Product%,"UninstallString",,"%10%\RunUnDrv.exe %10%\Twain_32\%TwainDir%\PmxScan.INF DefaultUnInstall.USB"

[Update.Hardware.INI]
;%10%\Twain_32\%TwainDir%\Hardware.INI, "Identity",,"ProductName=%Product%"    	 ,0
;%10%\Twain_32\%TwainDir%\Hardware.INI, "Identity",,"ProductName_16=%Product%"  	 ,0
;%10%\Twain_32\%TwainDir%\Hardware.INI, "Option"  ,,"Caption=%TwainUIName%"       ,0

[Strings]
Uninstall="Software\Microsoft\Windows\CurrentVersion\Uninstall\"
ButtonPress="Launch Button Push"
pmxscan.SvcDesc= "USB Uniscan e46 Driver"
String8="Scan Button"
String9="Copy/Print Button"
String10="Fax Button"
String11="Custom Button"
Msft=USB Scanner
Mfg=USB Scanner
ProductDesc="Uniscan e46(ENG)"

Product="Uniscan e46"
;TwainUIName="Uniscan e46" 
TwainDir="Th7100"
BeginUPromptPrompt="Are you sure you want to remove Uniscan e46?"
BeginUPromptTitle="Uniscan e46 Uninstall"
EndUPromptPrompt="Uniscan e46 was successfully removed from your computer."

