;============================================================================ 
; Installation file (.inf) for Windows 7/8/8.1/10.
;
; All Rights Reserved, Copyright(C) ELAN Microelectronics Corp. 2003-2015
;============================================================================

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

[SourceDisksNames]
1=%DiskName%,,

[SourceDisksFiles]
ETD.inf = 1
ETD.sys = 1
ETDCoInstaller15017.dll = 1
ETDCtrl.exe = 1
ETDProperties.exe = 1
ETDApix.dll = 1
ETDCmds.dll = 1
ETDUninst.dll = 1
ETDUn_inst.exe = 1
ETDMcpl.dll = 1
ETDApi.dll = 1
ETDFavorite.dll = 1
;ETDFingerPositioner.exe = 1 
;ETDHValueMonitor.exe = 1
ETDDeviceInformation.exe = 1
ETDCtrlHelper.exe = 1
ETDApi32.dll = 1
ETD_DLL.dll = 1
ETDSetup.ini = 1
ETDAniConf.exe = 1
Button_ClickPad.avi = 1
Button_SmartPad.avi = 1
DnD01.avi = 1
DnD02.avi = 1
DnD03.avi = 1
Edge_Auto.avi = 1
Edge_Inertial.avi = 1
Edge_Scroll.avi = 1
Rotation_Twist.avi = 1
Scroll_Auto.avi = 1
Scroll_Inertial.avi = 1
Scroll_No_FreeScroll.avi = 1
Swipe_3F_LR_PageupDown.avi = 1
Swipe_3F_UpDown_SlideShow.avi = 1
Tapping_1F.avi = 1
Zooming.avi = 1
Press_3F.avi = 1
Continuous_EdgeScroll_H.avi = 1
Continuous_EdgeScroll_V.avi = 1
Continuous_Scroll_V_2F.avi = 1
Continuous_Scroll_H_2F.avi = 1
ETDIntelligent.exe = 1
Lenovo.exe = 1
Lenovo_Win8.exe = 1
Scroll_Reverse_V.avi = 1
Scroll_Reverse_H.avi = 1
Edge_Reverse_V.avi = 1
Edge_Reverse_H.avi = 1
Win8EdgeSwipe_Left.avi = 1
Win8EdgeSwipe_Right.avi = 1
Win8EdgeSwipe_Top.avi = 1
ETDService.exe = 1
Continuous_EdgeScroll_Reverse-H.avi = 1
Continuous_EdgeScroll_Reverse-V.avi = 1
Continuous_Scroll_Reverse-H_2F.avi = 1
Continuous_Scroll_Reverse-V_2F.avi = 1
Edge_Auto_Reverse.avi = 1
Edge_Inertial_Reverse.avi = 1
Scroll_Auto_Reverse.avi = 1
Scroll_Inertial_Reverse.avi = 1
PTP_Swipe_3F_Up_Down_Left_Right.avi = 1
PTP_Tapping_3F_Cortana.avi = 1
PTP_Tapping_4F_Notification_Center.avi = 1
ETDTouch.exe = 1
LenovoAPI.dll = 1

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

[Manufacturer]
%VenderName%   = ELAN.Mfg, NTamd64, NTamd64.6.2, NTamd64.6.3, NTamd64.10.0 

[ELAN.Mfg.NTamd64]
%LenovoElanDeviceDesc% 		= ETD_DUALMODE3A2_Inst, *LEN004F					; Clickpad Dual Mode for Lenovo JP 3+2 Storm
%LenovoElanDeviceDesc% 		= ETD_DUALMODE3A2_Inst, *LEN2030					; Clickpad Dual Mode for Lenovo JP 3+2 Carling
%LenovoElanDeviceDesc% 		= ETD_DUALMODE3A2_Inst, *LEN2031					; Clickpad Dual Mode for Lenovo JP 3+2 Bell
%LenovoElanDeviceDesc% 		= ETD_DUALMODE3A2_Inst, *LEN2032					; Clickpad Dual Mode for Lenovo JP 3+2 Bell 2
%LenovoElanDeviceDesc% 		= ETD_DUALMODE3A2_Inst, *LEN2033					; Clickpad Dual Mode for Lenovo JP 3+2 Storm 2
%LenovoElanDeviceDesc% 		= ETD_DUALMODE3A2_Inst, ACPI\LEN004F					; Clickpad Dual Mode for Lenovo JP 3+2 Storm
%LenovoElanDeviceDesc% 		= ETD_DUALMODE3A2_Inst, ACPI\LEN2030					; Clickpad Dual Mode for Lenovo JP 3+2 Carling
%LenovoElanDeviceDesc% 		= ETD_DUALMODE3A2_Inst, ACPI\LEN2031					; Clickpad Dual Mode for Lenovo JP 3+2 Bell
%LenovoElanDeviceDesc% 		= ETD_DUALMODE3A2_Inst, ACPI\LEN2032					; Clickpad Dual Mode for Lenovo JP 3+2 Bell 2
%LenovoElanDeviceDesc% 		= ETD_DUALMODE3A2_Inst, ACPI\LEN2033					; Clickpad Dual Mode for Lenovo JP 3+2 Storm 2

[ELAN.Mfg.NTamd64.6.2]
%LenovoElanDeviceDesc% 		= ETD_DUALMODE3A2_Inst, *LEN004F					; Clickpad Dual Mode for Lenovo JP 3+2 Storm
%LenovoElanDeviceDesc% 		= ETD_DUALMODE3A2_Inst, *LEN2030					; Clickpad Dual Mode for Lenovo JP 3+2 Carling
%LenovoElanDeviceDesc% 		= ETD_DUALMODE3A2_Inst, *LEN2031					; Clickpad Dual Mode for Lenovo JP 3+2 Bell
%LenovoElanDeviceDesc% 		= ETD_DUALMODE3A2_Inst, *LEN2032					; Clickpad Dual Mode for Lenovo JP 3+2 Bell 2
%LenovoElanDeviceDesc% 		= ETD_DUALMODE3A2_Inst, *LEN2033					; Clickpad Dual Mode for Lenovo JP 3+2 Storm 2
%LenovoElanDeviceDesc% 		= ETD_DUALMODE3A2_Inst, ACPI\LEN004F					; Clickpad Dual Mode for Lenovo JP 3+2 Storm
%LenovoElanDeviceDesc% 		= ETD_DUALMODE3A2_Inst, ACPI\LEN2030					; Clickpad Dual Mode for Lenovo JP 3+2 Carling
%LenovoElanDeviceDesc% 		= ETD_DUALMODE3A2_Inst, ACPI\LEN2031					; Clickpad Dual Mode for Lenovo JP 3+2 Bell
%LenovoElanDeviceDesc% 		= ETD_DUALMODE3A2_Inst, ACPI\LEN2032					; Clickpad Dual Mode for Lenovo JP 3+2 Bell 2
%LenovoElanDeviceDesc% 		= ETD_DUALMODE3A2_Inst, ACPI\LEN2033					; Clickpad Dual Mode for Lenovo JP 3+2 Storm 2

[ELAN.Mfg.NTamd64.6.3]
%LenovoElanDeviceDesc% 		= ETD_DUALMODE3A2_Inst, *LEN004F					; Clickpad Dual Mode for Lenovo JP 3+2 Storm
%LenovoElanDeviceDesc% 		= ETD_DUALMODE3A2_Inst, *LEN2030					; Clickpad Dual Mode for Lenovo JP 3+2 Carling
%LenovoElanDeviceDesc% 		= ETD_DUALMODE3A2_Inst, *LEN2031					; Clickpad Dual Mode for Lenovo JP 3+2 Bell
%LenovoElanDeviceDesc% 		= ETD_DUALMODE3A2_Inst, *LEN2032					; Clickpad Dual Mode for Lenovo JP 3+2 Bell 2
%LenovoElanDeviceDesc% 		= ETD_DUALMODE3A2_Inst, *LEN2033					; Clickpad Dual Mode for Lenovo JP 3+2 Storm 2
%LenovoElanDeviceDesc% 		= ETD_DUALMODE3A2_Inst, ACPI\LEN004F					; Clickpad Dual Mode for Lenovo JP 3+2 Storm
%LenovoElanDeviceDesc% 		= ETD_DUALMODE3A2_Inst, ACPI\LEN2030					; Clickpad Dual Mode for Lenovo JP 3+2 Carling
%LenovoElanDeviceDesc% 		= ETD_DUALMODE3A2_Inst, ACPI\LEN2031					; Clickpad Dual Mode for Lenovo JP 3+2 Bell
%LenovoElanDeviceDesc% 		= ETD_DUALMODE3A2_Inst, ACPI\LEN2032					; Clickpad Dual Mode for Lenovo JP 3+2 Bell 2
%LenovoElanDeviceDesc% 		= ETD_DUALMODE3A2_Inst, ACPI\LEN2033					; Clickpad Dual Mode for Lenovo JP 3+2 Storm 2

[ELAN.Mfg.NTamd64.10.0]
%LenovoElanDeviceDesc% 		= ETD_DUALMODE3A2_WIN10_Inst, ACPI\LEN004F					; Clickpad Dual Mode for Lenovo JP 3+2 Storm
%LenovoElanDeviceDesc% 		= ETD_DUALMODE3A2_WIN10_Inst, ACPI\LEN2030					; Clickpad Dual Mode for Lenovo JP 3+2 Carling
%LenovoElanDeviceDesc% 		= ETD_DUALMODE3A2_WIN10_Inst, ACPI\LEN2031					; Clickpad Dual Mode for Lenovo JP 3+2 Bell
%LenovoElanDeviceDesc% 		= ETD_DUALMODE3A2_WIN10_Inst, ACPI\LEN2032					; Clickpad Dual Mode for Lenovo JP 3+2 Bell 2
%LenovoElanDeviceDesc% 		= ETD_DUALMODE3A2_WIN10_Inst, ACPI\LEN2033					; Clickpad Dual Mode for Lenovo JP 3+2 Storm 2

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


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

[ETD_Service_Inst]
DisplayName    = %PS2DeviceDesc%
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,,,0x00000001

[ETDCoInstaller.CopyFiles]
ETDCoInstaller15017.dll,,,0x00002004

[ETDApp.CopyFiles]
ETD.inf,,,0x00004000
ETDProperties.exe,,,0x00004000
ETDUninst.dll,,,0x00004000
ETDUn_inst.exe,,,0x00004000
ETDApi.dll,,,0x00004000
ETDDeviceInformation.exe,,,0x00004000
ETDApi32.dll,,,0x00004000
ETD_DLL.dll,,,0x00004000
ETDService.exe,,,0x00004000
ETDCtrl.exe,,,0x00004000
ETDCtrlHelper.exe,,,0x00004000
ETDApix.dll,,,0x00004000
ETDCmds.dll,,,0x00004000
ETDMcpl.dll,,,0x00004000
ETDFavorite.dll,,,0x00004000
ETDTouch.exe,,,0x00004000
ETDService.exe,,,0x00004000
ETDAniConf.exe,,,0x00004000
ETDIntelligent.exe,,,0x0004
Lenovo.exe,,,0x00004000
Lenovo_Win8.exe,,,0x00004000
ETDTouch.exe,,,0x00004000
LenovoAPI.dll,,,0x00004000

[ETDAnimation.CopyFiles]
Button_ClickPad.avi,,,0x0004
Button_SmartPad.avi,,,0x0004
DnD01.avi,,,0x0004
DnD02.avi,,,0x0004
DnD03.avi,,,0x0004
Edge_Auto.avi,,,0x0004
Edge_Inertial.avi,,,0x0004
Edge_Scroll.avi,,,0x0004
Rotation_Twist.avi,,,0x0004
Scroll_Auto.avi,,,0x0004
Scroll_Inertial.avi,,,0x0004
Scroll_No_FreeScroll.avi,,,0x0004
Swipe_3F_LR_PageupDown.avi,,,0x0004
Tapping_1F.avi,,,0x0004
Zooming.avi,,,0x0004
Press_3F.avi,,,0x0004
Continuous_EdgeScroll_H.avi,,,0x0004
Continuous_EdgeScroll_V.avi,,,0x0004
Continuous_Scroll_V_2F.avi,,,0x0004
Continuous_Scroll_H_2F.avi,,,0x0004
Scroll_Reverse_V.avi,,,0x0004
Scroll_Reverse_H.avi,,,0x0004
Edge_Reverse_V.avi,,,0x0004
Edge_Reverse_H.avi,,,0x0004
Win8EdgeSwipe_Left.avi,,,0x0004
Win8EdgeSwipe_Right.avi,,,0x0004
Win8EdgeSwipe_Top.avi,,,0x0004
Continuous_EdgeScroll_Reverse-H.avi,,,0x0004
Continuous_EdgeScroll_Reverse-V.avi,,,0x0004
Continuous_Scroll_Reverse-H_2F.avi,,,0x0004
Continuous_Scroll_Reverse-V_2F.avi,,,0x0004
Edge_Auto_Reverse.avi,,,0x0004
Edge_Inertial_Reverse.avi,,,0x0004
Scroll_Auto_Reverse.avi,,,0x0004
Scroll_Inertial_Reverse.avi,,,0x0004
PTP_Swipe_3F_Up_Down_Left_Right.avi,,,0x0004
PTP_Tapping_3F_Cortana.avi,,,0x0004
PTP_Tapping_4F_Notification_Center.avi,,,0x0004
ETDSetup.ini,,,0x00004000

;----------------------------------------------------------------------------
; PS/2 SmartPad
;----------------------------------------------------------------------------
[ETD_STD_Inst]
FeatureScore=F9
Include=msmouse.inf
Needs=PS2_Inst
CopyFiles=ETDSys.CopyFiles,\
          ETDApp.CopyFiles,\
          ETDAnimation.CopyFiles
		  
AddReg=ETD_System.AddReg

[ETD_STD_Inst.Services]
Include=msmouse.inf
Needs=PS2_Inst.Services
AddService = ETD,0x00000000, ETD_Service_Inst

[ETD_STD_Inst.CoInstallers]
AddReg    = ETDCoInstaller.AddReg
CopyFiles = ETDCoInstaller.CopyFiles

[ETD_STD_Inst.HW]
AddReg = ETD_AddReg.HW

;----------------------------------------------------------------------------
; Dual Mode
;----------------------------------------------------------------------------
[ETD_DUALMODE3A2_Inst]
FeatureScore=F9
Include=msmouse.inf
Needs=PS2_Inst
CopyFiles=ETDSys.CopyFiles,\
          ETDApp.CopyFiles,\
          ETDAnimation.CopyFiles

DelReg=RunETDCtrl_DelReg
AddReg=DualMode3A2_System.AddReg

[ETD_DUALMODE3A2_Inst.Services]
Include=msmouse.inf
Needs=PS2_Inst.Services
AddService = ETD,0x00000000, ETD_Service_Inst

[ETD_DUALMODE3A2_Inst.CoInstallers]
AddReg    = ETDCoInstaller.AddReg
CopyFiles = ETDCoInstaller.CopyFiles

[ETD_DUALMODE3A2_Inst.HW]
AddReg = ETD_AddReg.HW
[ETD_DUALMODE3A2_WIN10_Inst]
FeatureScore=F9
Include=msmouse.inf
Needs=PS2_Inst
CopyFiles=ETDSys.CopyFiles,\
          ETDApp.CopyFiles,\
          ETDAnimation.CopyFiles

DelReg=ProgramFeature_DelReg, RunETDCtrl_DelReg
AddReg=DualMode3A2_System_WIN10.AddReg

[ETD_DUALMODE3A2_WIN10_Inst.Services]
Include=msmouse.inf
Needs=PS2_Inst.Services
AddService = ETD,0x00000000, ETD_Service_Inst

[ETD_DUALMODE3A2_WIN10_Inst.CoInstallers]
AddReg    = ETDCoInstaller.AddReg
CopyFiles = ETDCoInstaller.CopyFiles

[ETD_DUALMODE3A2_WIN10_Inst.HW]
AddReg = ETD_AddReg.HW
;----------------------------------------------------------------------------
; Lenovo system
;----------------------------------------------------------------------------
[ETD_LENOVO_Inst]
FeatureScore=F9
Include=msmouse.inf
Needs=PS2_Inst
CopyFiles=ETDSys.CopyFiles,\
          ETDApp.CopyFiles,\
          ETDAnimation.CopyFiles
		  
AddReg=Lenovo_System.AddReg

[ETD_LENOVO_Inst.Services]
Include=msmouse.inf
Needs=PS2_Inst.Services
AddService = ETD,0x00000000, ETD_Service_Inst

[ETD_LENOVO_Inst.CoInstallers]
AddReg    = ETDCoInstaller.AddReg
CopyFiles = ETDCoInstaller.CopyFiles

[ETD_LENOVO_Inst.HW]
AddReg = ETD_AddReg.HW

;----------------------------------------------------------------------------
[ETD_AddReg.HW]
HKR,,"UpperFilters",0x00010000,"ETD"
[ETDCoInstaller.AddReg]
HKR,,CoInstallers32,0x10000,"ETDCoInstaller15017.dll,CoInstallerEntry"

;----------------------------------------------------------------------------
; 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,"Software\Microsoft\Windows\CurrentVersion\Shell Extensions\Approved",{0066D4B3-8DE0-4D08-AA83-EDD50E2431F0}
HKLM,"Software\Microsoft\Windows\CurrentVersion\Controls Folder\Mouse\shellex\PropertySheetHandlers\ETD"
HKLM,Software\Microsoft\Windows\CurrentVersion\Run,ETDCtrl
HKLM,%ServiceRoot%"\Elantech
;HKLM,%ServiceRoot%"\ETD
HKCU,Software\Elantech

;----------------------------------------------------------------------------
; System Section
;----------------------------------------------------------------------------

[ETD_System.AddReg]
HKCR,CLSID\{0066D4B3-8DE0-4D08-AA83-EDD50E2431F0}\InProcServer32,,%REG_EXPAND_SZ%,"%%ProgramFiles%%\%TargetDir%\ETDMcpl.dll"
HKCR,CLSID\{0066D4B3-8DE0-4D08-AA83-EDD50E2431F0}\InProcServer32,ThreadingModel,%REG_SZ%,"Apartment"
HKLM,"Software\Microsoft\Windows\CurrentVersion\Shell Extensions\Approved",{0066D4B3-8DE0-4D08-AA83-EDD50E2431F0},%REG_SZ%,"ELAN Control Panel"

HKLM,"Software\Microsoft\Windows\CurrentVersion\Controls Folder\Mouse\shellex\PropertySheetHandlers\ETD",,%REG_SZ%,"{0066D4B3-8DE0-4D08-AA83-EDD50E2431F0}"
;HKLM,Software\Microsoft\Windows\CurrentVersion\Run,ETDCtrl,%REG_EXPAND_SZ%,"%%ProgramFiles%%\%TargetDir%\ETDCtrl.exe"

HKLM,%ServiceRoot%"\Elantech",InstallDir,%REG_SZ%,"%1%"
HKLM,%ServiceRoot%"\Elantech",Version,%REG_SZ%,"%DriverVersion%"
HKLM,%ServiceRoot%"\Elantech",DriverVersion,%REG_SZ%,"ELAN Touchpad %DriverVersion%_%DriverBit%_%DriverVersionExtend%"
HKLM,%ServiceRoot%"\Elantech",ScreenOrientation,%REG_DWORD%,0

; Windows\CurrentVersion\Uninstall
HKLM,Software\Microsoft\Windows\CurrentVersion\Uninstall\Elantech,DisplayName,%REG_SZ%,"ELAN Touchpad %DriverVersion%_%DriverBit%_%DriverVersionExtend%"
HKLM,Software\Microsoft\Windows\CurrentVersion\Uninstall\Elantech,UninstallString,%REG_EXPAND_SZ%,"%%ProgramFiles%%\%TargetDir%\ETDUn_inst.exe"
HKLM,Software\Microsoft\Windows\CurrentVersion\Uninstall\Elantech,DisplayVersion,%REG_SZ%,"%DriverVersion%"
HKLM,Software\Microsoft\Windows\CurrentVersion\Uninstall\Elantech,DisplayIcon,%REG_EXPAND_SZ%,"%%ProgramFiles%%\%TargetDir%\ETDCtrl.exe"
HKLM,Software\Microsoft\Windows\CurrentVersion\Uninstall\Elantech,Publisher,%REG_SZ%,%Publisher%
HKLM,Software\Microsoft\Windows\CurrentVersion\Uninstall\Elantech,URLInfoAbout,%REG_SZ%,"www.emc.com.tw"
HKLM,Software\Microsoft\Windows\CurrentVersion\Uninstall\Elantech,NoModify,%REG_DWORD%,1
HKLM,Software\Microsoft\Windows\CurrentVersion\Uninstall\Elantech,NoRepair,%REG_DWORD%,1

[DualMode3A2_System.AddReg]
HKCR,CLSID\{0066D4B3-8DE0-4D08-AA83-EDD50E2431F0}\InProcServer32,,%REG_EXPAND_SZ%,"%%ProgramFiles%%\%TargetDir%\ETDMcpl.dll"
HKCR,CLSID\{0066D4B3-8DE0-4D08-AA83-EDD50E2431F0}\InProcServer32,ThreadingModel,%REG_SZ%,"Apartment"
HKLM,"Software\Microsoft\Windows\CurrentVersion\Shell Extensions\Approved",{0066D4B3-8DE0-4D08-AA83-EDD50E2431F0},%REG_SZ%,"UltraNav"

HKLM,"Software\Microsoft\Windows\CurrentVersion\Controls Folder\Mouse\shellex\PropertySheetHandlers\ETD",,%REG_SZ%,"{0066D4B3-8DE0-4D08-AA83-EDD50E2431F0}"
;HKLM,Software\Microsoft\Windows\CurrentVersion\Run,ETDCtrl,%REG_EXPAND_SZ%,"%%ProgramFiles%%\%TargetDir%\ETDCtrl.exe"

HKLM,"%ServiceRoot%\Elantech",InstallDir,%REG_SZ%,"%1%"
HKLM,"%ServiceRoot%\Elantech",Version,%REG_SZ%,"%DriverVersion%"
HKLM,"%ServiceRoot%\Elantech",DriverVersion,%REG_SZ%,"ELAN Touchpad %DriverVersion%_%DriverBit%_%DriverVersionExtend%"
HKLM,"%ServiceRoot%\Elantech",ScreenOrientation,%REG_DWORD%,0

; Windows\CurrentVersion\Uninstall
HKLM,Software\Microsoft\Windows\CurrentVersion\Uninstall\Elantech,DisplayName,%REG_SZ%,"%ThinkPadStringNameNew%"
HKLM,Software\Microsoft\Windows\CurrentVersion\Uninstall\Elantech,UninstallString,%REG_EXPAND_SZ%,"%%ProgramFiles%%\%TargetDir%\ETDUn_inst.exe"
HKLM,Software\Microsoft\Windows\CurrentVersion\Uninstall\Elantech,DisplayVersion,%REG_SZ%,"%DriverVersion%"
HKLM,Software\Microsoft\Windows\CurrentVersion\Uninstall\Elantech,DisplayIcon,%REG_EXPAND_SZ%,"%%ProgramFiles%%\%TargetDir%\ETDCtrl.exe"
HKLM,Software\Microsoft\Windows\CurrentVersion\Uninstall\Elantech,Publisher,%REG_SZ%,%Publisher%
HKLM,Software\Microsoft\Windows\CurrentVersion\Uninstall\Elantech,URLInfoAbout,%REG_SZ%,"www.emc.com.tw"
HKLM,Software\Microsoft\Windows\CurrentVersion\Uninstall\Elantech,NoModify,%REG_DWORD%,1
HKLM,Software\Microsoft\Windows\CurrentVersion\Uninstall\Elantech,NoRepair,%REG_DWORD%,1
[DualMode3A2_System_WIN10.AddReg]
HKCR,CLSID\{0066D4B3-8DE0-4D08-AA83-EDD50E2431F0}\InProcServer32,,%REG_EXPAND_SZ%,"%%ProgramFiles%%\%TargetDir%\ETDMcpl.dll"
HKCR,CLSID\{0066D4B3-8DE0-4D08-AA83-EDD50E2431F0}\InProcServer32,ThreadingModel,%REG_SZ%,"Apartment"
HKLM,"Software\Microsoft\Windows\CurrentVersion\Shell Extensions\Approved",{0066D4B3-8DE0-4D08-AA83-EDD50E2431F0},%REG_SZ%,"UltraNav"

HKLM,"Software\Microsoft\Windows\CurrentVersion\Controls Folder\Mouse\shellex\PropertySheetHandlers\ETD",,%REG_SZ%,"{0066D4B3-8DE0-4D08-AA83-EDD50E2431F0}"
;HKLM,Software\Microsoft\Windows\CurrentVersion\Run,ETDCtrl,%REG_EXPAND_SZ%,"%%ProgramFiles%%\%TargetDir%\ETDCtrl.exe"

HKLM,"%ServiceRoot%\Elantech",InstallDir,%REG_SZ%,"%1%"
HKLM,"%ServiceRoot%\Elantech",Version,%REG_SZ%,"%DriverVersion%"
HKLM,"%ServiceRoot%\Elantech",DriverVersion,%REG_SZ%,"ELAN Touchpad %DriverVersion%_%DriverBit%_%DriverVersionExtend%"
HKLM,"%ServiceRoot%\Elantech",ScreenOrientation,%REG_DWORD%,0

; Windows\CurrentVersion\Uninstall
;HKLM,Software\Microsoft\Windows\CurrentVersion\Uninstall\Elantech,DisplayName,%REG_SZ%,"%ThinkPadStringNameNew%"
;HKLM,Software\Microsoft\Windows\CurrentVersion\Uninstall\Elantech,UninstallString,%REG_EXPAND_SZ%,"%%ProgramFiles%%\%TargetDir%\ETDUn_inst.exe"
;HKLM,Software\Microsoft\Windows\CurrentVersion\Uninstall\Elantech,DisplayVersion,%REG_SZ%,"%DriverVersion%"
;HKLM,Software\Microsoft\Windows\CurrentVersion\Uninstall\Elantech,DisplayIcon,%REG_EXPAND_SZ%,"%%ProgramFiles%%\%TargetDir%\ETDCtrl.exe"
;HKLM,Software\Microsoft\Windows\CurrentVersion\Uninstall\Elantech,Publisher,%REG_SZ%,%Publisher%
;HKLM,Software\Microsoft\Windows\CurrentVersion\Uninstall\Elantech,URLInfoAbout,%REG_SZ%,"www.emc.com.tw"
;HKLM,Software\Microsoft\Windows\CurrentVersion\Uninstall\Elantech,NoModify,%REG_DWORD%,1
;HKLM,Software\Microsoft\Windows\CurrentVersion\Uninstall\Elantech,NoRepair,%REG_DWORD%,1
[Lenovo_System.AddReg]
HKCR,CLSID\{0066D4B3-8DE0-4D08-AA83-EDD50E2431F0}\InProcServer32,,%REG_EXPAND_SZ%,"%%ProgramFiles%%\%TargetDir%\ETDMcpl.dll"
HKCR,CLSID\{0066D4B3-8DE0-4D08-AA83-EDD50E2431F0}\InProcServer32,ThreadingModel,%REG_SZ%,"Apartment"
HKLM,"Software\Microsoft\Windows\CurrentVersion\Shell Extensions\Approved",{0066D4B3-8DE0-4D08-AA83-EDD50E2431F0},%REG_SZ%,"Lenovo"

HKLM,"Software\Microsoft\Windows\CurrentVersion\Controls Folder\Mouse\shellex\PropertySheetHandlers\ETD",,%REG_SZ%,"{0066D4B3-8DE0-4D08-AA83-EDD50E2431F0}"
;HKLM,Software\Microsoft\Windows\CurrentVersion\Run,ETDCtrl,%REG_EXPAND_SZ%,"%%ProgramFiles%%\%TargetDir%\ETDCtrl.exe"

HKLM,%ServiceRoot%"\Elantech",InstallDir,%REG_SZ%,"%1%"
HKLM,%ServiceRoot%"\Elantech",Version,%REG_SZ%,"%DriverVersion%"
HKLM,%ServiceRoot%"\Elantech",DriverVersion,%REG_SZ%,"ELAN Touchpad %DriverVersion%_%DriverBit%_%DriverVersionExtend%"
HKLM,%ServiceRoot%"\Elantech",ScreenOrientation,%REG_DWORD%,0

; Windows\CurrentVersion\Uninstall
HKLM,Software\Microsoft\Windows\CurrentVersion\Uninstall\Elantech,DisplayName,%REG_SZ%,"%LenovoStringName%"
HKLM,Software\Microsoft\Windows\CurrentVersion\Uninstall\Elantech,UninstallString,%REG_EXPAND_SZ%,"%%ProgramFiles%%\%TargetDir%\ETDUn_inst.exe"
HKLM,Software\Microsoft\Windows\CurrentVersion\Uninstall\Elantech,DisplayVersion,%REG_SZ%,"%DriverVersion%"
HKLM,Software\Microsoft\Windows\CurrentVersion\Uninstall\Elantech,DisplayIcon,%REG_EXPAND_SZ%,"%%ProgramFiles%%\%TargetDir%\ETDCtrl.exe"
HKLM,Software\Microsoft\Windows\CurrentVersion\Uninstall\Elantech,Publisher,%REG_SZ%,%Publisher%
HKLM,Software\Microsoft\Windows\CurrentVersion\Uninstall\Elantech,URLInfoAbout,%REG_SZ%,"www.emc.com.tw"
HKLM,Software\Microsoft\Windows\CurrentVersion\Uninstall\Elantech,NoModify,%REG_DWORD%,1
HKLM,Software\Microsoft\Windows\CurrentVersion\Uninstall\Elantech,NoRepair,%REG_DWORD%,1
[ProgramFeature_DelReg]
; Windows\CurrentVersion\Uninstall
HKLM,Software\Microsoft\Windows\CurrentVersion\Uninstall\Elantech

[RunETDCtrl_DelReg]
HKLM,Software\Microsoft\Windows\CurrentVersion\Run,ETDCtrl
;----------------------------------------------------------------------------
; String Table
;----------------------------------------------------------------------------

[Strings]
PS2DeviceDesc 		= "ELAN PS/2 Port Input Device"
;ELANDeviceDesc 	= "ELAN PS/2 Port Smart-Pad"
ELANHIDDeviceDesc 	= "ELAN PS/2 Port HID Smart-Pad"
ThinkPadDeviceDesc	= "ThinkPad UltraNav Pointing Device"
LenovoDeviceDesc	= "Lenovo pointing device"
LenovoElanDeviceDesc	= "ELAN pointing device"
Publisher 		= "ELAN Microelectronic Corp."
TargetDir		= "Elantech"
NewTargetDir		= "NewElantech"
DiskName  		= "ETDWare Driver Disk"
VenderName		= "ELAN"
ServiceRoot 		= "System\CurrentControlSet\Control"

; Registry Type
REG_EXPAND_SZ		= 0x00020000 
REG_DWORD		= 0x00010001 
REG_MULTI_SZ		= 0x00010000
REG_BINARY		= 0x00000001
REG_SZ			= 0x00000000

; ELAN Driver Information
ELANStringName		= "ELAN Input Device Driver"
ThinkPadStringName	= "ThinkPad UltraNav Driver"
ThinkPadStringNameNew	= "ELAN pointing device"
LenovoStringName	= "Lenovo pointing device"
ELANDeviceDesc 		= "ELAN pointing device"
ELANProgamName		= "ELAN Pointing Driver"
DriverDate		= "11/03/2017"
DriverVersion		= "11.21.11.2"
DriverBit		= "X64"
DriverVersionExtend	= "WHQL"        ; Beta or WHQL
 