;-------------------------------------------------------------------------------
;
; .INF  --    Windows 7/Vista/XP/2000/9x/Me Still Image Setup File 
;
; For Generic USB scanner
;
;-------------------------------------------------------------------------------

[Version]
Signature="$CHICAGO$"
Class=Image
ClassGUID={6bdd1fc6-810f-11d0-bec7-08002be2092f}
Provider=%Prov%
DriverVer = 01/17/2011,1.0.7
LayoutFile=LAYOUT.INF,LAYOUT1.INF,LAYOUT2.INF


[SourceDisksNames]
1="UNIS Inc",,,

[SourceDisksFiles]
;CJSTI.dll=1
;usbscan.sys=1


[DestinationDirs]
; By default, files will be copied to \windows\system.
DefaultDestDir=11

[Manufacturer]
%Mfg%=Models, NTx86.5, NTx86.6, NTamd64.5, NTamd64.6

[Models.NTx86.5]
%Device.DeviceDesc0% = DeviceScanner,  USB\VID_04CA&PID_3604

[Models.NTx86.6]
%Device.DeviceDesc0% = DeviceScanner,  USB\VID_04CA&PID_3604

[Models.NTamd64.5]
%Device.DeviceDesc0% = DeviceScanner,  USB\VID_04CA&PID_3604

[Models.NTamd64.6]
%Device.DeviceDesc0% = DeviceScanner,  USB\VID_04CA&PID_3604

;.................................WIN98.............
[DeviceScanner]
SubClass=StillImage
DeviceType=1                    
DeviceSubType=0x1
AddReg=CJAddReg.WIN,Device.AddReg
CopyFiles=DeviceCopyFile.WIN,Sti.CopyFiles
DelFiles=Device.DelSysFiles
DeviceData=Device.DeviceData
UninstallSection=Uninstall.Device
ICMProfiles="sRGB Color Space Profile.icm"
; used for push button event
Capabilities=3
Events=PushButton.Events

[CJAddReg.WIN]
HKR,,NTMPDriver,,"usbscan.sys"

[DeviceCopyFiles.WIN]
;usbscan.sys,,,0x20
;................................WIN XP & 2000..........................
[DeviceScanner.NT]
Include=sti.inf
Needs=STI.USBSection
SubClass=StillImage
DeviceType=1                    
DeviceSubType=0x1
AddReg=Device.AddReg
CopyFiles=Sti.CopyFiles
DelFiles=Device.DelSysFiles
DeviceData=Device.DeviceData
UninstallSection=Uninstall.Device
ICMProfiles="sRGB Color Space Profile.icm"
; used for push button event
Capabilities=3
Events=PushButton.Events

[DeviceScanner.NT.Services]
Include=sti.inf
Needs=STI.USBSection.Services

;............................98 & 2000 & XP........................

[Device.AddReg]
HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\StillImage\Registered Applications",SmartPanel,,"%10%\twain_32\F20A\SmartPanel.exe /StiDevice:%%1 /StiEvent:%%2"
HKR,,HardwareConfig,1,4
HKR,,DevLoader,,*NTKERN
HKR,,NTMPDriver,,USBSCAN.SYS
HKR,,USDClass,,"{55A6A320-6322-4ECC-95D1-3461C538DA9D}"
HKCR,CLSID\{55A6A320-6322-4ECC-95D1-3461C538DA9D} ,,,"L201 STI File USD"
HKCR,CLSID\{55A6A320-6322-4ECC-95D1-3461C538DA9D}\InProcServer32,,,%11%\F20ASTI.dll
HKCR,CLSID\{55A6A320-6322-4ECC-95D1-3461C538DA9D}\InProcServer32,ThreadingModel,,"Both"


[Sti.CopyFiles]
;CJSTI.dll

[PushButton.Events]
; These are events that the device issues to trigger application
; launching.
PushButtonPushed1="%PushButtonPushed1%",{B1066F68-7707-4C84-9516-ACA1EA0DF596},%ButtonApp%
PushButtonPushed2="%PushButtonPushed2%",{B1066F69-7707-4C84-9516-ACA1EA0DF596},%ButtonApp%
PushButtonPushed3="%PushButtonPushed3%",{B1066F6A-7707-4C84-9516-ACA1EA0DF596},%ButtonApp%
PushButtonPushed4="%PushButtonPushed4%",{B1066F6B-7707-4C84-9516-ACA1EA0DF596},%ButtonApp%
PushButtonPushed5="%PushButtonPushed5%",{B1066F6C-7707-4C84-9516-ACA1EA0DF596},%ButtonApp%

[Device.CopySys32Files]

[Uninstall.Device]
DelFiles=Device.DelSysFiles
DelReg=Device.AddReg

[Device.DelSysFiles]
Sti.CopyFiles

[Strings]
Prov="UNISCAN"
Device.Mfg="UNISCAN"
Device.DeviceDesc0="Uniscan F20A"
Device.DeviceDesc1="Uniscan F20A"
Diskname="Uniscan F20A driver"
PushButtonPushed1="EMAIL Button"
PushButtonPushed2="SCAN Button"
PushButtonPushed3="OCR Button"
PushButtonPushed4="COPY Button"
PushButtonPushed5="SET Button"
ButtonApp="SmartPanel"
