diff options
author | Matt Corallo <matt@bluematt.me> | 2011-12-23 20:27:12 -0800 |
---|---|---|
committer | Matt Corallo <matt@bluematt.me> | 2012-01-05 00:29:28 -0500 |
commit | 7d145a0f591dab109eae9adcfaf59303cce0431a (patch) | |
tree | 95fbe9a79ca7c5ebf393a7121530c903e37dec38 /share/setup.nsi | |
parent | 9a93c4c02471fea7acb4882efaebaaefc1733466 (diff) |
Add support for opening bitcoin: URIs directly.
Diffstat (limited to 'share/setup.nsi')
-rw-r--r-- | share/setup.nsi | 5 |
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
|