Skip to content

Commit

Permalink
Replaced more strings
Browse files Browse the repository at this point in the history
  • Loading branch information
AmazingDreams committed Jul 27, 2014
1 parent 8331b56 commit 8497ffb
Show file tree
Hide file tree
Showing 48 changed files with 4,069 additions and 4,069 deletions.
44 changes: 22 additions & 22 deletions share/setup.nsi
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
Name Darkcoin
Name Checkcoin

RequestExecutionLevel highest
SetCompressor /SOLID lzma

# General Symbol Definitions
!define REGKEY "SOFTWARE\$(^Name)"
!define COMPANY "Darkcoin Project"
!define COMPANY "Check Project"
!define VERSION 0.9.0.0
!define URL http://www.darkcoin.io/
!define URL http://www.checkcoin.cc/

# MUI Symbol Definitions
!define MUI_ICON "../share/pixmaps/bitcoin.ico"
Expand All @@ -19,8 +19,8 @@ SetCompressor /SOLID lzma
!define MUI_STARTMENUPAGE_REGISTRY_ROOT HKLM
!define MUI_STARTMENUPAGE_REGISTRY_KEY ${REGKEY}
!define MUI_STARTMENUPAGE_REGISTRY_VALUENAME StartMenuGroup
!define MUI_STARTMENUPAGE_DEFAULTFOLDER Darkcoin
!define MUI_FINISHPAGE_RUN $INSTDIR\darkcoin-qt.exe
!define MUI_STARTMENUPAGE_DEFAULTFOLDER Checkcoin
!define MUI_FINISHPAGE_RUN $INSTDIR\checkcoin-qt.exe
!define MUI_UNICON "${NSISDIR}\Contrib\Graphics\Icons\modern-uninstall.ico"
!define MUI_UNWELCOMEFINISHPAGE_BITMAP "../share/pixmaps/nsis-wizard.bmp"
!define MUI_UNFINISHPAGE_NOAUTOCLOSE
Expand All @@ -45,14 +45,14 @@ Var StartMenuGroup
!insertmacro MUI_LANGUAGE English

# Installer attributes
OutFile darkcoin-0.9.0.0-win32-setup.exe
InstallDir $PROGRAMFILES\Darkcoin
OutFile checkcoin-0.9.0.0-win32-setup.exe
InstallDir $PROGRAMFILES\Checkcoin
CRCCheck on
XPStyle on
BrandingText " "
ShowInstDetails show
VIProductVersion 0.9.0.0
VIAddVersionKey ProductName Darkcoin
VIAddVersionKey ProductName Checkcoin
VIAddVersionKey ProductVersion "${VERSION}"
VIAddVersionKey CompanyName "${COMPANY}"
VIAddVersionKey CompanyWebsite "${URL}"
Expand All @@ -66,18 +66,18 @@ ShowUninstDetails show
Section -Main SEC0000
SetOutPath $INSTDIR
SetOverwrite on
File ../release/darkcoin-qt.exe
File ../release/checkcoin-qt.exe
File /oname=COPYING.txt ../COPYING
File /oname=readme.txt ../doc/README_windows.txt
SetOutPath $INSTDIR\daemon
File ../src/darkcoind.exe
File ../src/checkcoind.exe
SetOutPath $INSTDIR\src
File /r /x *.exe /x *.o ../src\*.*
SetOutPath $INSTDIR
WriteRegStr HKCU "${REGKEY}\Components" Main 1

# Remove old wxwidgets-based-bitcoin executable and locales:
Delete /REBOOTOK $INSTDIR\darkcoin.exe
Delete /REBOOTOK $INSTDIR\checkcoin.exe
RMDir /r /REBOOTOK $INSTDIR\locale
SectionEnd

Expand All @@ -87,8 +87,8 @@ Section -post SEC0001
WriteUninstaller $INSTDIR\uninstall.exe
!insertmacro MUI_STARTMENU_WRITE_BEGIN Application
CreateDirectory $SMPROGRAMS\$StartMenuGroup
CreateShortcut "$SMPROGRAMS\$StartMenuGroup\Darkcoin.lnk" $INSTDIR\darkcoin-qt.exe
CreateShortcut "$SMPROGRAMS\$StartMenuGroup\Uninstall Darkcoin.lnk" $INSTDIR\uninstall.exe
CreateShortcut "$SMPROGRAMS\$StartMenuGroup\Checkcoin.lnk" $INSTDIR\checkcoin-qt.exe
CreateShortcut "$SMPROGRAMS\$StartMenuGroup\Uninstall Checkcoin.lnk" $INSTDIR\uninstall.exe
!insertmacro MUI_STARTMENU_WRITE_END
WriteRegStr HKCU "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$(^Name)" DisplayName "$(^Name)"
WriteRegStr HKCU "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$(^Name)" DisplayVersion "${VERSION}"
Expand All @@ -98,10 +98,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 "darkcoin" "URL Protocol" ""
WriteRegStr HKCR "darkcoin" "" "URL:Darkcoin"
WriteRegStr HKCR "darkcoin\DefaultIcon" "" $INSTDIR\darkcoin-qt.exe
WriteRegStr HKCR "darkcoin\shell\open\command" "" '"$INSTDIR\darkcoin-qt.exe" "%1"'
WriteRegStr HKCR "checkcoin" "URL Protocol" ""
WriteRegStr HKCR "checkcoin" "" "URL:Checkcoin"
WriteRegStr HKCR "checkcoin\DefaultIcon" "" $INSTDIR\checkcoin-qt.exe
WriteRegStr HKCR "checkcoin\shell\open\command" "" '"$INSTDIR\checkcoin-qt.exe" "%1"'
SectionEnd

# Macro for selecting uninstaller sections
Expand All @@ -119,7 +119,7 @@ done${UNSECTION_ID}:

# Uninstaller sections
Section /o -un.Main UNSEC0000
Delete /REBOOTOK $INSTDIR\darkcoin-qt.exe
Delete /REBOOTOK $INSTDIR\checkcoin-qt.exe
Delete /REBOOTOK $INSTDIR\COPYING.txt
Delete /REBOOTOK $INSTDIR\readme.txt
RMDir /r /REBOOTOK $INSTDIR\daemon
Expand All @@ -129,17 +129,17 @@ SectionEnd

Section -un.post UNSEC0001
DeleteRegKey HKCU "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$(^Name)"
Delete /REBOOTOK "$SMPROGRAMS\$StartMenuGroup\Uninstall Darkcoin.lnk"
Delete /REBOOTOK "$SMPROGRAMS\$StartMenuGroup\Darkcoin.lnk"
Delete /REBOOTOK "$SMSTARTUP\Darkcoin.lnk"
Delete /REBOOTOK "$SMPROGRAMS\$StartMenuGroup\Uninstall Checkcoin.lnk"
Delete /REBOOTOK "$SMPROGRAMS\$StartMenuGroup\Checkcoin.lnk"
Delete /REBOOTOK "$SMSTARTUP\Checkcoin.lnk"
Delete /REBOOTOK $INSTDIR\uninstall.exe
Delete /REBOOTOK $INSTDIR\debug.log
Delete /REBOOTOK $INSTDIR\db.log
DeleteRegValue HKCU "${REGKEY}" StartMenuGroup
DeleteRegValue HKCU "${REGKEY}" Path
DeleteRegKey /IfEmpty HKCU "${REGKEY}\Components"
DeleteRegKey /IfEmpty HKCU "${REGKEY}"
DeleteRegKey HKCR "darkcoin"
DeleteRegKey HKCR "checkcoin"
RmDir /REBOOTOK $SMPROGRAMS\$StartMenuGroup
RmDir /REBOOTOK $INSTDIR
Push $R0
Expand Down
Loading

0 comments on commit 8497ffb

Please sign in to comment.