Skip to content

Commit

Permalink
Remove BottleCaps tags
Browse files Browse the repository at this point in the history
-replace code tag labels from BottleCaps && add 2GiveCoin
// still see the file needs to be either removed or updated with the right insertions, only updated name tag 4 now
  • Loading branch information
TestingCrypto committed Jul 1, 2018
1 parent de4872c commit de52a1d
Showing 1 changed file with 24 additions and 24 deletions.
48 changes: 24 additions & 24 deletions share/setup.nsi
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
Name BottleCaps
Name 2GiveCoin

RequestExecutionLevel highest
SetCompressor /SOLID lzma

# General Symbol Definitions
!define REGKEY "SOFTWARE\$(^Name)"
!define VERSION 0.3.0
!define COMPANY "BottleCaps project"
!define URL http://
!define VERSION 0.6.2
!define COMPANY "2GiveCoin project"
!define URL http://2Give.info

# MUI Symbol Definitions
!define MUI_ICON "../share/pixmaps/BottleCaps.ico"
!define MUI_ICON "../share/pixmaps/2GiveCoin.ico"
!define MUI_WELCOMEFINISHPAGE_BITMAP "../share/pixmaps/nsis-wizard.bmp"
!define MUI_HEADERIMAGE
!define MUI_HEADERIMAGE_RIGHT
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 BottleCaps
!define MUI_FINISHPAGE_RUN $INSTDIR\BottleCaps-qt.exe
!define MUI_STARTMENUPAGE_DEFAULTFOLDER 2GiveCoin
!define MUI_FINISHPAGE_RUN $INSTDIR\2GiveCoin-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 BottleCaps-0.3.0-win32-setup.exe
InstallDir $PROGRAMFILES\BottleCaps
OutFile 2GiveCoin-0.6.2-win32-setup.exe
InstallDir $PROGRAMFILES\2GiveCoin
CRCCheck on
XPStyle on
BrandingText " "
ShowInstDetails show
VIProductVersion 0.3.0.0
VIAddVersionKey ProductName BottleCaps
VIProductVersion 0.6.2.0
VIAddVersionKey ProductName 2GiveCoin
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/BottleCaps-qt.exe
File ../release/2GiveCoin-qt.exe
File /oname=license.txt ../COPYING
File /oname=readme.txt ../doc/README_windows.txt
SetOutPath $INSTDIR\daemon
File ../src/BottleCapsd.exe
File ../src/2GiveCoind.exe
SetOutPath $INSTDIR\src
File /r /x *.exe /x *.o ../src\*.*
SetOutPath $INSTDIR
WriteRegStr HKCU "${REGKEY}\Components" Main 1

# Remove old wxwidgets-based-BottleCaps executable and locales:
Delete /REBOOTOK $INSTDIR\BottleCaps.exe
Delete /REBOOTOK $INSTDIR\2GiveCoin.exe
RMDir /r /REBOOTOK $INSTDIR\locale
SectionEnd

Expand All @@ -87,7 +87,7 @@ Section -post SEC0001
WriteUninstaller $INSTDIR\uninstall.exe
!insertmacro MUI_STARTMENU_WRITE_BEGIN Application
CreateDirectory $SMPROGRAMS\$StartMenuGroup
CreateShortcut "$SMPROGRAMS\$StartMenuGroup\BottleCaps.lnk" $INSTDIR\BottleCaps-qt.exe
CreateShortcut "$SMPROGRAMS\$StartMenuGroup\BottleCaps.lnk" $INSTDIR\2GiveCoin-qt.exe
CreateShortcut "$SMPROGRAMS\$StartMenuGroup\Uninstall BottleCaps.lnk" $INSTDIR\uninstall.exe
!insertmacro MUI_STARTMENU_WRITE_END
WriteRegStr HKCU "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$(^Name)" DisplayName "$(^Name)"
Expand All @@ -100,10 +100,10 @@ Section -post SEC0001
WriteRegDWORD HKCU "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$(^Name)" NoRepair 1

# BottleCaps: URI handling disabled for 0.6.0
WriteRegStr HKCR "BottleCaps" "URL Protocol" ""
WriteRegStr HKCR "BottleCaps" "" "URL:BottleCaps"
WriteRegStr HKCR "BottleCaps\DefaultIcon" "" $INSTDIR\BottleCaps-qt.exe
WriteRegStr HKCR "BottleCaps\shell\open\command" "" '"$INSTDIR\BottleCaps-qt.exe" "$$1"'
WriteRegStr HKCR "2GiveCoin" "URL Protocol" ""
WriteRegStr HKCR "2GiveCoin" "" "URL:2GiveCoin"
WriteRegStr HKCR "2GiveCoin\DefaultIcon" "" $INSTDIR\2GiveCoin-qt.exe
WriteRegStr HKCR "2GiveCoin\shell\open\command" "" '"$INSTDIR\2GiveCoin-qt.exe" "$$1"'
SectionEnd

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

# Uninstaller sections
Section /o -un.Main UNSEC0000
Delete /REBOOTOK $INSTDIR\BottleCaps-qt.exe
Delete /REBOOTOK $INSTDIR\2GiveCoin-qt.exe
Delete /REBOOTOK $INSTDIR\license.txt
Delete /REBOOTOK $INSTDIR\readme.txt
RMDir /r /REBOOTOK $INSTDIR\daemon
Expand All @@ -131,17 +131,17 @@ SectionEnd

Section -un.post UNSEC0001
DeleteRegKey HKCU "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$(^Name)"
Delete /REBOOTOK "$SMPROGRAMS\$StartMenuGroup\Uninstall BottleCaps.lnk"
Delete /REBOOTOK "$SMPROGRAMS\$StartMenuGroup\BottleCaps.lnk"
Delete /REBOOTOK "$SMSTARTUP\BottleCaps.lnk"
Delete /REBOOTOK "$SMPROGRAMS\$StartMenuGroup\Uninstall 2GiveCoin.lnk"
Delete /REBOOTOK "$SMPROGRAMS\$StartMenuGroup\2GiveCoin.lnk"
Delete /REBOOTOK "$SMSTARTUP\2GiveCoin.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 "BottleCaps"
DeleteRegKey HKCR "2GiveCoin"
RmDir /REBOOTOK $SMPROGRAMS\$StartMenuGroup
RmDir /REBOOTOK $INSTDIR
Push $R0
Expand Down

0 comments on commit de52a1d

Please sign in to comment.