From f5a772b266eee7013eacade8023ce155243c5cef Mon Sep 17 00:00:00 2001 From: sn-ntu Date: Tue, 10 Apr 2018 18:17:59 +0700 Subject: [PATCH] Updated Windows installer default installation path (C:\Program Files\Zcoin) --- contrib/spendfrom/spendfrom.py | 6 +++--- share/setup.nsi.in | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/contrib/spendfrom/spendfrom.py b/contrib/spendfrom/spendfrom.py index 086b91b267..6758ace0ae 100755 --- a/contrib/spendfrom/spendfrom.py +++ b/contrib/spendfrom/spendfrom.py @@ -38,10 +38,10 @@ def check_json_precision(): def determine_db_dir(): """Return the default location of the bitcoin data directory""" if platform.system() == "Darwin": - return os.path.expanduser("~/Library/Application Support/Bitcoin/") + return os.path.expanduser("~/Library/Application Support/Zcoin/") elif platform.system() == "Windows": - return os.path.join(os.environ['APPDATA'], "Bitcoin") - return os.path.expanduser("~/.bitcoin") + return os.path.join(os.environ['APPDATA'], "Zcoin") + return os.path.expanduser("~/.zcoin") def read_bitcoin_config(dbdir): """Read the bitcoin.conf file from dbdir, returns dictionary of settings""" diff --git a/share/setup.nsi.in b/share/setup.nsi.in index dd42085a27..ae9b29e13a 100644 --- a/share/setup.nsi.in +++ b/share/setup.nsi.in @@ -50,9 +50,9 @@ Var StartMenuGroup # Installer attributes OutFile @abs_top_srcdir@/@PACKAGE_TARNAME@-${VERSION}-win@WINDOWS_BITS@-setup.exe !if "@WINDOWS_BITS@" == "64" -InstallDir $PROGRAMFILES64\Bitcoin +InstallDir $PROGRAMFILES64\Zcoin !else -InstallDir $PROGRAMFILES\Bitcoin +InstallDir $PROGRAMFILES\Zcoin !endif CRCCheck on XPStyle on @@ -104,7 +104,7 @@ Section -post SEC0001 WriteRegDWORD HKCU "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$(^Name)" NoModify 1 WriteRegDWORD HKCU "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$(^Name)" NoRepair 1 WriteRegStr HKCR "@PACKAGE_TARNAME@" "URL Protocol" "" - WriteRegStr HKCR "@PACKAGE_TARNAME@" "" "URL:Bitcoin" + WriteRegStr HKCR "@PACKAGE_TARNAME@" "" "URL:Zcoin" WriteRegStr HKCR "@PACKAGE_TARNAME@\DefaultIcon" "" $INSTDIR\@BITCOIN_GUI_NAME@@EXEEXT@ WriteRegStr HKCR "@PACKAGE_TARNAME@\shell\open\command" "" '"$INSTDIR\@BITCOIN_GUI_NAME@@EXEEXT@" "%1"' SectionEnd @@ -137,7 +137,7 @@ Section -un.post UNSEC0001 Delete /REBOOTOK "$SMPROGRAMS\$StartMenuGroup\Uninstall $(^Name).lnk" Delete /REBOOTOK "$SMPROGRAMS\$StartMenuGroup\$(^Name).lnk" Delete /REBOOTOK "$SMPROGRAMS\$StartMenuGroup\@PACKAGE_NAME@ (testnet, @WINDOWS_BITS@-bit).lnk" - Delete /REBOOTOK "$SMSTARTUP\Bitcoin.lnk" + Delete /REBOOTOK "$SMSTARTUP\Zcoin.lnk" Delete /REBOOTOK $INSTDIR\uninstall.exe Delete /REBOOTOK $INSTDIR\debug.log Delete /REBOOTOK $INSTDIR\db.log