;=======================================================================================================================
;
;  SAWUsb.INF
;
;  Version 1.0
;
;  INF file for SAWTouch TouchSystems USB Tool.
;
;  Copyright (c) 2000 Microsoft Corporation. 
;  
;
;=======================================================================================================================

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

[SourceDisksNames]
21="SAWTouch TouchSystems driver Disk",,

[SourceDisksFiles]
SAWUsb.sys   = 21,,18736
SAWtouch.cpl = 21,,53248
SAWVA.exe    = 21,,32768
Setup.Exe    = 21,,81920
UnInst.Exe   = 21,,40960
ReadMe.Txt   = 21,,7947
SAWUsb.Inf   = 21,,8747

[DestinationDirs]
DefaultDestDir              = 12                    	; LDID_IOS

SAWUsbDrvCopy               = 10,System32\drivers   	; LDID_DRIVERS
SAWCPLCopy                  = 11                    	; LDID_SYS
SAWSetupCopy                = 10,%SAWUsbSetupAppDir%   	; Windows\SAWUsb
SAWInfCopy		    = 10,INF                    ; Windows\INF

SAWUsbDrvCopy.NT            = 10,System32\drivers   	; LDID_DRIVERS
SAWCPLCopy.NT               = 11                    	; LDID_SYS
SAWSetupCopy.NT             = 10,%SAWUsbSetupAppDir%   	; Windows\SAWUsb
SAWNTDllCopy.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]
%SAWMfg%  = SAWMfg               ;  

[SAWMfg]
%SAWUsb_PID_0001%=SAWUsb.Install, USB\VID_0DF9&PID_0001

;======================================================================================
;
;   			  Windows 98 SAWTouch USB Tool Install Sections
;
;======================================================================================

[SAWUsb.Install]
CopyFiles=SAWUsbDrvCopy,SAWCPLCopy,SAWSetupCopy,SAWInfCopy
AddReg=SAWUsb.AddReg,SAWUsb_Absolute.AddReg
PerUserInstall = msmouse.pui

[SAWUsbDrvCopy]
hidclass.Sys
hidparse.Sys
hidusb.Sys
SAWUsb.sys

[SAWCPLCopy]
SAWtouch.cpl
SAWVA.exe

[SAWInfCopy]
SAWUsb.inf

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

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

[SAWUsb_Absolute.AddReg]
HKLM,%SAWUninstallRegPath%,"DisplayName",,%SAWUsbUninstallDescrpt%
HKLM,%SAWUninstallRegPath%,"UninstallString",,"%10%\%SAWUsbSetupAppDir%\UnInst.Exe"
HKLM,%SAWRootRegPath98%,SAWpMode,%REG_DWORD%,2
HKLM,%SAWRootRegPath98%,SAWpFreq,%REG_DWORD%,0x03e8
HKLM,%SAWRootRegPath98%,SAWpTime,%REG_DWORD%,0x0020
HKLM,%SAWRootRegPath98%,MouseMode,%REG_DWORD%,0x03
HKLM,%SAWRootRegPath98%,DragDelay,%REG_DWORD%,0
HKLM,%SAWRootRegPath98%,ButtonMode,%REG_DWORD%, 0
HKLM,%SAWRootRegPath98%,XLow,%REG_DWORD%, 0
HKLM,%SAWRootRegPath98%,YLow,%REG_DWORD%, 0
HKLM,%SAWRootRegPath98%,XHigh,%REG_DWORD%, 0x1000
HKLM,%SAWRootRegPath98%,YHigh,%REG_DWORD%, 0x1000
HKLM,%SAWRootRegPath98%,SAWpXY,%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"

[SAWUsbPerUser]
AddReg = SAWUsb_Absolute.AddReg

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

;===========================================================================================
;
;                        Windows 2000/XP SAWTouch TouchSystems USB Install Sections
;
;===========================================================================================

[SAWUsb.Install.NT]
Include=input.inf
Needs=HID_Inst.NT
Copyfiles = SAWUsbDrvCopy.NT, SAWCPLCopy.NT, SAWSetupCopy.NT
AddReg = SAWUsb.Install.AddReg.NT
DriverVer=06/28/2004,1.00.21
Include=msmouse.inf
Needs=HIDMouse

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

[SAWUsb.Install.AddReg.NT]
HKR,,"LowerFilters",0x00010000,"SAWUsb"
HKR,,"XLow",0x00010001, 0
HKR,,"YLow",0x00010001, 0
HKR,,"XHigh",0x00010001, 0x1000
HKR,,"YHigh",0x00010001, 0x1000
HKR,,"SAWpXY",0x00010001, 0

[SAWUsb.Install.AddReg.NT]
HKLM,%SAWUninstallRegPath%,"DisplayName",,%SAWUSBUninstallDescrpt%
HKLM,%SAWUninstallRegPath%,"UninstallString",,"%10%\%SAWUSBSetupAppDir%\UnInst.Exe"
HKLM,SYSTEM\CurrentControlSet\Services\Mouclass\Parameters, ConnectMultiplePorts, %REG_DWORD%, 0x00
HKLM,%SAWRootRegPathNT%,SAWpMode,%REG_DWORD%,0x2
HKLM,%SAWRootRegPathNT%,SAWpFreq,%REG_DWORD%,0x03e8
HKLM,%SAWRootRegPathNT%,SAWpTime,%REG_DWORD%,0x0020
HKLM,%SAWRootRegPathNT%,MouseMode,%REG_DWORD%,0x03
HKLM,%SAWRootRegPathNT%,ButtonMode,%REG_DWORD%, 0
HKLM,%SAWRootRegPathNT%,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"

[SAWUsbDrvCopy.NT]
SAWUsb.sys

[SAWCPLCopy.NT]
SAWtouch.cpl
SAWVA.exe

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

[SAWNTDllCopy.NT]
hid.dll

[SAWUsb.Install.NT.Services]
AddService = HidUsb,%SPSVCINST_ASSOCSERVICE%,HID_Service_Inst
AddService = SAWUsb,,SAWUsb_Driver_Service_Inst

[SAWUsb_Driver_Service_Inst]
DisplayName     = "SAWTouch TouchSystems USB filter driver"
ServiceType     = %SERVICE_KERNEL_DRIVER%
StartType       = %SERVICE_DEMAND_START%
ErrorControl    = %SERVICE_ERROR_IGNORE%
ServiceBinary   = %12%\SAWUsb.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        = "SAWTouch USB Touchscreen PUI"

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

SAWUSBSetupAppDir       = "SAWUsb"
SAWUninstallRegPath     = "Software\Microsoft\Windows\CurrentVersion\Uninstall\SAWTouch"
SAWRunOnceRegPath       = "Software\Microsoft\Windows\CurrentVersion\RunOnce"
SAWRunOnceSetupRegPath  = "Software\Microsoft\Windows\CurrentVersion\RunOnce\Setup"
SAWRootRegPath98        = "System\CurrentControlSet\Services\Class\ConTouchscreen\Parameters"
SAWRootRegPathNT        = "System\Currentcontrolset\Services\SAWUsb\Parameters"
SAWUSBUninstallDescrpt  = "SAWTouch TouchSystems USB Tool"

SAWTouch                = " "
SAWMfg                  = " "
SAWUSB_PID_0001         = "SAWTouch TouchSystems 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

