Skip to content

Commit

Permalink
Fix URI scheme handler in NSIS installer script
Browse files Browse the repository at this point in the history
  • Loading branch information
The-Noah committed Jul 6, 2019
1 parent da6f4b3 commit 6c38035
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions bzflag-launcher.nsi
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,10 @@ Section "install"
WriteRegDWORD HKCU "Software\Microsoft\Windows\CurrentVersion\Uninstall\${APPNAME}" "EstimatedSize" ${INSTALLSIZE}

# URI scheme handler
WriteRegStr HKCR "${APPID}" "(Default)" "URL:${APPNAME} Protocol"
WriteRegStr HKCR "${APPID}" "URL PROTOCOL" ""
WriteRegStr HKCR "${APPID}\DefaultIcon" "(Default)" "${APPID}.exe,1"
WriteRegStr HKCR "${APPID}\shell\open\command" "(Default)" "$\"$INSTDIR\${APPID}.exe$\" $\"%1$\""
WriteRegStr HKCU "Software\Classes\${APPID}" "" "URL:${APPNAME} Protocol"
WriteRegStr HKCU "Software\Classes\${APPID}" "URL PROTOCOL" ""
WriteRegStr HKCU "Software\Classes\${APPID}\DefaultIcon" "" "$INSTDIR\${APPID}.exe"
WriteRegStr HKCU "Software\Classes\${APPID}\shell\open\command" "" "$\"$INSTDIR\${APPID}.exe$\" $\"%1$\""

DetailPrint "Created URI scheme handler"
SectionEnd
Expand All @@ -100,5 +100,5 @@ Section "uninstall"

# Remove uninstaller information from the registry
DeleteRegKey HKCU "Software\Microsoft\Windows\CurrentVersion\Uninstall\${APPNAME}"
DeleteRegKey HKCR "${APPID}"
DeleteRegKey HKCU "Software\Classes\${APPID}"
SectionEnd

0 comments on commit 6c38035

Please sign in to comment.