;=======================================================================================================================
;
;  TOPUsb.INF
;
;  Version 1.0
;
;  INF file for TOPTouch TouchSystems USB Tool.
;
;  Copyright (c) 2000 Microsoft Corporation. 
;  Copyright (c) 2004 JingGe Computer Science&Technology co.,Ltd.
;
;=======================================================================================================================

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

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

[SourceDisksFiles]
TOPUsb.sys   = 21,,18736
TOPtouch.cpl = 21,,53248
TOPVA.exe    = 21,,32768
Setup.Exe    = 21,,81920
UnInst.Exe   = 21,,40960
ReadMe.Txt   = 21,,7947
TOPUsb.Inf   = 21,,8747

[DestinationDirs]
DefaultDestDir              = 12                    	; LDID_IOS

TOPUsbDrvCopy               = 10,System32\drivers   	; LDID_DRIVERS
TOPCPLCopy                  = 11                    	; LDID_SYS
TOPSetupCopy                = 10,%TOPUsbSetupAppDir%   	; Windows\TOPUsb
TOPInfCopy		    = 10,INF                    ; Windows\INF

TOPUsbDrvCopy.NT            = 10,System32\drivers   	; LDID_DRIVERS
TOPCPLCopy.NT               = 11                    	; LDID_SYS
TOPSetupCopy.NT             = 10,%TOPUsbSetupAppDir%   	; Windows\TOPUsb
TOPNTDllCopy.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]
%TOPMfg%  = TOPMfg               ;  TOPTouch Electrics Co.,Ltd.

[TOPMfg]
%TOPUsb_PID_0001%=TOPUsb.Install, USB\VID_0DF9&PID_0001

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

[TOPUsb.Install]
CopyFiles=TOPUsbDrvCopy,TOPCPLCopy,TOPSetupCopy,TOPInfCopy
AddReg=TOPUsb.AddReg,TOPUsb_Absolute.AddReg
PerUserInstall = msmouse.pui

[TOPUsbDrvCopy]
hidclass.Sys
hidparse.Sys
hidusb.Sys
TOPUsb.sys

[TOPCPLCopy]
TOPtouch.cpl
TOPVA.exe

[TOPInfCopy]
TOPUsb.inf

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

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

[TOPUsb_Absolute.AddReg]
HKLM,%TOPUninstallRegPath%,"DisplayName",,%TOPUsbUninstallDescrpt%
HKLM,%TOPUninstallRegPath%,"UninstallString",,"%10%\%TOPUsbSetupAppDir%\UnInst.Exe"
HKLM,%TOPRootRegPath98%,TOPpMode,%REG_DWORD%,2
HKLM,%TOPRootRegPath98%,TOPpFreq,%REG_DWORD%,0x03e8
HKLM,%TOPRootRegPath98%,TOPpTime,%REG_DWORD%,0x0020
HKLM,%TOPRootRegPath98%,MouseMode,%REG_DWORD%,0x03
HKLM,%TOPRootRegPath98%,DragDelay,%REG_DWORD%,0
HKLM,%TOPRootRegPath98%,ButtonMode,%REG_DWORD%, 0
HKLM,%TOPRootRegPath98%,XLow,%REG_DWORD%, 0
HKLM,%TOPRootRegPath98%,YLow,%REG_DWORD%, 0
HKLM,%TOPRootRegPath98%,XHigh,%REG_DWORD%, 0x1000
HKLM,%TOPRootRegPath98%,YHigh,%REG_DWORD%, 0x1000
HKLM,%TOPRootRegPath98%,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"

[TOPUsbPerUser]
AddReg = TOPUsb_Absolute.AddReg

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

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

[TOPUsb.Install.NT]
Include=input.inf
Needs=HID_Inst.NT
Copyfiles = TOPUsbDrvCopy.NT, TOPCPLCopy.NT, TOPSetupCopy.NT
AddReg = TOPUsb.Install.AddReg.NT
DriverVer=06/28/2004,1.00.21
Include=msmouse.inf
Needs=HIDMouse

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

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

[TOPUsb.Install.AddReg.NT]
HKLM,%TOPUninstallRegPath%,"DisplayName",,%TOPUSBUninstallDescrpt%
HKLM,%TOPUninstallRegPath%,"UninstallString",,"%10%\%TOPUSBSetupAppDir%\UnInst.Exe"
HKLM,SYSTEM\CurrentControlSet\Services\Mouclass\Parameters, ConnectMultiplePorts, %REG_DWORD%, 0x00
HKLM,%TOPRootRegPathNT%,TOPpMode,%REG_DWORD%,0x2
HKLM,%TOPRootRegPathNT%,TOPpFreq,%REG_DWORD%,0x03e8
HKLM,%TOPRootRegPathNT%,TOPpTime,%REG_DWORD%,0x0020
HKLM,%TOPRootRegPathNT%,MouseMode,%REG_DWORD%,0x03
HKLM,%TOPRootRegPathNT%,ButtonMode,%REG_DWORD%, 0
HKLM,%TOPRootRegPathNT%,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"

[TOPUsbDrvCopy.NT]
TOPUsb.sys

[TOPCPLCopy.NT]
TOPtouch.cpl
TOPVA.exe

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

[TOPNTDllCopy.NT]
hid.dll

[TOPUsb.Install.NT.Services]
AddService = HidUsb,%SPSVCINST_ASSOCSERVICE%,HID_Service_Inst
AddService = TOPUsb,,TOPUsb_Driver_Service_Inst

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

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

TOPUSBSetupAppDir       = "TOPUsb"
TOPUninstallRegPath     = "Software\Microsoft\Windows\CurrentVersion\Uninstall\TOPTouch"
TOPRunOnceRegPath       = "Software\Microsoft\Windows\CurrentVersion\RunOnce"
TOPRunOnceSetupRegPath  = "Software\Microsoft\Windows\CurrentVersion\RunOnce\Setup"
TOPRootRegPath98        = "System\CurrentControlSet\Services\Class\ConTouchscreen\Parameters"
TOPRootRegPathNT        = "System\Currentcontrolset\Services\TOPUsb\Parameters"
TOPUSBUninstallDescrpt  = "TOPTouch TouchSystems USB Tool"

TOPTouch                = "TOPTouch Electrics Co.,Ltd."
TOPMfg                  = "TOPTouch Electrics Co.,Ltd."
TOPUSB_PID_0001         = "TOPTouch 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

