;=======================================================================================================================
;
;  DV_Usb.INF
;
;  Version 1.0
;
;  INF file for Digital Vision SAW USB Controller.
;
;  Copyright (c) 2000 Microsoft Corporation. 
;  Copyright (c) 2005 Digital Vision Ltd.
;
;=======================================================================================================================

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

[SourceDisksNames]
21="Digital Vision SAW driver Disk",,

[SourceDisksFiles]
DV_Usb.sys   = 21,,18736
DV_Touch.cpl = 21,,53248
DV_VA.exe    = 21,,32768
Setup.Exe    = 21,,81920
UnInst.Exe   = 21,,40960
ReadMe.Txt   = 21,,7947
DV_Usb.Inf   = 21,,8747

[DestinationDirs]
DefaultDestDir              = 12                    	; LDID_IOS

DV_UsbDrvCopy               = 10,System32\drivers   	; LDID_DRIVERS
DV_CPLCopy                  = 11                    	; LDID_SYS
DV_SetupCopy                = 10,%DV_UsbSetupAppDir%   	; Windows\DV_Usb
DV_InfCopy		    = 10,INF                    ; Windows\INF

DV_UsbDrvCopy.NT            = 10,System32\drivers   	; LDID_DRIVERS
DV_CPLCopy.NT               = 11                    	; LDID_SYS
DV_SetupCopy.NT             = 10,%DV_UsbSetupAppDir%   	; Windows\DV_Usb
DV_NTDllCopy.NT             = 11                    	; LDID_SYS

;======================================================================================
;
;   Win98 Mouse class install sections
;
;======================================================================================

[ClassInstall]
Addreg=Class.AddReg

[Class.AddReg]
HKR,,,,%ClassName98%
HKR,,Installer,,"SetupX.Dll, Mouse_ClassInstaller"
HKR,,Icon,,"-1"

;======================================================================================
;
;   WinNT mouse class install sections
;
;======================================================================================

[ClassInstall32.NT]
AddReg=Class32.AddReg

[Class32.AddReg]
HKR,,,,%ClassNameNT%
HKR,,Icon,,"-2"
HKR,,Installer32,,"SysSetup.Dll,MouseClassInstaller"
HKR,,NoInstallClass,,"1"
HKR,,TroubleShooter-0,,"tshoot.chm,hdw_mouse.htm"

;======================================================================================
;
;   					Manufacturer Section
;
;======================================================================================

[Manufacturer]
%DV_Mfg%  = DV_Mfg               ;  Digital Vision Ltd.

[DV_Mfg]
%DV_Usb_PID_0001%=DV_Usb.Install, USB\VID_0DF9&PID_0001

;======================================================================================
;
;   			  Windows 98 Digital Vision SAW USB Controller Install Sections
;
;======================================================================================

[DV_Usb.Install]
CopyFiles=DV_UsbDrvCopy,DV_CPLCopy,DV_SetupCopy,DV_InfCopy
AddReg=DV_Usb.AddReg,DV_Usb_Absolute.AddReg
PerUserInstall = msmouse.pui

[DV_UsbDrvCopy]
hidclass.Sys
hidparse.Sys
hidusb.Sys
DV_Usb.sys

[DV_CPLCopy]
DV_touch.cpl
DV_VA.exe

[DV_InfCopy]
DV_Usb.inf

[DV_SetupCopy]
UnInst.exe
Setup.exe
ReadMe.txt

[DV_Usb.AddReg]
HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,,"DV_Usb.sys,HidUsb.Sys"

[DV_Usb_Absolute.AddReg]
HKLM,%DV_UninstallRegPath%,"DisplayName",,%DV_UsbUninstallDescrpt%
HKLM,%DV_UninstallRegPath%,"UninstallString",,"%10%\%DV_UsbSetupAppDir%\UnInst.Exe"
HKLM,%DV_RootRegPath98%,BeepMode,%REG_DWORD%,2
HKLM,%DV_RootRegPath98%,BeepFreq,%REG_DWORD%,0x03e8
HKLM,%DV_RootRegPath98%,BeepTime,%REG_DWORD%,0x0020
HKLM,%DV_RootRegPath98%,MouseMode,%REG_DWORD%,0x03
HKLM,%DV_RootRegPath98%,DragDelay,%REG_DWORD%,0
HKLM,%DV_RootRegPath98%,ButtonMode,%REG_DWORD%, 0
HKLM,%DV_RootRegPath98%,XLow,%REG_DWORD%, 0
HKLM,%DV_RootRegPath98%,YLow,%REG_DWORD%, 0
HKLM,%DV_RootRegPath98%,XHigh,%REG_DWORD%, 0x1000
HKLM,%DV_RootRegPath98%,YHigh,%REG_DWORD%, 0x1000
HKLM,%DV_RootRegPath98%,SwapXY,%REG_DWORD%, 0
HKCU,"Control Panel\Mouse",DoubleClickHeight,%REG_SZ%,"25"
HKCU,"Control Panel\Mouse",DoubleClickWidth,%REG_SZ%,"25"
HKCU,"Control Panel\Mouse",DoubleClickSpeed,%REG_SZ%,"800"

[DV_UsbPerUser]
AddReg = DV_Usb_Absolute.AddReg

[msmouse.pui]
GUID = "DV_UsbPerUser"
DisplayName = %PUI_DESC_MSMOUSE%
Version = %PUI_VERSION%
IsInstalled = 1
StubPath = "rundll.exe %11%\setupx.dll,InstallHinfSection DV_UsbPerUser 64 %17%\DV_Usb.inf"

;===========================================================================================
;
;                        Windows 2000/XP Digital Vision SAW USB Controller Install Sections
;
;===========================================================================================

[DV_Usb.Install.NT]
Include=input.inf
Needs=HID_Inst.NT
Copyfiles = DV_UsbDrvCopy.NT, DV_CPLCopy.NT, DV_SetupCopy.NT
AddReg = DV_Usb.Install.AddReg.NT
DriverVer=06/28/2004,1.00.21
Include=msmouse.inf
Needs=HIDMouse

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

[DV_Usb.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_UninstallRegPath%,"DisplayName",,%DV_USBUninstallDescrpt%
HKLM,%DV_UninstallRegPath%,"UninstallString",,"%10%\%DV_USBSetupAppDir%\UnInst.Exe"
HKLM,SYSTEM\CurrentControlSet\Services\Mouclass\Parameters, ConnectMultiplePorts, %REG_DWORD%, 0x00
HKLM,%DV_RootRegPathNT%,BeepMode,%REG_DWORD%,0x2
HKLM,%DV_RootRegPathNT%,BeepFreq,%REG_DWORD%,0x03e8
HKLM,%DV_RootRegPathNT%,BeepTime,%REG_DWORD%,0x0020
HKLM,%DV_RootRegPathNT%,MouseMode,%REG_DWORD%,0x03
HKLM,%DV_RootRegPathNT%,ButtonMode,%REG_DWORD%, 0
HKLM,%DV_RootRegPathNT%,DragDelay,%REG_DWORD%,0
HKCU,"Control Panel\Mouse",DoubleClickHeight,%REG_SZ%,"25"
HKCU,"Control Panel\Mouse",DoubleClickWidth,%REG_SZ%,"25"
HKCU,"Control Panel\Mouse",DoubleClickSpeed,%REG_SZ%,"800"

[DV_UsbDrvCopy.NT]
DV_Usb.sys

[DV_CPLCopy.NT]
DV_touch.cpl
DV_VA.exe

[DV_SetupCopy.NT]
UnInst.exe
Setup.exe
ReadMe.txt

[DV_NTDllCopy.NT]
hid.dll

[DV_Usb.Install.NT.Services]
AddService = HidUsb,%SPSVCINST_ASSOCSERVICE%,HID_Service_Inst
AddService = DV_Usb,,DV_Usb_Driver_Service_Inst

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

[HID_Service_Inst]
DisplayName    = "Usb HID_compliant device mini driver"
ServiceType    = %SERVICE_KERNEL_DRIVER%
StartType      = %SERVICE_AUTO_START%
ErrorControl   = %SERVICE_ERROR_IGNORE%
ServiceBinary  = %12%\hidusb.sys
LoadOrderGroup = extended base

;=============================================================================================
;
;   					String Section
;
;=============================================================================================

[Strings]
PUI_VERSION             = "4,10,1,1"
PUI_DESC_MSMOUSE        = "Digital Vision SAW USB Touchscreen PUI"

ClassNameNT             = "Mice and other pointing devices"
ClassName98             = "Touchmonitor"
NoMouse98               = "(No mouse)"

DV_USBSetupAppDir       = "DV_Usb"
DV_UninstallRegPath     = "Software\Microsoft\Windows\CurrentVersion\Uninstall\DV_Touch"
DV_RunOnceRegPath       = "Software\Microsoft\Windows\CurrentVersion\RunOnce"
DV_RunOnceSetupRegPath  = "Software\Microsoft\Windows\CurrentVersion\RunOnce\Setup"
DV_RootRegPath98        = "System\CurrentControlSet\Services\Class\DV_Touchscreen\Parameters"
DV_RootRegPathNT        = "System\Currentcontrolset\Services\DV_Usb\Parameters"
DV_USBUninstallDescrpt  = "Digital Vision SAW USB Controller Tool"

DV_Touch                = "Digital Vision Ltd."
DV_Mfg                  = "Digital Vision Ltd."
DV_USB_PID_0001         = "Digital Vision SAW USB TouchMonitor"

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

