;===============================================================================================================
;
;  WARNING: DO NOT EDIT THIS FILE!IT IS IMPORTANT!
;
;  GenTouch.Inf
;  INF file for PnP touchscreen serial driver.
;
;  Version 3.0.0
;
;  Copyright (c)2001, General Touch Technology Co., Ltd. All rights reserved.
;
;===============================================================================================================

[Version]
Signature="$Windows NT$"
Provider=%GEN%
ClassGUID={4D36E96F-E325-11CE-BFC1-08002BE10318}
Class=Mouse
CatalogFile=gentouch.cat
DriverVer=12/24/2002,5.1.2600.0		; Added ",5.1.2600.0" as required by XP!!

[SourceDisksNames]
1987=%DiskId1%,,

[SourceDisksFiles]
GenTouch.sys = 1987
GenCalib.EXE = 1987
GenPanel.Cpl = 1987
GenHelp.Hlp  = 1987
GenCoInst.dll = 1987

;---------------------------------------
;	Destination directory for file copy
;---------------------------------------

[DestinationDirs]
DefaultDestDir   		= 12
GENNT.Drv.CopyFiles		= 12                 ;  driver
GENNT.Cpl.CopyFiles		= 11		     ;  control panel,calibration apps
GENNT.Hlp.CopyFiles		= 18		     ;  context sensitive help files
GENNT.CoInst.CopyFiles		= 11		     ;  device co-installer

;---------------------------
;	Driver information
;---------------------------

[Manufacturer]
%GEN%   = Gen2K.Mfg,NTx86.5.1

[Gen2K.Mfg]
%Gen.DeviceDesc0%= GenNT_Install,SERENUM\GTT5041

[Gen2K.Mfg.NTx86.5.1]
%Gen.DeviceDesc0%= GenXP_Install,SERENUM\GTT5041

;----------------------------------------------------------------------------------------------------
;
;				    NT Serial installation section
;
;----------------------------------------------------------------------------------------------------

[GenNT_Install]
DriverVer=12/24/2002,5.00.2195

; Copy the driver over
CopyFiles=GENNT.Drv.CopyFiles,GENNT.Cpl.CopyFiles,GENNT.Hlp.CopyFiles
AddReg=GENNT.AddReg

[GenNT_Install.HW]
AddReg = GenNT_Install.HW.AddReg

[GenNT_Install.CoInstallers]
CopyFiles = GENNT.CoInst.CopyFiles
AddReg = GenNT_Install.CoInstallers_AddReg

[GenNT_Install.CoInstallers_AddReg]
HKR,,CoInstallers32,%REG_MULTI_SZ%,"GenCoInst.dll,GenTouchCoInstaller"

[GenNT_Install.HW.AddReg]
HKR,,"XLow",0x00010001, 0
HKR,,"YLow",0x00010001, 0
HKR,,"XHigh",0x00010001, 0x1000
HKR,,"YHigh",0x00010001, 0x1000
HKR,,"SwapXY",0x00010001, 0

[GenNT_Install.Services]
AddService = GenTouch, 0x00000002, GenTouch_Service_Inst, GenTouch_EventLog_Inst

;----------------------------------------------------------------------------------------------------
;
;				  XP Serial installation section
;
;----------------------------------------------------------------------------------------------------

[GenXP_Install]
DriverVer=12/24/2002,5.1.2600.0		  ;	Added as required by XP!!

; Copy the driver over
CopyFiles=GENNT.Drv.CopyFiles,GENNT.Cpl.CopyFiles,GENNT.Hlp.CopyFiles
AddReg=GENNT.AddReg

[GenXP_Install.HW]
AddReg = GenXP_Install.HW.AddReg

[GenXP_Install.CoInstallers]
CopyFiles = GENNT.CoInst.CopyFiles
AddReg = GenXP_Install.CoInstallers_AddReg

[GenXP_Install.CoInstallers_AddReg]
HKR,,CoInstallers32,%REG_MULTI_SZ%,"GenCoInst.dll,GenTouchCoInstaller"

[GenXP_Install.HW.AddReg]
HKR,,"XLow",0x00010001, 0
HKR,,"YLow",0x00010001, 0
HKR,,"XHigh",0x00010001, 0x1000
HKR,,"YHigh",0x00010001, 0x1000
HKR,,"SwapXY",0x00010001, 0

[GenXP_Install.Services]
AddService = GenTouch, 0x00000002 , GenTouch_Service_Inst, GenTouch_EventLog_Inst

[GENNT.AddReg]

;
;	Add GenTouch to Run key.
;
HKLM,%RunRegPath%, GenTouch, %REG_SZ%, "rundll32.exe %11%\GenPanel.Cpl,AutoCalibration"

;
;	Add help path for our help file to the registry.
;
HKLM, %HelpPath%, GenHelp.hlp, %REG_SZ%, "%18%"

HKLM, System\Currentcontrolset\Services\%TouchService%\Parameters, MouseMode, 0x00010001, 3
HKLM, System\Currentcontrolset\Services\%TouchService%\Parameters, ButtonMode, 0x00010001, 0
HKLM, System\Currentcontrolset\Services\%TouchService%\Parameters, DragDelay, 0x00010001, 2
HKLM, System\Currentcontrolset\Services\%TouchService%\Parameters, BeepMode, 0x00010001, 2
HKLM, System\Currentcontrolset\Services\%TouchService%\Parameters, BeepFreq, 0x00010001, 0x3e8
HKLM, System\Currentcontrolset\Services\%TouchService%\Parameters, BeepTime, 0x00010001, 0x20
HKLM, System\Currentcontrolset\Services\%TouchService%\Parameters, DblClickRegion, 0x00010001, 0x19
HKLM, System\Currentcontrolset\Services\%TouchService%\Parameters, AutoAlign, 0x00010001, 0x1
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\Mouclass\Parameters, MaximumPortsServiced, %REG_DWORD%, 0x03

;-----------------------
;	File sections
;-----------------------

[GenNT.Drv.CopyFiles]
GenTouch.sys

[GenNT.Cpl.CopyFiles]
GenCalib.exe
GenPanel.Cpl

[GENNT.Hlp.CopyFiles]
GenHelp.hlp

[GENNT.CoInst.CopyFiles]
GenCoInst.dll

;-----------------------------------
;	Service Installation
;-----------------------------------

[GenTouch_Service_Inst]
DisplayName			= %GenTouch.SvcDesc%
ServiceType			= 1                  	; SERVICE_KERNEL_DRIVER
StartType			= 3                  	; SERVICE_DEMAND_START
ErrorControl			= 1                  	; SERVICE_ERROR_NORMAL
ServiceBinary			= %12%\GenTouch.sys
LoadOrderGroup			= PointerPort

[GenTouch_EventLog_Inst]
AddReg = GenTouch_EventLog_AddReg

[GenTouch_EventLog_AddReg]
HKR,,EventMessageFile,0x00020000,"%SystemRoot%\System32\IoLogMsg.dll;%SystemRoot%\System32\drivers\GenTouch.sys"
HKR,,TypesSupported,0x00010001,7

;-------------------------------
;	String definition
;-------------------------------

[Strings]

;-------------------------
; 	Non-Localizable Strings
;-------------------------

REG_SZ         = 0x00000000
REG_MULTI_SZ   = 0x00010000
REG_EXPAND_SZ  = 0x00020000
REG_BINARY     = 0x00000001
REG_DWORD      = 0x00010001
SERVICEROOT    = "System\CurrentControlSet\Services"

;-------------------------
; 	Localizable Strings
;-------------------------

GEN.DeviceDesc0 = "GeneralTouch Touchscreen serial interface"
DiskId1 = "Touchscreen driver Setup Disk #1 (Mouse)"
GEN = "General Touch Technology Co., Ltd."
UninstallRegPath	= "Software\Microsoft\Windows\CurrentVersion\Uninstall\GenTouchscreen"
UninstallDescrpt	= "GeneralTouch RS232,AcousticWave Touchscreen"
RunRegPath		= "Software\Microsoft\Windows\CurrentVersion\Run"
RunOncePath		= "Software\Microsoft\Windows\CurrentVersion\RunOnce"
HelpPath		= "Software\Microsoft\Windows\Help"
TouchService		= "GenTouch"
GenTouch.SvcDesc	= "PnP Touchscreen driver"

;======================================================================================================================
;
;
;	 	 Copyright (c) 1998,2002, General Touch Technology Co., Ltd. All rights reserved.	
;
;					
;======================================================================================================================

