Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Tom
crown-core
Commits
cf099ae8
Commit
cf099ae8
authored
11 years ago
by
Wladimir J. van der Laan
Browse files
Options
Download
Email Patches
Plain Diff
Adapt Windows installer for 64 bit
parent
403d9f84
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Makefile.am
+1
-1
Makefile.am
configure.ac
+6
-0
configure.ac
share/setup.nsi.in
+20
-4
share/setup.nsi.in
with
27 additions
and
5 deletions
+27
-5
Makefile.am
View file @
cf099ae8
...
...
@@ -6,7 +6,7 @@ GZIP_ENV="-9n"
BITCOIND_BIN
=
$(top_builddir)
/src/bitcoind
$(EXEEXT)
BITCOIN_QT_BIN
=
$(top_builddir)
/src/qt/bitcoin-qt
$(EXEEXT)
BITCOIN_WIN_INSTALLER
=
$(PACKAGE)
-
$(PACKAGE_VERSION)
-win
32
-setup
$(EXEEXT)
BITCOIN_WIN_INSTALLER
=
$(PACKAGE)
-
$(PACKAGE_VERSION)
-win
$(WINDOWS_BITS)
-setup
$(EXEEXT)
OSX_APP
=
Bitcoin-Qt.app
OSX_DMG
=
Bitcoin-Qt.dmg
...
...
This diff is collapsed.
Click to expand it.
configure.ac
View file @
cf099ae8
...
...
@@ -193,6 +193,12 @@ case $host in
if test "x$CXXFLAGS_overridden" = "xno"; then
CXXFLAGS="$CXXFLAGS -w"
fi
case $host in
i?86-*) WINDOWS_BITS=32 ;;
x86_64-*) WINDOWS_BITS=64 ;;
*) AC_MSG_ERROR("Could not determine win32/win64 for installer") ;;
esac
AC_SUBST(WINDOWS_BITS)
;;
*darwin*)
TARGET_OS=darwin
...
...
This diff is collapsed.
Click to expand it.
share/setup.nsi.in
View file @
cf099ae8
Name @PACKAGE_NAME@
Name
"
@PACKAGE_NAME@
(@WINDOWS_BITS@-bit)"
RequestExecutionLevel highest
SetCompressor /SOLID lzma
...
...
@@ -6,7 +6,7 @@ SetCompressor /SOLID lzma
# General Symbol Definitions
!define REGKEY "SOFTWARE\$(^Name)"
!define VERSION @CLIENT_VERSION_MAJOR@.@CLIENT_VERSION_MINOR@.@CLIENT_VERSION_REVISION@
!define COMPANY "Bitcoin project"
!define COMPANY "Bitcoin
Core
project"
!define URL http://www.bitcoin.org/
# MUI Symbol Definitions
...
...
@@ -28,6 +28,9 @@ SetCompressor /SOLID lzma
# Included files
!include Sections.nsh
!include MUI2.nsh
!if "@WINDOWS_BITS@" == "64"
!include x64.nsh
!endif
# Variables
Var StartMenuGroup
...
...
@@ -45,14 +48,18 @@ Var StartMenuGroup
!insertmacro MUI_LANGUAGE English
# Installer attributes
OutFile @abs_top_srcdir@/bitcoin-${VERSION}-win32-setup.exe
OutFile @abs_top_srcdir@/bitcoin-${VERSION}-win@WINDOWS_BITS@-setup.exe
!if "@WINDOWS_BITS@" == "64"
InstallDir $PROGRAMFILES64\Bitcoin
!else
InstallDir $PROGRAMFILES\Bitcoin
!endif
CRCCheck on
XPStyle on
BrandingText " "
ShowInstDetails show
VIProductVersion ${VERSION}.@CLIENT_VERSION_BUILD@
VIAddVersionKey ProductName Bitcoin
VIAddVersionKey ProductName
"
Bitcoin
Core"
VIAddVersionKey ProductVersion "${VERSION}"
VIAddVersionKey CompanyName "${COMPANY}"
VIAddVersionKey CompanyWebsite "${URL}"
...
...
@@ -152,6 +159,15 @@ SectionEnd
# Installer functions
Function .onInit
InitPluginsDir
!if "@WINDOWS_BITS@" == "64"
${If} ${RunningX64}
; disable registry redirection (enable access to 64-bit portion of registry)
SetRegView 64
${Else}
MessageBox MB_OK|MB_ICONSTOP "Cannot install 64-bit version on a 32-bit system."
Abort
${EndIf}
!endif
FunctionEnd
# Uninstaller functions
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help