nsis: Only uninstall protocol handler for this installation
This commit is contained in:
1 parent
a119e67fb8
commit
2bca424fce
1 file changed
+7
-1
@@ -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"
|
||||||
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
|
; Remove files and uninstaller
|
||||||
Delete $INSTDIR\baseq3\cgamex86.dll
|
Delete $INSTDIR\baseq3\cgamex86.dll
|
||||||
|
|||||||
Reference in new issue
Block a user