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

[Version]
Signature="$Windows NT$"
Provider=%Elantech%
ClassGUID={4D36E96F-E325-11CE-BFC1-08002BE10318}
Class=Mouse
CatalogFile=ETD.cat
DriverVer=07/12/2008,7.0.3.7

[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,,0x00000000,%16422%\Elantech\ETDMcpl.dll
HKCR,CLSID\{0066D4B3-8DE0-4D08-AA83-EDD50E2431F0}\InProcServer32,ThreadingModel,0x00000000,Apartment

HKLM,%NameReg1%\%NameReg2%\%NameReg3%,,0x00000000,{0066D4B3-8DE0-4D08-AA83-EDD50E2431F0}
HKLM,%NameReg1%\Run,"ETDWare",0x00000000,%16422%\Elantech\ETDCtrl.exe

;====================================== Send Section =========================================
HKLM,%ServiceRoot%"\Elantech\Mouse\SEND",RAM10,0x00010001,84	; 0x54
HKLM,%ServiceRoot%"\Elantech\Mouse\SEND",RAM11,0x00010001,138	; 0x8A
HKLM,%ServiceRoot%"\Elantech\Mouse\SEND",RAM21,0x00010001,0	; 0x00
HKLM,%ServiceRoot%"\Elantech\Mouse\SEND",RAM22,0x00010001,127	; 0x7F


;=========================================== TP ==============================================

; Icon Display
HKLM,%ServiceRoot%"\Elantech\Mouse\TP",MultiTap_Display,0x10001,1
HKLM,%ServiceRoot%"\Elantech\Mouse\TP",Zoom_Display,0x10001,1
HKLM,%ServiceRoot%"\Elantech\Mouse\TP",Rotate_Display,0x10001,1
HKLM,%ServiceRoot%"\Elantech\Mouse\TP",MAG_Display,0x10001,1
HKLM,%ServiceRoot%"\Elantech\Mouse\TP",SwipePage_Display,0x10001,1
HKLM,%ServiceRoot%"\Elantech\Mouse\TP",FastKey_Display,0x10001,1

;--------------------------------------- UI Default ------------------------------------------
; Button
HKLM,%ServiceRoot%"\Elantech\Mouse\TP\UIDEFAULT\Button",Button_Enable,0x10001,1
HKLM,%ServiceRoot%"\Elantech\Mouse\TP\UIDEFAULT\Button",Button_Left,0x10001,0
HKLM,%ServiceRoot%"\Elantech\Mouse\TP\UIDEFAULT\Button",Button_Left_Ex,0x0,
HKLM,%ServiceRoot%"\Elantech\Mouse\TP\UIDEFAULT\Button",Button_Left_Path,0x0,
HKLM,%ServiceRoot%"\Elantech\Mouse\TP\UIDEFAULT\Button",Button_Middle,0x10001,5
HKLM,%ServiceRoot%"\Elantech\Mouse\TP\UIDEFAULT\Button",Button_Middle_Ex,0x0,
HKLM,%ServiceRoot%"\Elantech\Mouse\TP\UIDEFAULT\Button",Button_Middle_Path,0x0,
HKLM,%ServiceRoot%"\Elantech\Mouse\TP\UIDEFAULT\Button",Button_Right,0x10001,1
HKLM,%ServiceRoot%"\Elantech\Mouse\TP\UIDEFAULT\Button",Button_Right_Ex,0x0,
HKLM,%ServiceRoot%"\Elantech\Mouse\TP\UIDEFAULT\Button",Button_Right_Path,0x0,
; Rock Switch
HKLM,%ServiceRoot%"\Elantech\Mouse\TP\UIDEFAULT\RockSwitch",RS_Enable,0x10001,0
HKLM,%ServiceRoot%"\Elantech\Mouse\TP\UIDEFAULT\RockSwitch",RS_Left,0x10001,12
HKLM,%ServiceRoot%"\Elantech\Mouse\TP\UIDEFAULT\RockSwitch",RS_Left_Ex,0x0,
HKLM,%ServiceRoot%"\Elantech\Mouse\TP\UIDEFAULT\RockSwitch",RS_Left_Path,0x0,
HKLM,%ServiceRoot%"\Elantech\Mouse\TP\UIDEFAULT\RockSwitch",RS_Up,0x10001,14
HKLM,%ServiceRoot%"\Elantech\Mouse\TP\UIDEFAULT\RockSwitch",RS_Up_Ex,0x0,
HKLM,%ServiceRoot%"\Elantech\Mouse\TP\UIDEFAULT\RockSwitch",RS_Up_Path,0x0,
HKLM,%ServiceRoot%"\Elantech\Mouse\TP\UIDEFAULT\RockSwitch",RS_Down,0x10001,11
HKLM,%ServiceRoot%"\Elantech\Mouse\TP\UIDEFAULT\RockSwitch",RS_Down_Ex,0x0,
HKLM,%ServiceRoot%"\Elantech\Mouse\TP\UIDEFAULT\RockSwitch",RS_Down_Path,0x0,
HKLM,%ServiceRoot%"\Elantech\Mouse\TP\UIDEFAULT\RockSwitch",RS_Right,0x10001,13
HKLM,%ServiceRoot%"\Elantech\Mouse\TP\UIDEFAULT\RockSwitch",RS_Right_Ex,0x0,
HKLM,%ServiceRoot%"\Elantech\Mouse\TP\UIDEFAULT\RockSwitch",RS_Right_Path,0x0,
; Smart Finger
HKLM,%ServiceRoot%"\Elantech\Mouse\TP\UIDEFAULT\SmartFinger",SF_Zoom_Enable,0x10001,1
HKLM,%ServiceRoot%"\Elantech\Mouse\TP\UIDEFAULT\SmartFinger",SF_Zoom_In,0x10001,102
HKLM,%ServiceRoot%"\Elantech\Mouse\TP\UIDEFAULT\SmartFinger",SF_Zoom_In_Ex,0x0,
HKLM,%ServiceRoot%"\Elantech\Mouse\TP\UIDEFAULT\SmartFinger",SF_Zoom_In_Path,0x0,
HKLM,%ServiceRoot%"\Elantech\Mouse\TP\UIDEFAULT\SmartFinger",SF_Zoom_Out,0x10001,103
HKLM,%ServiceRoot%"\Elantech\Mouse\TP\UIDEFAULT\SmartFinger",SF_Zoom_Out_Ex,0x0,
HKLM,%ServiceRoot%"\Elantech\Mouse\TP\UIDEFAULT\SmartFinger",SF_Zoom_Out_Path,0x0,
HKLM,%ServiceRoot%"\Elantech\Mouse\TP\UIDEFAULT\SmartFinger",SF_Zoom_STV,0x10001,3
HKLM,%ServiceRoot%"\Elantech\Mouse\TP\UIDEFAULT\SmartFinger",SF_Rotation_Enable,0x10001,1
HKLM,%ServiceRoot%"\Elantech\Mouse\TP\UIDEFAULT\SmartFinger",SF_Rotation_Right,0x10001,202
HKLM,%ServiceRoot%"\Elantech\Mouse\TP\UIDEFAULT\SmartFinger",SF_Rotation_Right_Ex,0x0,
HKLM,%ServiceRoot%"\Elantech\Mouse\TP\UIDEFAULT\SmartFinger",SF_Rotation_Right_Path,0x0,
HKLM,%ServiceRoot%"\Elantech\Mouse\TP\UIDEFAULT\SmartFinger",SF_Rotation_Left,0x10001,203
HKLM,%ServiceRoot%"\Elantech\Mouse\TP\UIDEFAULT\SmartFinger",SF_Rotation_Left_Ex,0x0,
HKLM,%ServiceRoot%"\Elantech\Mouse\TP\UIDEFAULT\SmartFinger",SF_Rotation_Left_Path,0x0,
HKLM,%ServiceRoot%"\Elantech\Mouse\TP\UIDEFAULT\SmartFinger",SF_Rotation_STV,0x10001,3
; Drag
HKLM,%ServiceRoot%"\Elantech\Mouse\TP\UIDEFAULT\Drag",Drag_Enable,0x10001,0
HKLM,%ServiceRoot%"\Elantech\Mouse\TP\UIDEFAULT\Drag",Drag_Radio,0x10001,0
HKLM,%ServiceRoot%"\Elantech\Mouse\TP\UIDEFAULT\Drag",Drag_Radio2_Slider,0x10001,4
; Scroll
HKLM,%ServiceRoot%"\Elantech\Mouse\TP\UIDEFAULT\Scroll",SC_V_Enable,0x10001,1
HKLM,%ServiceRoot%"\Elantech\Mouse\TP\UIDEFAULT\Scroll",SC_H_Enable,0x10001,1
HKLM,%ServiceRoot%"\Elantech\Mouse\TP\UIDEFAULT\Scroll",SC_Speed,0x10001,0
HKLM,%ServiceRoot%"\Elantech\Mouse\TP\UIDEFAULT\Scroll",SC_STV,0x10001,2
; Tap
HKLM,%ServiceRoot%"\Elantech\Mouse\TP\UIDEFAULT\Tap",Tap_Enable,0x10001,1
HKLM,%ServiceRoot%"\Elantech\Mouse\TP\UIDEFAULT\Tap",Tap_Two_Finger,0x10001,5
HKLM,%ServiceRoot%"\Elantech\Mouse\TP\UIDEFAULT\Tap",Tap_Two_Finger_Ex,0x0,
HKLM,%ServiceRoot%"\Elantech\Mouse\TP\UIDEFAULT\Tap",Tap_Two_Finger_Path,0x0,
HKLM,%ServiceRoot%"\Elantech\Mouse\TP\UIDEFAULT\Tap",Tap_Three_Finger,0x10001,1
HKLM,%ServiceRoot%"\Elantech\Mouse\TP\UIDEFAULT\Tap",Tap_Three_Finger_Ex,0x0,
HKLM,%ServiceRoot%"\Elantech\Mouse\TP\UIDEFAULT\Tap",Tap_Three_Finger_Path,0x0,
HKLM,%ServiceRoot%"\Elantech\Mouse\TP\UIDEFAULT\Tap",Tap_Disable_When_Type,0x10001,0
; SmartMotion
HKLM,%ServiceRoot%"\Elantech\Mouse\TP\UIDEFAULT\SmartMotion",SM_Enable,0x10001,0
HKLM,%ServiceRoot%"\Elantech\Mouse\TP\UIDEFAULT\SmartMotion",SM_Radio,0x10001,0
HKLM,%ServiceRoot%"\Elantech\Mouse\TP\UIDEFAULT\SmartMotion",SM_Radio2_Slider,0x10001,1
; STV
HKLM,%ServiceRoot%"\Elantech\Mouse\TP\UIDEFAULT\STV",STV_Slider,0x10001,1
; Palm
HKLM,%ServiceRoot%"\Elantech\Mouse\TP\UIDEFAULT\Palm",Palm_Slider,0x10001,1
; PageUpDown
HKLM,%ServiceRoot%"\Elantech\Mouse\TP\UIDEFAULT\PageUpDown",PageUpDown_Enable,0x10001,1
; Three Finger Move Function
HKLM,%ServiceRoot%"\Elantech\Mouse\TP\UIDEFAULT\ThreeFingerMoveFunc",ThreeFingerMoveUp,0x10001,1
HKLM,%ServiceRoot%"\Elantech\Mouse\TP\UIDEFAULT\ThreeFingerMoveFunc",ThreeFingerMoveDown,0x10001,1
HKLM,%ServiceRoot%"\Elantech\Mouse\TP\UIDEFAULT\ThreeFingerMoveFunc",ThreeFingerMoveLeft,0x10001,1
HKLM,%ServiceRoot%"\Elantech\Mouse\TP\UIDEFAULT\ThreeFingerMoveFunc",ThreeFingerMoveRight,0x10001,1

;=========================================== PST =============================================

;---------------------------------------- UI Default -----------------------------------------
; Button
HKLM,%ServiceRoot%"\Elantech\Mouse\PST\UIDEFAULT\Button",Button_Enable,0x10001,1
HKLM,%ServiceRoot%"\Elantech\Mouse\PST\UIDEFAULT\Button",Button_Left,0x10001,0
HKLM,%ServiceRoot%"\Elantech\Mouse\PST\UIDEFAULT\Button",Button_Left_Ex,0x0,
HKLM,%ServiceRoot%"\Elantech\Mouse\PST\UIDEFAULT\Button",Button_Left_Path,0x0,
HKLM,%ServiceRoot%"\Elantech\Mouse\PST\UIDEFAULT\Button",Button_Middle,0x10001,5
HKLM,%ServiceRoot%"\Elantech\Mouse\PST\UIDEFAULT\Button",Button_Middle_Ex,0x0,
HKLM,%ServiceRoot%"\Elantech\Mouse\PST\UIDEFAULT\Button",Button_Middle_Path,0x0,
HKLM,%ServiceRoot%"\Elantech\Mouse\PST\UIDEFAULT\Button",Button_Right,0x10001,1
HKLM,%ServiceRoot%"\Elantech\Mouse\PST\UIDEFAULT\Button",Button_Right_Ex,0x0,
HKLM,%ServiceRoot%"\Elantech\Mouse\PST\UIDEFAULT\Button",Button_Right_Path,0x0,
; Scroll
HKLM,%ServiceRoot%"\Elantech\Mouse\PST\UIDEFAULT\Scroll",SC_V_Enable,0x10001,1
HKLM,%ServiceRoot%"\Elantech\Mouse\PST\UIDEFAULT\Scroll",SC_H_Enable,0x10001,1
HKLM,%ServiceRoot%"\Elantech\Mouse\PST\UIDEFAULT\Scroll",SC_Speed,0x10001,0
HKLM,%ServiceRoot%"\Elantech\Mouse\PST\UIDEFAULT\Scroll",SC_STV,0x10001,4
; Z
HKLM,%ServiceRoot%"\Elantech\Mouse\PST\UIDEFAULT\Z",Z_Enable,0x10001,0
HKLM,%ServiceRoot%"\Elantech\Mouse\PST\UIDEFAULT\Z",Z_Drag_Enable,0x10001,0
HKLM,%ServiceRoot%"\Elantech\Mouse\PST\UIDEFAULT\Z",Z_Func,0x10001,1
HKLM,%ServiceRoot%"\Elantech\Mouse\PST\UIDEFAULT\Z",Z_Func_Ex,0x0,
HKLM,%ServiceRoot%"\Elantech\Mouse\PST\UIDEFAULT\Z",Z_Func_Path,0x0,
HKLM,%ServiceRoot%"\Elantech\Mouse\PST\UIDEFAULT\Z",Z_Select_Speed,0x10001,1
; STV
HKLM,%ServiceRoot%"\Elantech\Mouse\PST\UIDEFAULT\STV",STV_Slider,0x10001,1

;-------------------------------------------- SETUP ------------------------------------------
; Main
HKLM,%ServiceRoot%"\Elantech\Mouse\SETUP",Driver_Version,0x00,ETDWare PS/2-x86 7.0.3.7 WHQL
HKLM,%ServiceRoot%"\Elantech\Mouse\SETUP",ICON_Set,0x10001,0
HKLM,%ServiceRoot%"\Elantech\Mouse\SETUP",TP_Exist,0x10001,1
HKLM,%ServiceRoot%"\Elantech\Mouse\SETUP",TP_Enable,0x10001,1
HKLM,%ServiceRoot%"\Elantech\Mouse\SETUP",PST_Exist,0x10001,0
HKLM,%ServiceRoot%"\Elantech\Mouse\SETUP",PST_Enable,0x10001,1
HKLM,%ServiceRoot%"\Elantech\Mouse\SETUP",Firmware_Version,0x10001,0
HKLM,%ServiceRoot%"\Elantech\Mouse\SETUP",OS_Version,0x10001,1
HKLM,%ServiceRoot%"\Elantech\Mouse\SETUP",KBC_Support_Mode,0x10001,0
HKLM,%ServiceRoot%"\Elantech\Mouse\SETUP",KBC_Mode,0x10001,0
HKLM,%ServiceRoot%"\Elantech\Mouse\SETUP",RockSwitch_Mode,0x10001,0
HKLM,%ServiceRoot%"\Elantech\Mouse\SETUP",Port90,0x10001,0
HKLM,%ServiceRoot%"\Elantech\Mouse\SETUP",Port91,0x10001,0
HKLM,%ServiceRoot%"\Elantech\Mouse\SETUP",Port92,0x10001,0
HKLM,%ServiceRoot%"\Elantech\Mouse\SETUP",Port93,0x10001,0
HKLM,%ServiceRoot%"\Elantech\Mouse\SETUP",Mag_Enable,0x10001,1
HKLM,%ServiceRoot%"\Elantech\Mouse\SETUP",Mag_P,0x10001,0
HKLM,%ServiceRoot%"\Elantech\Mouse\SETUP",Mag_X,0x10001,5
HKLM,%ServiceRoot%"\Elantech\Mouse\SETUP",Mag_Y,0x10001,4

;---------------------------------------------------------------------------------------------

;===== 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]
ETD.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%\ETD.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"

[Uninstall.AddReg]
HKLM,%NameReg1%\%UETD%,DisplayIcon,0x00000000,"%16422%\Elantech\ETDCtrl.exe"
HKLM,%NameReg1%\%UETD%,DisplayName,0x00000000,"ETDWare PS/2-x86 7.0.3.7 WHQL"
HKLM,%NameReg1%\%UETD%,UninstallString,0x00000000,"rundll32.exe ""%16422%\Elantech\ETDUninst.dll"",ETD_Uninstall 0"

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

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

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

[CopyFiles_CoInstaller]
ETDCoinst.dll,,,0x00000001

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

[Ktp.CoInstallers_AddReg]
HKR,,CoInstallers32,0x00010000,"ETDCoinst.dll,ETDPS2Install"


;===== Globalization Strings =====
[Strings]	;English (default)
Elantech.DeviceDesc0 = "Elantech Smart-Pad"
DiskId1  = "ETDWare Driver Disk"
Elantech = "Elantech"
NameReg1 = "SOFTWARE\Microsoft\Windows\CurrentVersion"
NameReg2 = "Controls Folder\Mouse\shellex"
NameReg3 = "PropertySheetHandlers\DriverPages"
UETD     = "Uninstall\Elantech"
ServiceRoot = "System\CurrentControlSet\Services"

