|
|
@ -1,4 +1,4 @@ |
|
|
|
Name @PACKAGE_NAME@ |
|
|
|
Name "@PACKAGE_NAME@ (@WINDOWS_BITS@-bit)" |
|
|
|
|
|
|
|
|
|
|
|
RequestExecutionLevel highest |
|
|
|
RequestExecutionLevel highest |
|
|
|
SetCompressor /SOLID lzma |
|
|
|
SetCompressor /SOLID lzma |
|
|
@ -6,7 +6,7 @@ SetCompressor /SOLID lzma |
|
|
|
# General Symbol Definitions |
|
|
|
# General Symbol Definitions |
|
|
|
!define REGKEY "SOFTWARE\$(^Name)" |
|
|
|
!define REGKEY "SOFTWARE\$(^Name)" |
|
|
|
!define VERSION @CLIENT_VERSION_MAJOR@.@CLIENT_VERSION_MINOR@.@CLIENT_VERSION_REVISION@ |
|
|
|
!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/ |
|
|
|
!define URL http://www.bitcoin.org/ |
|
|
|
|
|
|
|
|
|
|
|
# MUI Symbol Definitions |
|
|
|
# MUI Symbol Definitions |
|
|
@ -28,6 +28,9 @@ SetCompressor /SOLID lzma |
|
|
|
# Included files |
|
|
|
# Included files |
|
|
|
!include Sections.nsh |
|
|
|
!include Sections.nsh |
|
|
|
!include MUI2.nsh |
|
|
|
!include MUI2.nsh |
|
|
|
|
|
|
|
!if "@WINDOWS_BITS@" == "64" |
|
|
|
|
|
|
|
!include x64.nsh |
|
|
|
|
|
|
|
!endif |
|
|
|
|
|
|
|
|
|
|
|
# Variables |
|
|
|
# Variables |
|
|
|
Var StartMenuGroup |
|
|
|
Var StartMenuGroup |
|
|
@ -45,14 +48,18 @@ Var StartMenuGroup |
|
|
|
!insertmacro MUI_LANGUAGE English |
|
|
|
!insertmacro MUI_LANGUAGE English |
|
|
|
|
|
|
|
|
|
|
|
# Installer attributes |
|
|
|
# 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 |
|
|
|
InstallDir $PROGRAMFILES\Bitcoin |
|
|
|
|
|
|
|
!endif |
|
|
|
CRCCheck on |
|
|
|
CRCCheck on |
|
|
|
XPStyle on |
|
|
|
XPStyle on |
|
|
|
BrandingText " " |
|
|
|
BrandingText " " |
|
|
|
ShowInstDetails show |
|
|
|
ShowInstDetails show |
|
|
|
VIProductVersion ${VERSION}.@CLIENT_VERSION_BUILD@ |
|
|
|
VIProductVersion ${VERSION}.@CLIENT_VERSION_BUILD@ |
|
|
|
VIAddVersionKey ProductName Bitcoin |
|
|
|
VIAddVersionKey ProductName "Bitcoin Core" |
|
|
|
VIAddVersionKey ProductVersion "${VERSION}" |
|
|
|
VIAddVersionKey ProductVersion "${VERSION}" |
|
|
|
VIAddVersionKey CompanyName "${COMPANY}" |
|
|
|
VIAddVersionKey CompanyName "${COMPANY}" |
|
|
|
VIAddVersionKey CompanyWebsite "${URL}" |
|
|
|
VIAddVersionKey CompanyWebsite "${URL}" |
|
|
@ -152,6 +159,15 @@ SectionEnd |
|
|
|
# Installer functions |
|
|
|
# Installer functions |
|
|
|
Function .onInit |
|
|
|
Function .onInit |
|
|
|
InitPluginsDir |
|
|
|
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 |
|
|
|
FunctionEnd |
|
|
|
|
|
|
|
|
|
|
|
# Uninstaller functions |
|
|
|
# Uninstaller functions |
|
|
|