From 233493b7168370c6f90211f4f5f3c6782f74a380 Mon Sep 17 00:00:00 2001 From: Alexander Block Date: Thu, 21 Dec 2017 14:29:54 +0100 Subject: [PATCH] Delete old "dash" registry key when installing/uninstalling --- share/setup.nsi.in | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/share/setup.nsi.in b/share/setup.nsi.in index 32c50f3982..e8becf2523 100644 --- a/share/setup.nsi.in +++ b/share/setup.nsi.in @@ -106,6 +106,10 @@ Section -post SEC0001 WriteRegStr HKCR "@PACKAGE_TARNAME@" "" "URL:Dash" WriteRegStr HKCR "@PACKAGE_TARNAME@\DefaultIcon" "" $INSTDIR\@BITCOIN_GUI_NAME@@EXEEXT@ WriteRegStr HKCR "@PACKAGE_TARNAME@\shell\open\command" "" '"$INSTDIR\@BITCOIN_GUI_NAME@@EXEEXT@" "%1"' + + # Delete old key (before we switched to PACKAGE_TARNAME, which is set to 'dashcore' now, we had 'dash' hardcoded) + # TODO remove this line sometime later + DeleteRegKey HKCR "dash" SectionEnd # Macro for selecting uninstaller sections @@ -144,6 +148,9 @@ Section -un.post UNSEC0001 DeleteRegKey /IfEmpty HKCU "${REGKEY}\Components" DeleteRegKey /IfEmpty HKCU "${REGKEY}" DeleteRegKey HKCR "@PACKAGE_TARNAME@" + # Delete old key (before we switched to PACKAGE_TARNAME, which is set to 'dashcore' now, we had 'dash' hardcoded) + # TODO remove this line sometime later + DeleteRegKey HKCR "dash" RmDir /REBOOTOK $SMPROGRAMS\$StartMenuGroup RmDir /REBOOTOK $INSTDIR Push $R0