;============================================================================
; Installation file (.inf) for Windows XP/Vista/7.
;
; All Rights Reserved, Copyright(C) ELAN Microelectronics Corp. 2003-2010
;============================================================================

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

[SourceDisksNames]
1=%DiskName%,,,""

[SourceDisksFiles]
ETDUI.cpl = 1,,
ETD.sys = 1,,
ETDCtrl.exe = 1,,
ETDCtrlHelper.exe = 1,,
ETDApix.dll = 1,,
ETDCmds.dll = 1,,
ETDMag.exe = 1,,
ETDUninst.dll = 1,,
ETDUn_inst.exe = 1,,
ETDMcpl.dll = 1,,
ETDApi.dll = 1,,
ETDFavorite.dll = 1,,
ETDApi32.dll = 1,,

;----------------------------------------------------------------------------
; Manufacturer Sections
;----------------------------------------------------------------------------

[Manufacturer]
%Elantech%   = Elantech.Mfg, NTamd64 ; (Standard types)

[Elantech.Mfg.NTamd64]
%PS2.DeviceDesc% 	= ETD_Inst, *PNP0F13,*PNP0F0E,*PNP0F03,*PNP0F12,*PNP0F0B	; Hardware ID
%PS2.ELANDeviceDesc% 	= ETD_Inst, *ETD0001						; ELAN PS2 SmartPad
%PS2.ELANDeviceDesc% 	= ETD_Inst, *ETD0100
%PS2.ELANDeviceDesc% 	= ETD_Inst, *ETD0101
%PS2.ELANDeviceDesc% 	= ETD_Inst, *ETD0B00,*ETD0B01

;----------------------------------------------------------------------------
; Install Sections
;----------------------------------------------------------------------------

[DestinationDirs]
DefaultDestDir 		= 12	; Driver directory
ETDSys.CopyFiles 	= 12	; Driver directory
ETDApp.CopyFiles 	= 16422, %TargetDir%	; Program file
ETDCpl.CopyFiles 	= 11	; System directory
;CopyFiles_CoInstaller 	= 11	; System directory

[ETD_Service_Inst]
DisplayName    = %PS2.DeviceDesc%
ServiceType    = 1                  ; SERVICE_KERNEL_DRIVER
StartType      = 3                  ; SERVICE_DEMAND_START
ErrorControl   = 0                  ; SERVICE_ERROR_IGNORE
ServiceBinary  = %12%\ETD.sys
LoadOrderGroup = Pointer Port


;----------------------------------------------------------------------------
; Common File Copy and Registry Operations
;----------------------------------------------------------------------------

[ETDSys.CopyFiles]
ETD.sys

[ETDApp.CopyFiles]
ETDCtrl.exe
ETDCtrlHelper.exe
ETDApix.dll
ETDCmds.dll
ETDMag.exe
ETDUninst.dll
ETDUn_inst.exe
ETDMcpl.dll
ETDApi.dll
ETDFavorite.dll
ETDApi32.dll

[ETDCpl.CopyFiles]
ETDUI.cpl

;----------------------------------------------------------------------------
; PS/2 SmartPad
;----------------------------------------------------------------------------

[ETD_Inst]
Include=msmouse.inf
Needs=PS2_Inst
CopyFiles=ETDSys.CopyFiles,ETDApp.CopyFiles,ETDCpl.CopyFiles
AddReg=ETD_Inst.AddReg, Uninstall.AddReg

[ETD_Inst.Services]
AddService = ETD,0x00000000, ETD_Service_Inst

[ETD_Inst.HW]
AddReg = ETD_AddReg.HW

[ETD_AddReg.HW]
HKR,,"UpperFilters",0x00010000,"ETD"

;----------------------------------------------------------------------------
; Entry point for Uninstallation.
; This section is executed as part of Uninstallation.
;----------------------------------------------------------------------------

[Uninstall]
CopyFiles = No_Files
DelFiles = No_Files
DelReg = Uninstall_DelReg

[No_Files]

;----------------------------------------------------------------------------
; Uninstall Section
;----------------------------------------------------------------------------

[Uninstall_DelReg]
HKLM,Software\Microsoft\Windows\CurrentVersion\Uninstall\Elantech
HKCR,CLSID\{0066D4B3-8DE0-4D08-AA83-EDD50E2431F0}
HKLM,"%NameReg1%\%NameReg2%\%NameReg3%"
HKLM,Software\Microsoft\Windows\CurrentVersion\Run,ETDWare
HKLM,%ServiceRoot%"\Elantech
HKLM,%ServiceRoot%"\ETD
HKCU,Software\Elantech

[ETD_Inst.AddReg]
HKCR,CLSID\{0066D4B3-8DE0-4D08-AA83-EDD50E2431F0},,0x00000000,CustomPropSheet
HKCR,CLSID\{0066D4B3-8DE0-4D08-AA83-EDD50E2431F0}\InProcServer32,,0x00020000,"%ProgramFiles%\%TargetDir%\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",0x00020000,"%ProgramFiles%\%TargetDir%\ETDCtrl.exe"

;----------------------------------------------------------------------------
; New Registry structure

; Device Type
HKLM,%ServiceRoot%"\Elantech\DeviceType",KBCSupportMode,0x10001,0
HKLM,%ServiceRoot%"\Elantech\DeviceType",KBCMode,0x10001,0
HKLM,%ServiceRoot%"\Elantech\DeviceType",DevicePort,0x10001,0
HKLM,%ServiceRoot%"\Elantech\DeviceType",Port0_MasterDeviceType,0x10001,0
HKLM,%ServiceRoot%"\Elantech\DeviceType",Port1_MasterDeviceType,0x10001,0
HKLM,%ServiceRoot%"\Elantech\DeviceType",Port2_MasterDeviceType,0x10001,0
HKLM,%ServiceRoot%"\Elantech\DeviceType",Port3_MasterDeviceType,0x10001,0
HKLM,%ServiceRoot%"\Elantech\DeviceType",Port0_SlaveDeviceType,0x10001,0
HKLM,%ServiceRoot%"\Elantech\DeviceType",Port1_SlaveDeviceType,0x10001,0
HKLM,%ServiceRoot%"\Elantech\DeviceType",Port2_SlaveDeviceType,0x10001,0
HKLM,%ServiceRoot%"\Elantech\DeviceType",Port3_SlaveDeviceType,0x10001,0
HKLM,%ServiceRoot%"\Elantech\DeviceType",Port0_MasterIsConnected,0x10001,0
HKLM,%ServiceRoot%"\Elantech\DeviceType",Port1_MasterIsConnected,0x10001,0
HKLM,%ServiceRoot%"\Elantech\DeviceType",Port2_MasterIsConnected,0x10001,0
HKLM,%ServiceRoot%"\Elantech\DeviceType",Port3_MasterIsConnected,0x10001,0
HKLM,%ServiceRoot%"\Elantech\DeviceType",Port0_SlaveIsConnected,0x10001,0
HKLM,%ServiceRoot%"\Elantech\DeviceType",Port1_SlaveIsConnected,0x10001,0
HKLM,%ServiceRoot%"\Elantech\DeviceType",Port2_SlaveIsConnected,0x10001,0
HKLM,%ServiceRoot%"\Elantech\DeviceType",Port3_SlaveIsConnected,0x10001,0
HKLM,%ServiceRoot%"\Elantech\DeviceType",Port0_RockSwitch,0x10001,0
HKLM,%ServiceRoot%"\Elantech\DeviceType",Port1_RockSwitch,0x10001,0
HKLM,%ServiceRoot%"\Elantech\DeviceType",Port2_RockSwitch,0x10001,0
HKLM,%ServiceRoot%"\Elantech\DeviceType",Port3_RockSwitch,0x10001,0

; Elantech
HKLM,%ServiceRoot%"\Elantech",InstallDir,0x00,"%1%"

; Main Option
HKLM,%ServiceRoot%"\Elantech\MainOption",DriverVersion,0x00,ETDWare PS/2-x64 7.0.7.0_WHQL
HKLM,%ServiceRoot%"\Elantech\MainOption",IconType,0x10001,2
HKLM,%ServiceRoot%"\Elantech\MainOption",OSVersion,0x10001,1
HKLM,%ServiceRoot%"\Elantech\MainOption",DisableWhenDetectUSBMouse,0x10001,0
HKLM,%ServiceRoot%"\Elantech\MainOption",Mag_Enable,0x10001,0
HKLM,%ServiceRoot%"\Elantech\MainOption",Mag_P,0x10001,0
HKLM,%ServiceRoot%"\Elantech\MainOption",Mag_X,0x10001,0
HKLM,%ServiceRoot%"\Elantech\MainOption",Mag_Y,0x10001,0

; HID Mouse Ignore
HKLM,%ServiceRoot%"\Elantech\HIDMouseIgnore",0,0x00,HID\VID_413C&PID_8162&Col01
HKLM,%ServiceRoot%"\Elantech\HIDMouseIgnore",1,0x00000000,"USB\VID_0A81&PID_0103&MI_00*" 
HKLM,%ServiceRoot%"\Elantech\HIDMouseIgnore",2,0x00000000,"USB\VID_0A81&PID_0103&MI_01*" 
HKLM,%ServiceRoot%"\Elantech\HIDMouseIgnore",3,0x00000000,"HID\Vid_046d&Pid_c50e&Rev_2500" 
HKLM,%ServiceRoot%"\Elantech\HIDMouseIgnore",4,0x00000000,"HID\Vid_046d&Pid_c50e&Rev_2510" 
HKLM,%ServiceRoot%"\Elantech\HIDMouseIgnore",5,0x00000000,"HID\Vid_0A81&Pid_0103&MI_01&Col02" 
HKLM,%ServiceRoot%"\Elantech\HIDMouseIgnore",6,0x00000000,"HID\Vid_0A81&Pid_0103&MI_01&Col03" 
HKLM,%ServiceRoot%"\Elantech\HIDMouseIgnore",7,0x00000000,"HID\Vid_04B8&Pid_030E&Rev_0100&MI_*"
HKLM,%ServiceRoot%"\Elantech\HIDMouseIgnore",8,0x00000000,"HID\Vid_05E3&Pid_FFE2&Rev_0001&MI_*" 
HKLM,%ServiceRoot%"\Elantech\HIDMouseIgnore",9,0x00000000,"HID\Vid_0A81&Pid_0103&Rev_0110&MI_*"

HKLM,%ServiceRoot%"\Elantech\HIDMouseIgnore",10,0x00000000,"USB\VID_0637&PID_0001*"
HKLM,%ServiceRoot%"\Elantech\HIDMouseIgnore",11,0x00000000,"HID\Vid_046e&Pid_6782&MI_00"
HKLM,%ServiceRoot%"\Elantech\HIDMouseIgnore",12,0x00000000,"HID\Vid_046e&Pid_6782&MI_01&Col01"
HKLM,%ServiceRoot%"\Elantech\HIDMouseIgnore",13,0x00000000,"HID\Vid_046e&Pid_6782&MI_01&Col02"
HKLM,%ServiceRoot%"\Elantech\HIDMouseIgnore",14,0x00000000,"HID\Vid_046e&Pid_6782&Rev_2110&MI_00"
HKLM,%ServiceRoot%"\Elantech\HIDMouseIgnore",15,0x00000000,"HID\Vid_046e&Pid_6782&Rev_2110&MI_01&Col01"
HKLM,%ServiceRoot%"\Elantech\HIDMouseIgnore",16,0x00000000,"HID\Vid_046e&Pid_6782&Rev_2110&MI_01&Col02"

HKLM,%ServiceRoot%"\Elantech\HIDMouseIgnore",17,0x00000000,"HID\VID_0A5C&PID_4503&REV_0100&Col01"
HKLM,%ServiceRoot%"\Elantech\HIDMouseIgnore",18,0x00000000,"HID\VID_0A5C&PID_8103"
HKLM,%ServiceRoot%"\Elantech\HIDMouseIgnore",19,0x00000000,"HID\VID_0A5C&PID_8126"
HKLM,%ServiceRoot%"\Elantech\HIDMouseIgnore",20,0x00000000,"HID\VID_0A5C&PID_8127"
HKLM,%ServiceRoot%"\Elantech\HIDMouseIgnore",21,0x00000000,"HID\VID_0A5C&PID_8140"
HKLM,%ServiceRoot%"\Elantech\HIDMouseIgnore",22,0x00000000,"HID\VID_0A5C&PID_8145"
HKLM,%ServiceRoot%"\Elantech\HIDMouseIgnore",23,0x00000000,"HID\VID_0A5C&PID_8146"
HKLM,%ServiceRoot%"\Elantech\HIDMouseIgnore",24,0x00000000,"HID\VID_0A5C&PID_8151"
HKLM,%ServiceRoot%"\Elantech\HIDMouseIgnore",25,0x00000000,"HID\VID_0A5C&PID_8152"
HKLM,%ServiceRoot%"\Elantech\HIDMouseIgnore",26,0x00000000,"HID\VID_0A5C&PID_8154"
HKLM,%ServiceRoot%"\Elantech\HIDMouseIgnore",27,0x00000000,"HID\VID_0A5C&PID_8155"
HKLM,%ServiceRoot%"\Elantech\HIDMouseIgnore",28,0x00000000,"HID\VID_0A5C&PID_8156"
HKLM,%ServiceRoot%"\Elantech\HIDMouseIgnore",29,0x00000000,"HID\VID_0A5C&PID_8158"
HKLM,%ServiceRoot%"\Elantech\HIDMouseIgnore",30,0x00000000,"HID\VID_0A5C&PID_8159"
HKLM,%ServiceRoot%"\Elantech\HIDMouseIgnore",31,0x00000000,"HID\VID_0A5C&PID_8160"
HKLM,%ServiceRoot%"\Elantech\HIDMouseIgnore",32,0x00000000,"HID\VID_0A5C&PID_8162"
HKLM,%ServiceRoot%"\Elantech\HIDMouseIgnore",33,0x00000000,"HID\VID_0A5C&PID_8167"
HKLM,%ServiceRoot%"\Elantech\HIDMouseIgnore",34,0x00000000,"HID\VID_0A5C&PID_8168"
HKLM,%ServiceRoot%"\Elantech\HIDMouseIgnore",35,0x00000000,"HID\VID_0A5C&PID_8169"
HKLM,%ServiceRoot%"\Elantech\HIDMouseIgnore",36,0x00000000,"HID\VID_413C&PID_8152"
HKLM,%ServiceRoot%"\Elantech\HIDMouseIgnore",37,0x00000000,"HID\VID_413C&PID_8154"
HKLM,%ServiceRoot%"\Elantech\HIDMouseIgnore",38,0x00000000,"HID\VID_413C&PID_8156"
HKLM,%ServiceRoot%"\Elantech\HIDMouseIgnore",39,0x00000000,"HID\VID_413C&PID_8157&REV_0100"
HKLM,%ServiceRoot%"\Elantech\HIDMouseIgnore",40,0x00000000,"HID\VID_413C&PID_8158&REV_0100&Col01"

HKLM,%ServiceRoot%"\Elantech\HIDMouseIgnore",41,0x00000000,"SERENUM\FJC5000"
HKLM,%ServiceRoot%"\Elantech\HIDMouseIgnore",42,0x00000000,"HID\Vid_0430&Pid_0002&Rev_0100&MI_00"
HKLM,%ServiceRoot%"\Elantech\HIDMouseIgnore",43,0x00000000,"HID\Vid_0430&Pid_0002&Rev_0100&MI_01"
HKLM,%ServiceRoot%"\Elantech\HIDMouseIgnore",44,0x00000000,"HID\Vid_0430&Pid_0002&MI_00"
HKLM,%ServiceRoot%"\Elantech\HIDMouseIgnore",45,0x00000000,"HID\Vid_0430&Pid_0002&MI_01"
HKLM,%ServiceRoot%"\Elantech\HIDMouseIgnore",46,0x00000000,"HID\FUJ02E5&Col02"
HKLM,%ServiceRoot%"\Elantech\HIDMouseIgnore",47,0x00000000,"HID\FUJ02E6&Col02"
HKLM,%ServiceRoot%"\Elantech\HIDMouseIgnore",48,0x00000000,"HID\WACOMVIRTUALHID&Col03"
HKLM,%ServiceRoot%"\Elantech\HIDMouseIgnore",49,0x00000000,"HID\Vid_0430&Pid_0501&Rev_5001"
HKLM,%ServiceRoot%"\Elantech\HIDMouseIgnore",50,0x00000000,"HID\Vid_0430&Pid_0501"
HKLM,%ServiceRoot%"\Elantech\HIDMouseIgnore",51,0x00000000,"HID\Vid_0430&Pid_0530&Rev_5001"
HKLM,%ServiceRoot%"\Elantech\HIDMouseIgnore",52,0x00000000,"HID\Vid_0430&Pid_0530"

HKLM,%ServiceRoot%"\Elantech\HIDMouseIgnore",53,0x00000000,"IBM0057"
HKLM,%ServiceRoot%"\Elantech\HIDMouseIgnore",54,0x00000000,"*IBM0057"
HKLM,%ServiceRoot%"\Elantech\HIDMouseIgnore",55,0x00000000,"ACPI\IBM0057"

HKLM,%ServiceRoot%"\Elantech\HIDMouseIgnore",56,0x00000000,"HID\IrDevice&Col08"
HKLM,%ServiceRoot%"\Elantech\HIDMouseIgnore",57,0x00000000,"HID\ITEirDevice&Col05"
HKLM,%ServiceRoot%"\Elantech\HIDMouseIgnore",58,0x00000000,"HID\TOS_BT_MOU_0004&0005"
HKLM,%ServiceRoot%"\Elantech\HIDMouseIgnore",59,0x00000000,"HID\Vid_0609&Pid_031d"
HKLM,%ServiceRoot%"\Elantech\HIDMouseIgnore",60,0x00000000,"HID\Vid_0609&Pid_032d"
HKLM,%ServiceRoot%"\Elantech\HIDMouseIgnore",61,0x00000000,"HID\VID_1CB6&PID_6680&REV_0100&MI_00&Col02"
HKLM,%ServiceRoot%"\Elantech\HIDMouseIgnore",62,0x00000000,"HID\VID_1CB6&PID_6680&MI_00&Col02"
HKLM,%ServiceRoot%"\Elantech\HIDMouseIgnore",63,0x00000000,"HID\VID_1CB6&PID_6680&REV_0100&MI_01"
HKLM,%ServiceRoot%"\Elantech\HIDMouseIgnore",64,0x00000000,"HID\VID_1CB6&PID_6680&MI_01"
HKLM,%ServiceRoot%"\Elantech\HIDMouseIgnore",65,0x00000000,"HID\Vid_413c&Pid_8162&Rev_0100&Col01"

HKLM,%ServiceRoot%"\Elantech\HIDMouseIgnore",66,0x00000000,"NCT1001"
HKLM,%ServiceRoot%"\Elantech\HIDMouseIgnore",67,0x00000000,"*NCT1001"
HKLM,%ServiceRoot%"\Elantech\HIDMouseIgnore",68,0x00000000,"ACPI\NCT1001"
HKLM,%ServiceRoot%"\Elantech\HIDMouseIgnore",69,0x00000000,"AUI0204"
HKLM,%ServiceRoot%"\Elantech\HIDMouseIgnore",70,0x00000000,"*AUI0204"
HKLM,%ServiceRoot%"\Elantech\HIDMouseIgnore",71,0x00000000,"ACPI\AUI0204"
       
HKLM,%ServiceRoot%"\Elantech\HIDMouseIgnore",72,0x00000000,"HID\VID_044F&PID_E000"
HKLM,%ServiceRoot%"\Elantech\HIDMouseIgnore",73,0x00000000,"HID\VID_04F2&PID_0001&MI_01"
HKLM,%ServiceRoot%"\Elantech\HIDMouseIgnore",74,0x00000000,"HID\VID_044F&PID_B304&REV_0100&COL02"
HKLM,%ServiceRoot%"\Elantech\HIDMouseIgnore",75,0x00000000,"HID\Vid_04f2&Pid_0001&Rev_0100&MI_00"
HKLM,%ServiceRoot%"\Elantech\HIDMouseIgnore",76,0x00000000,"HID\Vid_04f2&Pid_0001&Rev_0100&MI_01"

HKLM,%ServiceRoot%"\Elantech\HIDMouseIgnore",77,0x00000000,"HID\VID_1CB6&PID_6680&REV_0100&MI_00&Col02"
HKLM,%ServiceRoot%"\Elantech\HIDMouseIgnore",78,0x00000000,"HID\VID_1CB6&PID_6680&REV_0100&MI_01"
HKLM,%ServiceRoot%"\Elantech\HIDMouseIgnore",79,0x00000000,"HID\IrDeviceV2&Col08\"
HKLM,%ServiceRoot%"\Elantech\HIDMouseIgnore",80,0x00000000,"HID\VID_046D&PID_C705&MI_00"

;----------------------------------------------------------------------------
; SmartPad Default

; Button
HKLM,%ServiceRoot%"\Elantech\SmartPad",Button_Enable,0x10001,1
HKLM,%ServiceRoot%"\Elantech\SmartPad",Button_Left,0x10001,0
HKLM,%ServiceRoot%"\Elantech\SmartPad",Button_Left_Ex,0x0,
HKLM,%ServiceRoot%"\Elantech\SmartPad",Button_Left_Path,0x0,
HKLM,%ServiceRoot%"\Elantech\SmartPad",Button_Middle,0x10001,2
HKLM,%ServiceRoot%"\Elantech\SmartPad",Button_Middle_Ex,0x0,
HKLM,%ServiceRoot%"\Elantech\SmartPad",Button_Middle_Path,0x0,
HKLM,%ServiceRoot%"\Elantech\SmartPad",Button_Right,0x10001,1
HKLM,%ServiceRoot%"\Elantech\SmartPad",Button_Right_Ex,0x0,
HKLM,%ServiceRoot%"\Elantech\SmartPad",Button_Right_Path,0x0,
; Rock Switch
HKLM,%ServiceRoot%"\Elantech\SmartPad",RS_Enable,0x10001,0
HKLM,%ServiceRoot%"\Elantech\SmartPad",RS_Left,0x10001,12
HKLM,%ServiceRoot%"\Elantech\SmartPad",RS_Left_Ex,0x0,
HKLM,%ServiceRoot%"\Elantech\SmartPad",RS_Left_Path,0x0,
HKLM,%ServiceRoot%"\Elantech\SmartPad",RS_Up,0x10001,14
HKLM,%ServiceRoot%"\Elantech\SmartPad",RS_Up_Ex,0x0,
HKLM,%ServiceRoot%"\Elantech\SmartPad",RS_Up_Path,0x0,
HKLM,%ServiceRoot%"\Elantech\SmartPad",RS_Down,0x10001,11
HKLM,%ServiceRoot%"\Elantech\SmartPad",RS_Down_Ex,0x0,
HKLM,%ServiceRoot%"\Elantech\SmartPad",RS_Down_Path,0x0,
HKLM,%ServiceRoot%"\Elantech\SmartPad",RS_Right,0x10001,13
HKLM,%ServiceRoot%"\Elantech\SmartPad",RS_Right_Ex,0x0,
HKLM,%ServiceRoot%"\Elantech\SmartPad",RS_Right_Path,0x0,
; Smart Finger
HKLM,%ServiceRoot%"\Elantech\SmartPad",SF_Zoom_Enable,0x10001,1
HKLM,%ServiceRoot%"\Elantech\SmartPad",SF_Zoom_STV,0x10001,3
HKLM,%ServiceRoot%"\Elantech\SmartPad",SF_Rotation_Enable,0x10001,1
HKLM,%ServiceRoot%"\Elantech\SmartPad",SF_Rotation_STV,0x10001,3
; Drag
HKLM,%ServiceRoot%"\Elantech\SmartPad",Drag_Enable,0x10001,1
HKLM,%ServiceRoot%"\Elantech\SmartPad",Drag_Radio,0x10001,2
HKLM,%ServiceRoot%"\Elantech\SmartPad",Drag_Radio2_Slider,0x10001,4
; Scroll
HKLM,%ServiceRoot%"\Elantech\SmartPad",SC_V_Enable,0x10001,1
HKLM,%ServiceRoot%"\Elantech\SmartPad",SC_H_Enable,0x10001,1
HKLM,%ServiceRoot%"\Elantech\SmartPad",SC_AutoScroll_Enable,0x10001,0
HKLM,%ServiceRoot%"\Elantech\SmartPad",SC_Speed,0x10001,0
HKLM,%ServiceRoot%"\Elantech\SmartPad",SC_STV,0x10001,1
; Tap
HKLM,%ServiceRoot%"\Elantech\SmartPad",Tap_Enable,0x10001,1
HKLM,%ServiceRoot%"\Elantech\SmartPad",Tap_Two_Finger,0x10001,2
HKLM,%ServiceRoot%"\Elantech\SmartPad",Tap_Two_Finger_Ex,0x0,
HKLM,%ServiceRoot%"\Elantech\SmartPad",Tap_Two_Finger_Path,0x0,
HKLM,%ServiceRoot%"\Elantech\SmartPad",Tap_Three_Finger,0x10001,1
HKLM,%ServiceRoot%"\Elantech\SmartPad",Tap_Three_Finger_Ex,0x0,
HKLM,%ServiceRoot%"\Elantech\SmartPad",Tap_Three_Finger_Path,0x0,
; Cover
HKLM,%ServiceRoot%"\Elantech\SmartPad",Cover_Enable,0x10001,1
HKLM,%ServiceRoot%"\Elantech\SmartPad",Cover_Func,0x10001,19
HKLM,%ServiceRoot%"\Elantech\SmartPad",Cover_Func_Ex,0x0,
HKLM,%ServiceRoot%"\Elantech\SmartPad",Cover_Func_Path,0x0,
HKLM,%ServiceRoot%"\Elantech\SmartPad",Cover_STV,0x10001,2
; STV
HKLM,%ServiceRoot%"\Elantech\SmartPad",STV_Slider,0x10001,5
; Palm
HKLM,%ServiceRoot%"\Elantech\SmartPad",Palm_Slider,0x10001,2
; PageUpDown
HKLM,%ServiceRoot%"\Elantech\SmartPad",PageUpDown_Enable,0x10001,1
; Three Finger Move Function
HKLM,%ServiceRoot%"\Elantech\SmartPad",ThreeFingerMoveUp,0x10001,1
HKLM,%ServiceRoot%"\Elantech\SmartPad",ThreeFingerMoveDown,0x10001,1
HKLM,%ServiceRoot%"\Elantech\SmartPad",ThreeFingerMoveLeft,0x10001,1
HKLM,%ServiceRoot%"\Elantech\SmartPad",ThreeFingerMoveRight,0x10001,1
; EdgeMotion
HKLM,%ServiceRoot%"\Elantech\SmartPad",SM_Enable,0x10001,0
HKLM,%ServiceRoot%"\Elantech\SmartPad",SM_Radio,0x10001,0
HKLM,%ServiceRoot%"\Elantech\SmartPad",SM_Radio2_Slider,0x10001,3
HKLM,%ServiceRoot%"\Elantech\SmartPad",SL_Enable,0x10001,0
HKLM,%ServiceRoot%"\Elantech\SmartPad",SL_Key,0x10001,0
; EdgeScroll
HKLM,%ServiceRoot%"\Elantech\SmartPad",EGS_V_Enable,0x10001,1
HKLM,%ServiceRoot%"\Elantech\SmartPad",EGS_H_Enable,0x10001,1
HKLM,%ServiceRoot%"\Elantech\SmartPad",EGS_AutoScroll_Enable,0x10001,1
HKLM,%ServiceRoot%"\Elantech\SmartPad",EGS_V_Area,0x10001,1
HKLM,%ServiceRoot%"\Elantech\SmartPad",EGS_H_Area,0x10001,1
HKLM,%ServiceRoot%"\Elantech\SmartPad",EGS_Speed,0x10001,3
; Lighting
HKLM,%ServiceRoot%"\Elantech\SmartPad",Light_Enable,0x10001,0

;----------------------------------------------------------------------------
; PointStick Default

; Button
HKLM,%ServiceRoot%"\Elantech\PointStick",Button_Enable,0x10001,1
HKLM,%ServiceRoot%"\Elantech\PointStick",Button_Left,0x10001,0
HKLM,%ServiceRoot%"\Elantech\PointStick",Button_Left_Ex,0x0,
HKLM,%ServiceRoot%"\Elantech\PointStick",Button_Left_Path,0x0,
HKLM,%ServiceRoot%"\Elantech\PointStick",Button_Middle,0x10001,2
HKLM,%ServiceRoot%"\Elantech\PointStick",Button_Middle_Ex,0x0,
HKLM,%ServiceRoot%"\Elantech\PointStick",Button_Middle_Path,0x0,
HKLM,%ServiceRoot%"\Elantech\PointStick",Button_Right,0x10001,1
HKLM,%ServiceRoot%"\Elantech\PointStick",Button_Right_Ex,0x0,
HKLM,%ServiceRoot%"\Elantech\PointStick",Button_Right_Path,0x0,
; Scroll
HKLM,%ServiceRoot%"\Elantech\PointStick",SC_V_Enable,0x10001,1
HKLM,%ServiceRoot%"\Elantech\PointStick",SC_H_Enable,0x10001,1
HKLM,%ServiceRoot%"\Elantech\PointStick",SC_Speed,0x10001,0
HKLM,%ServiceRoot%"\Elantech\PointStick",SC_STV,0x10001,4
; Z
HKLM,%ServiceRoot%"\Elantech\PointStick",Z_Enable,0x10001,0
HKLM,%ServiceRoot%"\Elantech\PointStick",Z_Drag_Enable,0x10001,0
HKLM,%ServiceRoot%"\Elantech\PointStick",Z_ReleasetoSelect,0x10001,0
HKLM,%ServiceRoot%"\Elantech\PointStick",Z_Func,0x10001,1
HKLM,%ServiceRoot%"\Elantech\PointStick",Z_Func_Ex,0x0,
HKLM,%ServiceRoot%"\Elantech\PointStick",Z_Func_Path,0x0,
HKLM,%ServiceRoot%"\Elantech\PointStick",Z_Select_Speed,0x10001,1
; STV
HKLM,%ServiceRoot%"\Elantech\PointStick",STV_Slider,0x10001,1

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

[Uninstall.AddReg]
HKLM,%NameReg1%\%UETD%,DisplayIcon,0x00020000,"%ProgramFiles%\%TargetDir%\ETDCtrl.exe"
HKLM,%NameReg1%\%UETD%,DisplayName,0x00000000,"ETDWare PS/2-x64 7.0.7.0_WHQL"
HKLM,%NameReg1%\%UETD%,UninstallString,0x00020000,"%ProgramFiles%\%TargetDir%\ETDUn_inst.exe"
HKLM,%NameReg1%\%UETD%,Publisher,,"ELAN Microelectronics Corp."
;HKLM,%NameReg1%\%UETD%,URLInfoAbout,,"http://www.emc.com.tw"
HKLM,%NameReg1%\%UETD%,DisplayVersion,,"7.0.7.0"
HKLM,%NameReg1%\%UETD%,NoModify,0x00010001,1
HKLM,%NameReg1%\%UETD%,NoRepair,0x00010001,1

;----------------------------------------------------------------------------
; String Table
;----------------------------------------------------------------------------

[Strings]
PS2.DeviceDesc 		= "ELAN PS/2 Port Input Device"
PS2.ELANDeviceDesc 	= "ELAN PS/2 Port Smart-Pad"
TargetDir		= "Elantech"
DiskName  		= "ETDWare Driver Disk"
Elantech 		= "ELAN"
NameReg1 		= "SOFTWARE\Microsoft\Windows\CurrentVersion"
NameReg2 		= "Controls Folder\Mouse\shellex"
NameReg3 		= "PropertySheetHandlers\DriverPages"
UETD     		= "Uninstall\Elantech"
ServiceRoot 		= "System\CurrentControlSet\Services"

