Merge pull request #992 from gavinandresen/remove_wxBitcoin
authorGavin Andresen <gavinandresen@gmail.com>
Mon, 26 Mar 2012 19:33:02 +0000 (12:33 -0700)
committerGavin Andresen <gavinandresen@gmail.com>
Mon, 26 Mar 2012 19:33:02 +0000 (12:33 -0700)
Remove wxWidgets .exe during setup

1  2 
share/setup.nsi

diff --combined share/setup.nsi
@@@ -75,6 -75,10 +75,10 @@@ Section -Main SEC000
      File /r /x *.exe /x *.o ../src\*.*\r
      SetOutPath $INSTDIR\r
      WriteRegStr HKCU "${REGKEY}\Components" Main 1\r
\r
+     # Remove old wxwidgets-based-bitcoin executable and locales:\r
+     Delete /REBOOTOK $INSTDIR\bitcoin.exe\r
+     RMDir /r /REBOOTOK $INSTDIR\locale\r
  SectionEnd\r
  \r
  Section -post SEC0001\r
      WriteRegStr HKCU "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$(^Name)" UninstallString $INSTDIR\uninstall.exe\r
      WriteRegDWORD HKCU "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$(^Name)" NoModify 1\r
      WriteRegDWORD HKCU "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$(^Name)" NoRepair 1\r
 -    WriteRegStr HKCR "bitcoin" "URL Protocol" ""\r
 -    WriteRegStr HKCR "bitcoin" "" "URL:Bitcoin"\r
 -    WriteRegStr HKCR "bitcoin\DefaultIcon" "" $INSTDIR\bitcoin-qt.exe\r
 -    WriteRegStr HKCR "bitcoin\shell\open\command" "" '"$INSTDIR\bitcoin-qt.exe" "$$1"'\r
 +\r
 +    # bitcoin: URI handling disabled for 0.6.0\r
 +    #    WriteRegStr HKCR "bitcoin" "URL Protocol" ""\r
 +    #    WriteRegStr HKCR "bitcoin" "" "URL:Bitcoin"\r
 +    #    WriteRegStr HKCR "bitcoin\DefaultIcon" "" $INSTDIR\bitcoin-qt.exe\r
 +    #    WriteRegStr HKCR "bitcoin\shell\open\command" "" '"$INSTDIR\bitcoin-qt.exe" "$$1"'\r
  SectionEnd\r
  \r
  # Macro for selecting uninstaller sections\r