mirror of https://github.com/ioquake/ioq3.git
nsis: Only uninstall protocol handler for this installation
This commit is contained in:
parent
a119e67fb8
commit
2bca424fce
|
@ -22,6 +22,8 @@
|
||||||
!include "MUI2.nsh"
|
!include "MUI2.nsh"
|
||||||
!define MUI_ICON "../quake3.ico"
|
!define MUI_ICON "../quake3.ico"
|
||||||
|
|
||||||
|
!include LogicLib.nsh
|
||||||
|
|
||||||
; The name of the installer
|
; The name of the installer
|
||||||
Name "ioquake3"
|
Name "ioquake3"
|
||||||
|
|
||||||
|
@ -172,7 +174,11 @@ Section "Uninstall"
|
||||||
; Remove registry keys
|
; Remove registry keys
|
||||||
DeleteRegKey SHCTX "Software\Microsoft\Windows\CurrentVersion\Uninstall\ioquake3"
|
DeleteRegKey SHCTX "Software\Microsoft\Windows\CurrentVersion\Uninstall\ioquake3"
|
||||||
DeleteRegKey SHCTX "Software\ioquake3"
|
DeleteRegKey SHCTX "Software\ioquake3"
|
||||||
|
|
||||||
|
ReadRegStr $0 SHCTX "Software\Classes\quake3\shell\open\command" ""
|
||||||
|
${If} $0 == '"$INSTDIR\ioquake3.x86.exe" --uri "%1"'
|
||||||
DeleteRegKey SHCTX "Software\Classes\quake3"
|
DeleteRegKey SHCTX "Software\Classes\quake3"
|
||||||
|
${EndIf}
|
||||||
|
|
||||||
; Remove files and uninstaller
|
; Remove files and uninstaller
|
||||||
Delete $INSTDIR\baseq3\cgamex86.dll
|
Delete $INSTDIR\baseq3\cgamex86.dll
|
||||||
|
|
Loading…
Reference in New Issue