nsis: Only uninstall protocol handler for this installation

This commit is contained in:
Zack Middleton 2023-06-11 12:32:13 -05:00 committed by The Turtle Man ♣
parent a119e67fb8
commit 2bca424fce
1 changed files with 7 additions and 1 deletions

View File

@ -22,6 +22,8 @@
!include "MUI2.nsh"
!define MUI_ICON "../quake3.ico"
!include LogicLib.nsh
; The name of the installer
Name "ioquake3"
@ -172,7 +174,11 @@ Section "Uninstall"
; Remove registry keys
DeleteRegKey SHCTX "Software\Microsoft\Windows\CurrentVersion\Uninstall\ioquake3"
DeleteRegKey SHCTX "Software\ioquake3"
DeleteRegKey SHCTX "Software\Classes\quake3"
ReadRegStr $0 SHCTX "Software\Classes\quake3\shell\open\command" ""
${If} $0 == '"$INSTDIR\ioquake3.x86.exe" --uri "%1"'
DeleteRegKey SHCTX "Software\Classes\quake3"
${EndIf}
; Remove files and uninstaller
Delete $INSTDIR\baseq3\cgamex86.dll