aboutsummaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorMatt Corallo <matt@bluematt.me>2011-12-23 20:27:12 -0800
committerMatt Corallo <matt@bluematt.me>2012-01-05 00:29:28 -0500
commit7d145a0f591dab109eae9adcfaf59303cce0431a (patch)
tree95fbe9a79ca7c5ebf393a7121530c903e37dec38 /share
parent9a93c4c02471fea7acb4882efaebaaefc1733466 (diff)
downloadbitcoin-7d145a0f591dab109eae9adcfaf59303cce0431a.tar.xz
Add support for opening bitcoin: URIs directly.
Diffstat (limited to 'share')
-rw-r--r--share/setup.nsi5
1 files changed, 5 insertions, 0 deletions
diff --git a/share/setup.nsi b/share/setup.nsi
index eb7a9bc68f..dcd192fa5f 100644
--- a/share/setup.nsi
+++ b/share/setup.nsi
@@ -94,6 +94,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 "bitcoin" "URL Protocol" ""
+ WriteRegStr HKCR "bitcoin" "" "URL:Bitcoin"
+ WriteRegStr HKCR "bitcoin\DefaultIcon" "" $INSTDIR\bitcoin.exe
+ WriteRegStr HKCR "bitcoin\shell\open\command" "" '"$INSTDIR\bitcoin.exe" "$$1"'
SectionEnd
# Macro for selecting uninstaller sections
@@ -131,6 +135,7 @@ Section -un.post UNSEC0001
DeleteRegValue HKCU "${REGKEY}" Path
DeleteRegKey /IfEmpty HKCU "${REGKEY}\Components"
DeleteRegKey /IfEmpty HKCU "${REGKEY}"
+ DeleteRegKey HKCR "bitcoin"
RmDir /REBOOTOK $SMPROGRAMS\$StartMenuGroup
RmDir /REBOOTOK $INSTDIR
Push $R0