Skip to content

Commit 04f5d5b

Browse files
MarcoFalkeFuzzbawls
authored andcommitted
build: use full version string in setup.exe
1 parent c787618 commit 04f5d5b

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

share/setup.nsi.in

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ SetCompressor /SOLID lzma
55

66
# General Symbol Definitions
77
!define REGKEY "SOFTWARE\$(^Name)"
8-
!define VERSION @CLIENT_VERSION_MAJOR@.@CLIENT_VERSION_MINOR@.@CLIENT_VERSION_REVISION@
98
!define COMPANY "@PACKAGE_NAME@ project"
109
!define URL https://www.pivx.org
1110

@@ -48,7 +47,7 @@ Var StartMenuGroup
4847
!insertmacro MUI_LANGUAGE English
4948

5049
# Installer attributes
51-
OutFile @abs_top_srcdir@/@PACKAGE_TARNAME@-${VERSION}-win@[email protected]
50+
OutFile @abs_top_srcdir@/@PACKAGE_TARNAME@-@PACKAGE_VERSION@-win@[email protected]
5251
!if "@WINDOWS_BITS@" == "64"
5352
InstallDir $PROGRAMFILES64\Pivx
5453
!else
@@ -58,12 +57,12 @@ CRCCheck on
5857
XPStyle on
5958
BrandingText " "
6059
ShowInstDetails show
61-
VIProductVersion ${VERSION}.@CLIENT_VERSION_BUILD@
60+
VIProductVersion @CLIENT_VERSION_MAJOR@.@CLIENT_VERSION_MINOR@.@CLIENT_VERSION_REVISION@.@CLIENT_VERSION_BUILD@
6261
VIAddVersionKey ProductName "@PACKAGE_NAME@"
63-
VIAddVersionKey ProductVersion "${VERSION}"
62+
VIAddVersionKey ProductVersion "@PACKAGE_VERSION@"
6463
VIAddVersionKey CompanyName "${COMPANY}"
6564
VIAddVersionKey CompanyWebsite "${URL}"
66-
VIAddVersionKey FileVersion "${VERSION}"
65+
VIAddVersionKey FileVersion "@PACKAGE_VERSION@"
6766
VIAddVersionKey FileDescription ""
6867
VIAddVersionKey LegalCopyright ""
6968
InstallDirRegKey HKCU "${REGKEY}" Path
@@ -96,7 +95,7 @@ Section -post SEC0001
9695
CreateShortcut "$SMPROGRAMS\$StartMenuGroup\Uninstall $(^Name).lnk" $INSTDIR\uninstall.exe
9796
!insertmacro MUI_STARTMENU_WRITE_END
9897
WriteRegStr HKCU "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$(^Name)" DisplayName "$(^Name)"
99-
WriteRegStr HKCU "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$(^Name)" DisplayVersion "${VERSION}"
98+
WriteRegStr HKCU "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$(^Name)" DisplayVersion "@PACKAGE_VERSION@"
10099
WriteRegStr HKCU "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$(^Name)" Publisher "${COMPANY}"
101100
WriteRegStr HKCU "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$(^Name)" URLInfoAbout "${URL}"
102101
WriteRegStr HKCU "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$(^Name)" DisplayIcon $INSTDIR\uninstall.exe

0 commit comments

Comments
 (0)