1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80
|
Function un.DeleteInstalledFiles
Delete "$INSTDIR\AUTHORS"
Delete "$INSTDIR\cec.dll"
Delete "$INSTDIR\cec.pdb"
Delete "$INSTDIR\cecc-client.exe"
Delete "$INSTDIR\cec-client.exe"
Delete "$INSTDIR\cec-firmware-latest.exe"
Delete "$INSTDIR\ChangeLog"
Delete "$INSTDIR\COPYING"
Delete "$INSTDIR\libusb0.dll"
Delete "$INSTDIR\LICENSE"
Delete "$INSTDIR\README.*"
Delete "$INSTDIR\tv_on.cmd"
Delete "$INSTDIR\tv_off.cmd"
Delete "$INSTDIR\include\cec*.h"
Delete "$INSTDIR\netcore\LibCecSharpCore.deps.json"
Delete "$INSTDIR\netcore\LibCecSharpCore.dll"
Delete "$INSTDIR\netcore\LibCecSharpCore.pdb"
Delete "$INSTDIR\netcore\LibCecSharpCore.runtimeconfig.json"
Delete "$INSTDIR\netcore\LibCecSharpCore.xml"
Delete "$INSTDIR\netcore\CecSharpCoreTester.deps.json"
Delete "$INSTDIR\netcore\CecSharpCoreTester.dll"
Delete "$INSTDIR\netcore\CecSharpCoreTester.runtimeconfig.json"
Delete "$INSTDIR\netcore\CecSharpCoreTester.exe"
Delete "$INSTDIR\netcore\CecSharpCoreTester.pdb"
Delete "$INSTDIR\netfx\LibCecSharp.dll"
Delete "$INSTDIR\netfx\LibCecSharp.pdb"
Delete "$INSTDIR\netfx\LibCecSharp.xml"
Delete "$INSTDIR\netfx\cec-tray.exe"
Delete "$INSTDIR\netfx\CecSharpTester.exe"
Delete "$INSTDIR\python\_cec.pyd"
Delete "$INSTDIR\python\cec\cec.py"
Delete "$INSTDIR\python\cec\__init__.py"
Delete "$INSTDIR\python\pyCecClient.py"
FunctionEnd
; Uninstaller Section
Section "Uninstall"
SetShellVarContext all
Call un.DeleteInstalledFiles
; Uninstall EventGhost plugin
; Eventghost has no uninstall plugin feature so we simply delete the plugin
; from the directory.
ReadRegDword $1 HKLM "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\EventGhost_is1" "InstallLocation"
${If} $1 != ""
RMDir /r "$%PROGRAMDATA%\EventGhost\plugins\PulseEight"
${Endif}
; Uninstall the driver
ReadRegStr $1 HKLM "Software\Pulse-Eight\USB-CEC Adapter driver" ""
${If} $1 != ""
ExecWait '"$1\Uninstall.exe" /S _?=$1'
${EndIf}
RMDir /r "$INSTDIR\include"
Delete "$INSTDIR\uninstall_libcec.exe"
RMDir /r "$INSTDIR"
RMDir "$PROGRAMFILES\Pulse-Eight"
!insertmacro MUI_STARTMENU_GETFOLDER Application $StartMenuFolder
Delete "$SMPROGRAMS\$StartMenuFolder\libCEC Tray.lnk"
${If} ${RunningX64}
Delete "$SMPROGRAMS\$StartMenuFolder\libCEC Tray (x64).lnk"
${EndIf}
Delete "$SMPROGRAMS\$StartMenuFolder\cec-tray.lnk"
Delete "$SMPROGRAMS\$StartMenuFolder\CEC Test client.lnk"
${If} ${RunningX64}
Delete "$SMPROGRAMS\$StartMenuFolder\CEC Test client (x64).lnk"
${EndIf}
Delete "$SMPROGRAMS\$StartMenuFolder\Uninstall Pulse-Eight USB-CEC Adapter software.lnk"
Delete "$SMPROGRAMS\$StartMenuFolder\Visit Pulse-Eight.url"
RMDir "$SMPROGRAMS\$StartMenuFolder"
DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Pulse-Eight USB-CEC Adapter software"
DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Pulse-Eight USB-CEC Adapter driver"
DeleteRegKey /ifempty HKLM "Software\Pulse-Eight\USB-CEC Adapter software"
DeleteRegKey /ifempty HKLM "Software\Pulse-Eight"
SectionEnd
|