;============================================================================
; Installation file (.inf) for Windows 2000/XP/Vista.
;
; All Rights Reserved, Copyright(C) ELANTECH Devices Corp. 2003-2007
;============================================================================

[Version]
Signature="$Windows NT$"
Provider=%Elantech%
ClassGUID={4D36E96F-E325-11CE-BFC1-08002BE10318}
Class=Mouse
CatalogFile=Ktp.cat
DriverVer=02/13/2007,5.0.3.13

[DestinationDirs]
DefaultDestDir = 12
KtpSys.CopyFiles = 12
KtpApp.CopyFiles = 16422, "Elantech"
CopyFiles_CoInstaller = 11 ; System directory

;========== Driver information ==========
[Manufacturer]
%Elantech%   = Elantech.Mfg

[Elantech.Mfg]
%Elantech.DeviceDesc0% = Ktp, *PNP0F13,*PNP0F0E,*PNP0F03,*PNP0F12,*PNP0F0B	; Hardware ID

[Ktp.AddReg]
HKCR,CLSID\{0066D4B3-8DE0-4D08-AA83-EDD50E2431F0},,0x00000000,CustomPropSheet
HKCR,CLSID\{0066D4B3-8DE0-4D08-AA83-EDD50E2431F0}\InProcServer32,ThreadingModel,0x00000000,Apartment

HKLM,%NameReg1%\%NameReg2%\%NameReg3%,,0x00000000,{0066D4B3-8DE0-4D08-AA83-EDD50E2431F0}

;===================== Default Section ====================
HKLM,%ServiceRoot%"\Elantech\Mouse\DEFAULT",Pg1_Rad,0x10001,1
HKLM,%ServiceRoot%"\Elantech\Mouse\DEFAULT",Pg3_Chk,0x10001,0
HKLM,%ServiceRoot%"\Elantech\Mouse\DEFAULT",Pg3_Cmb0,0x10001,0
HKLM,%ServiceRoot%"\Elantech\Mouse\DEFAULT",Pg3_Cmb1,0x10001,6
HKLM,%ServiceRoot%"\Elantech\Mouse\DEFAULT",Pg3_Cmb2,0x10001,1
HKLM,%ServiceRoot%"\Elantech\Mouse\DEFAULT",Pg3_CmbRun,0x00,***
HKLM,%ServiceRoot%"\Elantech\Mouse\DEFAULT",Pg3_Slid,0x10001,2
HKLM,%ServiceRoot%"\Elantech\Mouse\DEFAULT",Pg5_2Chk0,0x10001,0
HKLM,%ServiceRoot%"\Elantech\Mouse\DEFAULT",Pg5_2Chk1,0x10001,0
HKLM,%ServiceRoot%"\Elantech\Mouse\DEFAULT",Pg5_2Chk2,0x10001,1
HKLM,%ServiceRoot%"\Elantech\Mouse\DEFAULT",Pg5_2Chk3,0x10001,0
HKLM,%ServiceRoot%"\Elantech\Mouse\DEFAULT",Pg5_2Chk4,0x10001,0
HKLM,%ServiceRoot%"\Elantech\Mouse\DEFAULT",Pg5_2Rad0,0x10001,0
HKLM,%ServiceRoot%"\Elantech\Mouse\DEFAULT",Pg5_2Rad1,0x10001,1
HKLM,%ServiceRoot%"\Elantech\Mouse\DEFAULT",Pg5_2Slid0,0x10001,1
HKLM,%ServiceRoot%"\Elantech\Mouse\DEFAULT",Pg5_2Slid1,0x10001,122
HKLM,%ServiceRoot%"\Elantech\Mouse\DEFAULT",Pg5_2Slid2,0x10001,3
HKLM,%ServiceRoot%"\Elantech\Mouse\DEFAULT",Pg6_Chk0,0x10001,1
HKLM,%ServiceRoot%"\Elantech\Mouse\DEFAULT",Pg6_Chk1,0x10001,0
HKLM,%ServiceRoot%"\Elantech\Mouse\DEFAULT",Pg6_Slid,0x10001,1
HKLM,%ServiceRoot%"\Elantech\Mouse\DEFAULT",Pg6_1Slid,0x10001,1
HKLM,%ServiceRoot%"\Elantech\Mouse\DEFAULT",Pg8_Chk,0x10001,1
HKLM,%ServiceRoot%"\Elantech\Mouse\DEFAULT",Pg9_Chk,0x10001,0
HKLM,%ServiceRoot%"\Elantech\Mouse\DEFAULT",Pg9_Cmb0,0x10001,7
HKLM,%ServiceRoot%"\Elantech\Mouse\DEFAULT",Pg9_Cmb1,0x10001,7
HKLM,%ServiceRoot%"\Elantech\Mouse\DEFAULT",Pg9_Cmb2,0x10001,7
HKLM,%ServiceRoot%"\Elantech\Mouse\DEFAULT",Pg9_Cmb3,0x10001,7
HKLM,%ServiceRoot%"\Elantech\Mouse\DEFAULT",Pg9_CmbRun,0x00000000,****
HKLM,%ServiceRoot%"\Elantech\Mouse\DEFAULT",PgA_1Chk0,0x00010001,0
HKLM,%ServiceRoot%"\Elantech\Mouse\DEFAULT",PgA_1Chk1,0x00010001,0
HKLM,%ServiceRoot%"\Elantech\Mouse\DEFAULT",PgA_1Cmb,0x00010001,0
HKLM,%ServiceRoot%"\Elantech\Mouse\DEFAULT",PgA_1Slid0,0x00010001,1
HKLM,%ServiceRoot%"\Elantech\Mouse\DEFAULT",PgA_1Slid1,0x00010001,4
HKLM,%ServiceRoot%"\Elantech\Mouse\DEFAULT",PgA_2Rad,0x00010001,2
HKLM,%ServiceRoot%"\Elantech\Mouse\DEFAULT",PgC_Chk2,0x00010001,0
HKLM,%ServiceRoot%"\Elantech\Mouse\DEFAULT",PgC_Chk3,0x00010001,0
HKLM,%ServiceRoot%"\Elantech\Mouse\DEFAULT",PgC_Chk4,0x00010001,0
HKLM,%ServiceRoot%"\Elantech\Mouse\DEFAULT",PgC_Slid0,0x00010001,6
HKLM,%ServiceRoot%"\Elantech\Mouse\DEFAULT",PgC_Slid1,0x00010001,2
HKLM,%ServiceRoot%"\Elantech\Mouse\DEFAULT",PgC_Slid2,0x00010001,0
HKLM,%ServiceRoot%"\Elantech\Mouse\DEFAULT",PgR_Cmb,0x00010001,4
HKLM,%ServiceRoot%"\Elantech\Mouse\DEFAULT",PgR_CmbRun0,0x00000000,**********************
HKLM,%ServiceRoot%"\Elantech\Mouse\DEFAULT",PgR_CmbRun1,0x00000000,**********************
HKLM,%ServiceRoot%"\Elantech\Mouse\DEFAULT",PgR_CmbRun2,0x00000000,**********************
HKLM,%ServiceRoot%"\Elantech\Mouse\DEFAULT",PgR_CmbRun3,0x00000000,**********************
HKLM,%ServiceRoot%"\Elantech\Mouse\DEFAULT",PgR_CmbRun4,0x00000000,**********************
HKLM,%ServiceRoot%"\Elantech\Mouse\DEFAULT",PgR_CmbNo0,0x00000000,10*5*7*5*5*15*5*7*0*0*0*0*0*0*0*0*0*0*0*0*0*0
HKLM,%ServiceRoot%"\Elantech\Mouse\DEFAULT",PgR_CmbNo1,0x00000000,10*1*7*7*12*7*4*7*0*0*0*0*0*0*0*0*0*0*0*0*0*0*
HKLM,%ServiceRoot%"\Elantech\Mouse\DEFAULT",PgR_CmbNo2,0x00000000,10*11*7*8*11*6*16*7*0*0*0*0*0*0*0*0*0*0*0*0*0*0*
HKLM,%ServiceRoot%"\Elantech\Mouse\DEFAULT",PgR_CmbNo3,0x00000000,10*2*7*7*13*7*6*7*0*0*0*0*0*0*0*0*0*0*0*0*0*0*0*
HKLM,%ServiceRoot%"\Elantech\Mouse\DEFAULT",PgR_CmbNo4,0x00000000,10*14*7*9*14*4*17*7*0*0*0*0*0*0*0*0*0*0*0*0*0*0*
HKLM,%ServiceRoot%"\Elantech\Mouse\DEFAULT",MF_2,0x10001,6
HKLM,%ServiceRoot%"\Elantech\Mouse\DEFAULT",MF_3,0x10001,1
HKLM,%ServiceRoot%"\Elantech\Mouse\DEFAULT",MF_CmbRun,0x00,**

;====================== Save Section =======================
HKLM,%ServiceRoot%"\Elantech\Mouse\SAVE",Pg1_Rad,0x00010001,1
HKLM,%ServiceRoot%"\Elantech\Mouse\SAVE",Pg3_Chk,0x00010001,0
HKLM,%ServiceRoot%"\Elantech\Mouse\SAVE",Pg3_Cmb0,0x00010001,0
HKLM,%ServiceRoot%"\Elantech\Mouse\SAVE",Pg3_Cmb1,0x00010001,6
HKLM,%ServiceRoot%"\Elantech\Mouse\SAVE",Pg3_Cmb2,0x00010001,1
HKLM,%ServiceRoot%"\Elantech\Mouse\SAVE",Pg3_CmbRun,0x00000000,***
HKLM,%ServiceRoot%"\Elantech\Mouse\SAVE",Pg3_Slid,0x00010001,2
HKLM,%ServiceRoot%"\Elantech\Mouse\SAVE",Pg5_2Chk0,0x00010001,0
HKLM,%ServiceRoot%"\Elantech\Mouse\SAVE",Pg5_2Chk1,0x00010001,0
HKLM,%ServiceRoot%"\Elantech\Mouse\SAVE",Pg5_2Chk2,0x00010001,1
HKLM,%ServiceRoot%"\Elantech\Mouse\SAVE",Pg5_2Chk3,0x00010001,0
HKLM,%ServiceRoot%"\Elantech\Mouse\SAVE",Pg5_2Chk4,0x00010001,0
HKLM,%ServiceRoot%"\Elantech\Mouse\SAVE",Pg5_2Rad0,0x00010001,0
HKLM,%ServiceRoot%"\Elantech\Mouse\SAVE",Pg5_2Rad1,0x00010001,1
HKLM,%ServiceRoot%"\Elantech\Mouse\SAVE",Pg5_2Slid0,0x00010001,1
HKLM,%ServiceRoot%"\Elantech\Mouse\SAVE",Pg5_2Slid1,0x00010001,122
HKLM,%ServiceRoot%"\Elantech\Mouse\SAVE",Pg5_2Slid2,0x00010001,3
HKLM,%ServiceRoot%"\Elantech\Mouse\SAVE",Pg6_Chk0,0x00010001,1
HKLM,%ServiceRoot%"\Elantech\Mouse\SAVE",Pg6_Chk1,0x00010001,0
HKLM,%ServiceRoot%"\Elantech\Mouse\SAVE",Pg6_Slid,0x00010001,1
HKLM,%ServiceRoot%"\Elantech\Mouse\SAVE",Pg6_1Slid,0x00010001,1
HKLM,%ServiceRoot%"\Elantech\Mouse\SAVE",Pg8_Chk,0x00010001,1
HKLM,%ServiceRoot%"\Elantech\Mouse\SAVE",Pg9_Chk,0x00010001,0
HKLM,%ServiceRoot%"\Elantech\Mouse\SAVE",Pg9_Cmb0,0x00010001,7
HKLM,%ServiceRoot%"\Elantech\Mouse\SAVE",Pg9_Cmb1,0x00010001,7
HKLM,%ServiceRoot%"\Elantech\Mouse\SAVE",Pg9_Cmb2,0x00010001,7
HKLM,%ServiceRoot%"\Elantech\Mouse\SAVE",Pg9_Cmb3,0x00010001,7
HKLM,%ServiceRoot%"\Elantech\Mouse\SAVE",Pg9_CmbRun,0x00000000,****
HKLM,%ServiceRoot%"\Elantech\Mouse\SAVE",PgA_1Chk0,0x00010001,0
HKLM,%ServiceRoot%"\Elantech\Mouse\SAVE",PgA_1Chk1,0x00010001,0
HKLM,%ServiceRoot%"\Elantech\Mouse\SAVE",PgA_1Cmb,0x00010001,0
HKLM,%ServiceRoot%"\Elantech\Mouse\SAVE",PgA_1Slid0,0x00010001,1
HKLM,%ServiceRoot%"\Elantech\Mouse\SAVE",PgA_1Slid1,0x00010001,4
HKLM,%ServiceRoot%"\Elantech\Mouse\SAVE",PgA_2Rad,0x00010001,2
HKLM,%ServiceRoot%"\Elantech\Mouse\SAVE",PgC_Chk2,0x00010001,0
HKLM,%ServiceRoot%"\Elantech\Mouse\SAVE",PgC_Chk3,0x00010001,0
HKLM,%ServiceRoot%"\Elantech\Mouse\SAVE",PgC_Chk4,0x00010001,0
HKLM,%ServiceRoot%"\Elantech\Mouse\SAVE",PgC_Slid0,0x00010001,6
HKLM,%ServiceRoot%"\Elantech\Mouse\SAVE",PgC_Slid1,0x00010001,2
HKLM,%ServiceRoot%"\Elantech\Mouse\SAVE",PgC_Slid2,0x00010001,0
HKLM,%ServiceRoot%"\Elantech\Mouse\SAVE",PgR_Cmb,0x00010001,4
HKLM,%ServiceRoot%"\Elantech\Mouse\SAVE",PgR_CmbRun0,0x00000000,**********************
HKLM,%ServiceRoot%"\Elantech\Mouse\SAVE",PgR_CmbRun1,0x00000000,**********************
HKLM,%ServiceRoot%"\Elantech\Mouse\SAVE",PgR_CmbRun2,0x00000000,**********************
HKLM,%ServiceRoot%"\Elantech\Mouse\SAVE",PgR_CmbRun3,0x00000000,**********************
HKLM,%ServiceRoot%"\Elantech\Mouse\SAVE",PgR_CmbRun4,0x00000000,**********************
HKLM,%ServiceRoot%"\Elantech\Mouse\SAVE",PgR_CmbNo0,0x00000000,10*5*7*5*5*15*5*7*0*0*0*0*0*0*0*0*0*0*0*0*0*0
HKLM,%ServiceRoot%"\Elantech\Mouse\SAVE",PgR_CmbNo1,0x00000000,10*1*7*7*12*7*4*7*0*0*0*0*0*0*0*0*0*0*0*0*0*0*
HKLM,%ServiceRoot%"\Elantech\Mouse\SAVE",PgR_CmbNo2,0x00000000,10*11*7*8*11*6*16*7*0*0*0*0*0*0*0*0*0*0*0*0*0*0*
HKLM,%ServiceRoot%"\Elantech\Mouse\SAVE",PgR_CmbNo3,0x00000000,10*2*7*7*13*7*6*7*0*0*0*0*0*0*0*0*0*0*0*0*0*0*
HKLM,%ServiceRoot%"\Elantech\Mouse\SAVE",PgR_CmbNo4,0x00000000,10*14*7*9*14*4*17*7*0*0*0*0*0*0*0*0*0*0*0*0*0*0*
HKLM,%ServiceRoot%"\Elantech\Mouse\SAVE",MF_2,0x10001,6
HKLM,%ServiceRoot%"\Elantech\Mouse\SAVE",MF_3,0x10001,1
HKLM,%ServiceRoot%"\Elantech\Mouse\SAVE",MF_CmbRun,0x00,**

;===================== Send Section =======================
HKLM,%ServiceRoot%"\Elantech\MOUSE\SEND",10,0x00010001,16
HKLM,%ServiceRoot%"\Elantech\MOUSE\SEND",11,0x00010001,143
HKLM,%ServiceRoot%"\Elantech\MOUSE\SEND",20,0x00010001,10
HKLM,%ServiceRoot%"\Elantech\MOUSE\SEND",21,0x00010001,96
HKLM,%ServiceRoot%"\Elantech\MOUSE\SEND",22,0x00010001,255
HKLM,%ServiceRoot%"\Elantech\MOUSE\SEND",23,0x00010001,16
HKLM,%ServiceRoot%"\Elantech\MOUSE\SEND",24,0x00010001,16
HKLM,%ServiceRoot%"\Elantech\MOUSE\SEND",25,0x00010001,03
HKLM,%ServiceRoot%"\Elantech\MOUSE\SEND",26,0x00010001,00
HKLM,%ServiceRoot%"\Elantech\Mouse\SEND",Press_flg,0x00010001,0
;===================== Setup Section ======================
HKLM,%ServiceRoot%"\Elantech\Mouse\Setup",mode,0x00010001,2
HKLM,%ServiceRoot%"\Elantech\Mouse\SetUp",Driver_Ver,0x00000000,"ELANTECH Devices Corp. KTP Ware Ver.PS/2-x86 5.0.3.13 ****"
HKLM,%ServiceRoot%"\Elantech\Mouse\Setup",Copyright_Info,0x00000000,"Copyright {c}2003-2007 ELANTECH Devices Corp.****"
;===== General installation section =====
[Ktp]
;perform port related actions from msmouse.inf
Include=msmouse.inf
Needs=PS2_Inst

;===== Copy the driver over =====
CopyFiles=KtpSys.CopyFiles

;===== File sections =====
[KtpSys.CopyFiles]
Ktp.sys

;===== Service Installation =====
[Ktp.Services]
;===== Install the port driver and mouclass from msmouse.inf =====
Include=msmouse.inf
Needs=PS2_Inst.Services
AddService = Ktp,0x00000000, Ktp_Service_Inst

[Ktp_Service_Inst]
DisplayName    = %Elantech.DeviceDesc0%
ServiceType    = 1                  ; SERVICE_KERNEL_DRIVER
StartType      = 3                  ; SERVICE_DEMAND_START
ErrorControl   = 0                  ; SERVICE_ERROR_IGNORE
LoadOrderGroup = Pointer Port
ServiceBinary  = %12%\Ktp.sys
AddReg=Ktp.AddReg, Uninstall.AddReg

[Ktp.HW]
;===== Add the device upper filter =====
AddReg = Ktp.HW.AddReg

;===== run the directives need by the port driver =====
Include=msmouse.inf
Needs=PS2_Inst.HW

[Ktp.HW.AddReg]
HKR,,"UpperFilters",0x00010000,"Ktp"
HKR,,"EnableWheelDetection",0x00010001,1
HKR,,"DisableInitializePolledUI",0x00010001,1
HKR,,"MouseInitializePolled",0x00010001,0



[Uninstall.AddReg]
HKLM,%NameReg1%\%UKTP%,DisplayName,0x00000000,"KTP Ware PS/2-x86 5.0.3.13"

;===== Source file information =====

[SourceDisksNames.x86]
1 = %DiskId1%,,,""

[SourceDisksFiles]
;===== Files for disk Elantech Devices Corp. Installation Disk #1 (Mouse) =====
Ktp.sys = 1,,
KtpCoinst.dll = 1,,

[CopyFiles_CoInstaller]
KtpCoinst.dll,,,0x00000001

[Ktp.CoInstallers]
CopyFiles = CopyFiles_CoInstaller
AddReg = Ktp.CoInstallers_AddReg

[Ktp.CoInstallers_AddReg]
HKR,,CoInstallers32,0x00010000,"KtpCoinst.dll,KtpPS2Install"
