;=====================================================================================================================
;
;  DV_Usb.INF
;
;  Version 1.0.1
;
;
;=====================================================================================================================

[Version]
Signature="$WINDOWS NT$"
Class=HIDClass
ClassGuid={745a17a0-74d3-11d0-b6fe-00a0c90f57da}
Provider=%DV_Touch%
LayoutFile=Layout.inf, Layout1.inf, Layout2.inf
DriverVer=07/23/2006,1.01.0692

[SourceDisksNames]
19="DigitalVision SAW USB Touchscreen driver Disk",,

[SourceDisksFiles]
DV_Usb.Sys   = 19,,19712
DV_Touch.Cpl = 19,,139264
DV_Calib.Exe = 19,,32768
UnInst.Exe   = 19,,77824
ReadMe.Txt   = 19,,2938
Null.cur     = 19,,326

[DestinationDirs]
DefaultDestDir              = 12                    	;  LDID_IOS

DV_UsbDrvCopy.NT            = 10,System32\drivers   	;  LDID_DRIVERS
DV_CPLCopy.NT               = 11                    	;  LDID_SYS
DV_SetupCopy.NT             = 10,%DV_USBSetupAppDir%   	;  Windows\DV_USB
DV_UsbCurCopy.NT	    = 10,Cursors		;  Windows\Cursors

;---------------------------------------------------------------------------------------------------
;
;   					Manufacturer Section
;
;---------------------------------------------------------------------------------------------------

[Manufacturer]
%DV_Mfg%  = DV_TouchMfg               ; DigitalVision Ltd.

[DV_TouchMfg]
%DV_USB_PID_0001%=DV_TouchUsb.Install, USB\VID_0DF9&PID_0001
%DV_USB_PID_0002%=DV_TouchUsb.Install, USB\VID_0DFC&PID_0001

[ControlFlags]
; All PnP devices should be excluded from manual AddDevice Applet list
ExCludeFromSelect=*

;--------------------------------------------------------------------------------------------------------------------------
;
;                           Windows 2000/XP Install Sections
;
;--------------------------------------------------------------------------------------------------------------------------

[DV_TouchUsb.Install.NT]
DriverVer=07/23/2006,1.01.0692
Include=input.inf
Needs=HID_Inst.NT
Copyfiles = DV_UsbDrvCopy.NT,DV_CPLCopy.NT,DV_SetupCopy.NT,DV_UsbCurCopy.NT
AddReg = DV_Usb.Install.AddReg.NT
Include=msmouse.inf
Needs=HIDMouse

[DV_TouchUsb.Install.NT.HW]
AddReg = DV_TouchUsb.Install.AddReg.NT

[DV_TouchUsb.Install.AddReg.NT]
HKR,,"LowerFilters",0x00010000,"DV_Usb"
HKR,,"XLow",0x00010001, 0
HKR,,"YLow",0x00010001, 0
HKR,,"XHigh",0x00010001, 0x1000
HKR,,"YHigh",0x00010001, 0x1000
HKR,,"SwapXY",0x00010001, 0

[DV_Usb.Install.AddReg.NT]


;
;
HKLM,%DV_RunOnceRegPath%, DV_Touch, %REG_SZ%, "rundll32.exe %11%\dv_touch.cpl,AutoCalibration"

HKLM,%DV_UninstallRegPath%,"DisplayName",,%DV_USBUninstallDescrpt%
HKLM,%DV_UninstallRegPath%,"UninstallString",,"%10%\%DV_USBSetupAppDir%\UnInst.Exe"
HKCU,"Control Panel\Mouse",DoubleClickHeight,%REG_SZ%,"25"
HKCU,"Control Panel\Mouse",DoubleClickWidth,%REG_SZ%,"25"
HKCU,"Control Panel\Mouse",DoubleClickSpeed,%REG_SZ%,"800"
HKLM,SYSTEM\CurrentControlSet\Services\Mouclass\Parameters, ConnectMultiplePorts, %REG_DWORD%, 0x00
HKLM, System\Currentcontrolset\Services\%USBService%\Parameters, MouseMode, 0x00010001, 3
HKLM, System\Currentcontrolset\Services\%USBService%\Parameters, ButtonMode, 0x00010001, 0
HKLM, System\Currentcontrolset\Services\%USBService%\Parameters, DragDelay, 0x00010001, 2
HKLM, System\Currentcontrolset\Services\%USBService%\Parameters, BeepMode, 0x00010001, 2
HKLM, System\Currentcontrolset\Services\%USBService%\Parameters, BeepFreq, 0x00010001, 0x3e8
HKLM, System\Currentcontrolset\Services\%USBService%\Parameters, BeepTime, 0x00010001, 0x20
HKLM, System\Currentcontrolset\Services\%USBService%\Parameters, DblClickRegion, 0x00010001, 0x19
HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Control Panel\Cursors\Schemes,DV_Touch,%REG_SZ%,"%10%\cursors\null.cur,,%10%\cursors\null.cur,%10%\cursors\null.cur,%10%\cursors\null.cur,%10%\cursors\null.cur,,%10%\cursors\null.cur,%10%\cursors\null.cur,%10%\cursors\null.cur,%10%\cursors\null.cur,%10%\cursors\null.cur,%10%\cursors\null.cur,%10%\cursors\null.cur"

[DV_UsbDrvCopy.NT]
DV_Usb.Sys

[DV_UsbCurCopy.NT]
Null.cur

[DV_CPLCopy.NT]
DV_Touch.Cpl
DV_Calib.Exe

[DV_SetupCopy.NT]
UnInst.exe
ReadMe.txt

[DV_TouchUsb.Install.NT.Services]
Include=input.inf
Needs=HID_Inst.NT.Services
AddService = DV_Usb,,DV_Usb_Driver_Service_Inst

[DV_Usb_Driver_Service_Inst]
DisplayName     = "Digital Vision SAW USB driver"
ServiceType     = %SERVICE_KERNEL_DRIVER%
StartType       = %SERVICE_DEMAND_START%
ErrorControl    = %SERVICE_ERROR_IGNORE%
ServiceBinary   = %12%\DV_Usb.sys
LoadOrderGroup  = extended base

;----------------------------------------------------------------------------------------------------
;
;   					String Section
;
;----------------------------------------------------------------------------------------------------

[Strings]
ClassNameNT             = "Mice and other pointing devices"

USBService		= "DV_Usb"
DV_USBSetupAppDir       = "DV_Usb"
DV_UninstallRegPath     = "Software\Microsoft\Windows\CurrentVersion\Uninstall\DV_USBTouchscreen"
DV_RunOnceRegPath       = "Software\Microsoft\Windows\CurrentVersion\RunOnce"
DV_RunOnceSetupRegPath  = "Software\Microsoft\Windows\CurrentVersion\RunOnce\Setup"
DV_USBUninstallDescrpt  = "Digital Vision SAW USB Drivers for W2k/XP"
HelpPath		= "Software\Microsoft\Windows\Help"

DV_Touch                = "Digital Vision Ltd."
DV_Mfg                  = "Digital Vision Ltd."
DV_USB_PID_0001         = "Digital Vision SAW USB Controller"
DV_USB_PID_0002         = "Digital Vision SAW USB Controller_"

SPSVCINST_TAGTOFRONT    = 0x00000001
SPSVCINST_ASSOCSERVICE  = 0x00000002
SERVICE_KERNEL_DRIVER   = 1
SERVICE_BOOT_START      = 0
SERVICE_SYSTEM_START    = 1
SERVICE_AUTO_START      = 2
SERVICE_DEMAND_START    = 3
SERVICE_ERROR_NORMAL    = 1
SERVICE_ERROR_IGNORE    = 0
REG_EXPAND_SZ           = 0x00020000
REG_DWORD               = 0x00010001
REG_SZ                  = 0x00000000

