;Uninstaller Section Section "Uninstall" SetShellVarContext current Delete "$INSTDIR\AUTHORS" Delete "$INSTDIR\ChangeLog" Delete "$INSTDIR\COPYING" Delete "$INSTDIR\README.md" Delete "$INSTDIR\README.developers.md" Delete "$INSTDIR\README.windows.md" Delete "$INSTDIR\cec.dll" Delete "$INSTDIR\cec.pdb" Delete "$INSTDIR\cecc-client.exe" Delete "$INSTDIR\cec-client.exe" 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" ${If} ${RunningX64} Delete "$INSTDIR\x64\cec.dll" Delete "$INSTDIR\x64\cec.pdb" Delete "$INSTDIR\x64\cecc-client.exe" Delete "$INSTDIR\x64\cec-client.exe" Delete "$INSTDIR\x64\netcore\LibCecSharpCore.deps.json" Delete "$INSTDIR\x64\netcore\LibCecSharpCore.dll" Delete "$INSTDIR\x64\netcore\LibCecSharpCore.pdb" Delete "$INSTDIR\x64\netcore\LibCecSharpCore.runtimeconfig.json" Delete "$INSTDIR\x64\netcore\LibCecSharpCore.xml" Delete "$INSTDIR\x64\netcore\CecSharpCoreTester.deps.json" Delete "$INSTDIR\x64\netcore\CecSharpCoreTester.dll" Delete "$INSTDIR\x64\netcore\CecSharpCoreTester.runtimeconfig.json" Delete "$INSTDIR\x64\netcore\CecSharpCoreTester.exe" Delete "$INSTDIR\x64\netcore\CecSharpCoreTester.pdb" Delete "$INSTDIR\x64\netfx\LibCecSharp.dll" Delete "$INSTDIR\x64\netfx\LibCecSharp.pdb" Delete "$INSTDIR\x64\netfx\LibCecSharp.xml" Delete "$INSTDIR\x64\netfx\cec-tray.exe" Delete "$INSTDIR\x64\netfx\CecSharpTester.exe" ${EndIf} ; Uninstall EventGhost plugin ; Eventghost has no uninstall plugin feature so we sinply 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 sofware" 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