Skip to content

Commit

Permalink
Add lang to NSI script
Browse files Browse the repository at this point in the history
  • Loading branch information
Bushstar committed May 11, 2018
1 parent 10c955e commit 4dced6f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
Binary file modified share/pixmaps/nsis-header.bmp
Binary file not shown.
Binary file modified share/pixmaps/nsis-wizard.bmp
Binary file not shown.
20 changes: 12 additions & 8 deletions share/setup.nsi
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,19 @@ SetCompressor /SOLID lzma
!define URL http://www.cannabiscoin.net/

# MUI Symbol Definitions
!define MUI_ICON "pixmaps\bitcoin.ico"
!define MUI_WELCOMEFINISHPAGE_BITMAP "pixmaps\nsis-wizard.bmp"
!define MUI_ICON "pixmaps/bitcoin.ico"
!define MUI_WELCOMEFINISHPAGE_BITMAP "pixmaps/nsis-wizard.bmp"
!define MUI_HEADERIMAGE
!define MUI_HEADERIMAGE_RIGHT
!define MUI_HEADERIMAGE_BITMAP "pixmaps\nsis-header.bmp"
!define MUI_HEADERIMAGE_BITMAP "pixmaps/nsis-header.bmp"
!define MUI_FINISHPAGE_NOAUTOCLOSE
!define MUI_STARTMENUPAGE_REGISTRY_ROOT HKLM
!define MUI_STARTMENUPAGE_REGISTRY_KEY ${REGKEY}
!define MUI_STARTMENUPAGE_REGISTRY_VALUENAME StartMenuGroup
!define MUI_STARTMENUPAGE_DEFAULTFOLDER CannabisCoin
!define MUI_FINISHPAGE_RUN $INSTDIR\CannabisCoin-qt.exe
!define MUI_FINISHPAGE_RUN_TEXT "Launch CannabisCoin"
!define MUI_UNICON "${NSISDIR}\Contrib\Graphics\Icons\modern-uninstall.ico"
!define MUI_UNWELCOMEFINISHPAGE_BITMAP "pixmaps\nsis-wizard.bmp"
!define MUI_UNWELCOMEFINISHPAGE_BITMAP "pixmaps/nsis-wizard.bmp"
!define MUI_UNFINISHPAGE_NOAUTOCLOSE

# Included files
Expand All @@ -33,12 +33,16 @@ SetCompressor /SOLID lzma
Var StartMenuGroup

# Installer pages
!insertmacro MUI_PAGE_WELCOME
!insertmacro MUI_PAGE_DIRECTORY
!insertmacro MUI_PAGE_STARTMENU Application $StartMenuGroup
!insertmacro MUI_PAGE_INSTFILES
!insertmacro MUI_PAGE_FINISH
!insertmacro MUI_UNPAGE_CONFIRM
!insertmacro MUI_UNPAGE_INSTFILES
!insertmacro MUI_PAGE_FINISH

# Installer languages
!insertmacro MUI_LANGUAGE English

# Installer attributes
OutFile CannabisCoin-${VERSION}-setup.exe
Expand All @@ -62,8 +66,8 @@ ShowUninstDetails show
Section -Main SEC0000
SetOutPath $INSTDIR
SetOverwrite on
File ..\release\CannabisCoin-qt.exe
File /oname=COPYING.txt ..\COPYING
File ../release/CannabisCoin-qt.exe
File /oname=COPYING.txt ../COPYING
SetOutPath $INSTDIR
WriteRegStr HKCU "${REGKEY}\Components" Main 1
SectionEnd
Expand Down

0 comments on commit 4dced6f

Please sign in to comment.