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

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

[SourceDisksNames]
1987=%DiskId1%,,

[SourceDisksFiles]
GenStub.sys  = 1987,,7054
GenTouch.sys = 1987,,17730
GenCalib.EXE = 1987,,32768
GenTouch.Cpl = 1987,,57344
Setup.EXE    = 1987,,81920
UnInst.EXE   = 1987,,40960
ReadMe.Txt   = 1987,,6468
Write.EXE    = 1987,,28672
Rbutton.EXE  = 1987,,32768
GenHelp.chm  = 1987,,13725

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

[DestinationDirs]
DefaultDestDir   		= 12
GENNT.Drv.CopyFiles		= 12                 ; driver
GENNT.Cpl.CopyFiles		= 11		     ; control panel,calibration apps
GENNT.Setup.CopyFiles           = 11
GENNT.Other.CopyFiles		= 10,GenTouchscreen  ; other apps

;---------------------------
;	Driver information
;---------------------------
[Manufacturer]
%GEN%   = Gen2K.Mfg,NTx86.5.1

[Gen2K.Mfg]
%Gen.DeviceDesc0%= GenNT_Install,GENNTSerial

[Gen2K.Mfg.NTx86.5.1]
%Gen.DeviceDesc0%= GenXP_Install,GENNTSerial

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

[GenNT_Install]
DriverVer=07/12/2005,2.2.1.0              ;08/22/2001,2.1.1.0
; Copy the driver over
CopyFiles=GENNT.Drv.CopyFiles,GENNT.Cpl.CopyFiles,GENNT.Setup.CopyFiles,GENNT.Other.CopyFiles
AddReg=GENNT.AddReg

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

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

[GenXP_Install]
DriverVer=07/12/2005,2.2.1.0   		  ;Added as required by XP!!
; Copy the driver over
CopyFiles=GENNT.Drv.CopyFiles,GENNT.Cpl.CopyFiles,GENNT.Setup.CopyFiles,GENNT.Other.CopyFiles
AddReg=GENNT.AddReg

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

[GENNT.AddReg]
HKLM,%UninstallRegPath%,"DisplayName",,%UninstallDescrpt%
HKLM,%UninstallRegPath%,"UninstallString",,"%11%\UnInst.Exe"
HKLM,System\Currentcontrolset\Services\%TouchService%\Parameters,	      Port,	0x00010001, 2
HKLM,System\Currentcontrolset\Services\%TouchService%\Parameters,	    MouseMode,	0x00010001, 3
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,	      XLow,	0x00010001, 0
HKLM,System\Currentcontrolset\Services\%TouchService%\Parameters,	      YLow,	0x00010001, 0
HKLM,System\Currentcontrolset\Services\%TouchService%\Parameters,	     XHigh,	0x00010001, 0x1000
HKLM,System\Currentcontrolset\Services\%TouchService%\Parameters,	     YHigh,	0x00010001, 0x1000
HKLM,System\Currentcontrolset\Services\%TouchService%\Parameters,	DblClickRegion,	0x00010001, 0x19
HKLM,System\Currentcontrolset\Services\%TouchService%\Parameters,	SwapXY,		0x00010001, 0
;HKLM,System\Currentcontrolset\Services\%TouchService%\Parameters,	MultiMonitors,	0x00010001, 0
HKLM,System\Currentcontrolset\Services\%TouchService%\Parameters,	    XMin,	0x00010001, 0
HKLM,System\Currentcontrolset\Services\%TouchService%\Parameters,	    XRange,	0x00010001, 0xFFFF
HKLM,System\Currentcontrolset\Services\%TouchService%\Parameters,	    YMin,	0x00010001, 0
HKLM,System\Currentcontrolset\Services\%TouchService%\Parameters,	    YRange,	0x00010001, 0xFFFF
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]
Genstub.sys
GenTouch.sys

[GenNT.Cpl.CopyFiles]
GenCalib.exe
GenTouch.cpl

[GenNT.Setup.CopyFiles]
UnInst.exe

[GenNT.Other.CopyFiles]
Readme.txt
Write.exe
GenHelp.Chm
RButton.exe
Setup.exe

;-----------------------------------
;	Service Installation
;-----------------------------------
[Genstub_Service_Inst]
DisplayName    			= %Genstub.SvcDesc%
ServiceType    			= 1                  ; SERVICE_KERNEL_DRIVER
StartType      			= 1                  ; SERVICE_SYSTEM_START
ErrorControl   			= 1                  ; SERVICE_ERROR_NORMAL
LoadOrderGroup 			= Pointer Port
ServiceBinary  			= %12%\Genstub.sys

[GenTouch_Service_Inst]
DisplayName			= %GenTouch.SvcDesc%
ServiceType			= 1                  ; SERVICE_KERNEL_DRIVER
StartType			= 2                  ; SERVICE_AUTO_START
ErrorControl			= 1                  ; SERVICE_ERROR_NORMAL
ServiceBinary			= %12%\GenTouch.sys
LoadOrderGroup			= GeneralTouch

[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 Co. Ltd."
UninstallRegPath	= "Software\Microsoft\Windows\CurrentVersion\Uninstall\GenTouchscreen"
UninstallDescrpt	= "GeneralTouch RS232,AcousticWave Touchscreen"
RunRegPath		= "Software\Microsoft\Windows\CurrentVersion\Run"
TouchService		= "GenTouch"
GenTouch.SvcDesc	= "Touchscreen driver"
Genstub.SvcDesc		= "Touchscreen driver stub"

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

