From 4df8a20f96e7c16a8bebab0978a7c9e0a8ee1ab8 Mon Sep 17 00:00:00 2001 From: UdjinM6 Date: Tue, 25 Jul 2017 13:58:08 +0300 Subject: [PATCH] Fix windows installer script, should handle `dash:` uri correctly now (#1550) --- share/setup.nsi.in | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/share/setup.nsi.in b/share/setup.nsi.in index ae4c65a2eb..f1d5756781 100644 --- a/share/setup.nsi.in +++ b/share/setup.nsi.in @@ -106,10 +106,10 @@ Section -post SEC0001 WriteRegStr HKCU "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$(^Name)" UninstallString $INSTDIR\uninstall.exe WriteRegDWORD HKCU "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$(^Name)" NoModify 1 WriteRegDWORD HKCU "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$(^Name)" NoRepair 1 - WriteRegStr HKCR "dashcore" "URL Protocol" "" - WriteRegStr HKCR "dashcore" "" "URL:Dash" - WriteRegStr HKCR "dashcore\DefaultIcon" "" $INSTDIR\dash-qt.exe - WriteRegStr HKCR "dashcore\shell\open\command" "" '"$INSTDIR\dash-qt.exe" "%1"' + WriteRegStr HKCR "dash" "URL Protocol" "" + WriteRegStr HKCR "dash" "" "URL:Dash" + WriteRegStr HKCR "dash\DefaultIcon" "" $INSTDIR\dash-qt.exe + WriteRegStr HKCR "dash\shell\open\command" "" '"$INSTDIR\dash-qt.exe" "%1"' SectionEnd # Macro for selecting uninstaller sections @@ -147,7 +147,7 @@ Section -un.post UNSEC0001 DeleteRegValue HKCU "${REGKEY}" Path DeleteRegKey /IfEmpty HKCU "${REGKEY}\Components" DeleteRegKey /IfEmpty HKCU "${REGKEY}" - DeleteRegKey HKCR "dashcore" + DeleteRegKey HKCR "dash" RmDir /REBOOTOK $SMPROGRAMS\$StartMenuGroup RmDir /REBOOTOK $INSTDIR Push $R0