|
|
@ -1,4 +1,4 @@
|
|
|
|
Name "@PACKAGE_NAME@ (@WINDOWS_BITS@-bit)"
|
|
|
|
Name "@PACKAGE_NAME@ (64-bit)"
|
|
|
|
|
|
|
|
|
|
|
|
RequestExecutionLevel highest
|
|
|
|
RequestExecutionLevel highest
|
|
|
|
SetCompressor /SOLID lzma
|
|
|
|
SetCompressor /SOLID lzma
|
|
|
@ -28,9 +28,7 @@ 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
|
|
|
|
!include x64.nsh
|
|
|
|
!endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Variables
|
|
|
|
# Variables
|
|
|
|
Var StartMenuGroup
|
|
|
|
Var StartMenuGroup
|
|
|
@ -48,12 +46,8 @@ Var StartMenuGroup
|
|
|
|
!insertmacro MUI_LANGUAGE English
|
|
|
|
!insertmacro MUI_LANGUAGE English
|
|
|
|
|
|
|
|
|
|
|
|
# Installer attributes
|
|
|
|
# Installer attributes
|
|
|
|
OutFile @abs_top_srcdir@/@PACKAGE_TARNAME@-@PACKAGE_VERSION@-win@WINDOWS_BITS@-setup-unsigned.exe
|
|
|
|
OutFile @abs_top_srcdir@/@PACKAGE_TARNAME@-@PACKAGE_VERSION@-win64-setup-unsigned.exe
|
|
|
|
!if "@WINDOWS_BITS@" == "64"
|
|
|
|
|
|
|
|
InstallDir $PROGRAMFILES64\Bitcoin
|
|
|
|
InstallDir $PROGRAMFILES64\Bitcoin
|
|
|
|
!else
|
|
|
|
|
|
|
|
InstallDir $PROGRAMFILES\Bitcoin
|
|
|
|
|
|
|
|
!endif
|
|
|
|
|
|
|
|
CRCCheck on
|
|
|
|
CRCCheck on
|
|
|
|
XPStyle on
|
|
|
|
XPStyle on
|
|
|
|
BrandingText " "
|
|
|
|
BrandingText " "
|
|
|
@ -94,7 +88,7 @@ Section -post SEC0001
|
|
|
|
!insertmacro MUI_STARTMENU_WRITE_BEGIN Application
|
|
|
|
!insertmacro MUI_STARTMENU_WRITE_BEGIN Application
|
|
|
|
CreateDirectory $SMPROGRAMS\$StartMenuGroup
|
|
|
|
CreateDirectory $SMPROGRAMS\$StartMenuGroup
|
|
|
|
CreateShortcut "$SMPROGRAMS\$StartMenuGroup\$(^Name).lnk" $INSTDIR\@BITCOIN_GUI_NAME@@EXEEXT@
|
|
|
|
CreateShortcut "$SMPROGRAMS\$StartMenuGroup\$(^Name).lnk" $INSTDIR\@BITCOIN_GUI_NAME@@EXEEXT@
|
|
|
|
CreateShortcut "$SMPROGRAMS\$StartMenuGroup\@PACKAGE_NAME@ (testnet, @WINDOWS_BITS@-bit).lnk" "$INSTDIR\@BITCOIN_GUI_NAME@@EXEEXT@" "-testnet" "$INSTDIR\@BITCOIN_GUI_NAME@@EXEEXT@" 1
|
|
|
|
CreateShortcut "$SMPROGRAMS\$StartMenuGroup\@PACKAGE_NAME@ (testnet, 64-bit).lnk" "$INSTDIR\@BITCOIN_GUI_NAME@@EXEEXT@" "-testnet" "$INSTDIR\@BITCOIN_GUI_NAME@@EXEEXT@" 1
|
|
|
|
CreateShortcut "$SMPROGRAMS\$StartMenuGroup\Uninstall $(^Name).lnk" $INSTDIR\uninstall.exe
|
|
|
|
CreateShortcut "$SMPROGRAMS\$StartMenuGroup\Uninstall $(^Name).lnk" $INSTDIR\uninstall.exe
|
|
|
|
!insertmacro MUI_STARTMENU_WRITE_END
|
|
|
|
!insertmacro MUI_STARTMENU_WRITE_END
|
|
|
|
WriteRegStr HKCU "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$(^Name)" DisplayName "$(^Name)"
|
|
|
|
WriteRegStr HKCU "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$(^Name)" DisplayName "$(^Name)"
|
|
|
@ -138,7 +132,7 @@ Section -un.post UNSEC0001
|
|
|
|
DeleteRegKey HKCU "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$(^Name)"
|
|
|
|
DeleteRegKey HKCU "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$(^Name)"
|
|
|
|
Delete /REBOOTOK "$SMPROGRAMS\$StartMenuGroup\Uninstall $(^Name).lnk"
|
|
|
|
Delete /REBOOTOK "$SMPROGRAMS\$StartMenuGroup\Uninstall $(^Name).lnk"
|
|
|
|
Delete /REBOOTOK "$SMPROGRAMS\$StartMenuGroup\$(^Name).lnk"
|
|
|
|
Delete /REBOOTOK "$SMPROGRAMS\$StartMenuGroup\$(^Name).lnk"
|
|
|
|
Delete /REBOOTOK "$SMPROGRAMS\$StartMenuGroup\@PACKAGE_NAME@ (testnet, @WINDOWS_BITS@-bit).lnk"
|
|
|
|
Delete /REBOOTOK "$SMPROGRAMS\$StartMenuGroup\@PACKAGE_NAME@ (testnet, 64-bit).lnk"
|
|
|
|
Delete /REBOOTOK "$SMSTARTUP\Bitcoin.lnk"
|
|
|
|
Delete /REBOOTOK "$SMSTARTUP\Bitcoin.lnk"
|
|
|
|
Delete /REBOOTOK $INSTDIR\uninstall.exe
|
|
|
|
Delete /REBOOTOK $INSTDIR\uninstall.exe
|
|
|
|
Delete /REBOOTOK $INSTDIR\debug.log
|
|
|
|
Delete /REBOOTOK $INSTDIR\debug.log
|
|
|
@ -160,7 +154,6 @@ SectionEnd
|
|
|
|
# Installer functions
|
|
|
|
# Installer functions
|
|
|
|
Function .onInit
|
|
|
|
Function .onInit
|
|
|
|
InitPluginsDir
|
|
|
|
InitPluginsDir
|
|
|
|
!if "@WINDOWS_BITS@" == "64"
|
|
|
|
|
|
|
|
${If} ${RunningX64}
|
|
|
|
${If} ${RunningX64}
|
|
|
|
; disable registry redirection (enable access to 64-bit portion of registry)
|
|
|
|
; disable registry redirection (enable access to 64-bit portion of registry)
|
|
|
|
SetRegView 64
|
|
|
|
SetRegView 64
|
|
|
@ -168,7 +161,6 @@ Function .onInit
|
|
|
|
MessageBox MB_OK|MB_ICONSTOP "Cannot install 64-bit version on a 32-bit system."
|
|
|
|
MessageBox MB_OK|MB_ICONSTOP "Cannot install 64-bit version on a 32-bit system."
|
|
|
|
Abort
|
|
|
|
Abort
|
|
|
|
${EndIf}
|
|
|
|
${EndIf}
|
|
|
|
!endif
|
|
|
|
|
|
|
|
FunctionEnd
|
|
|
|
FunctionEnd
|
|
|
|
|
|
|
|
|
|
|
|
# Uninstaller functions
|
|
|
|
# Uninstaller functions
|
|
|
|