diff --git a/development/Win32/packaging/installer/gui/reinstall.nsh b/development/Win32/packaging/installer/gui/reinstall.nsh index 81f1d0df56..af1c11fcfd 100644 --- a/development/Win32/packaging/installer/gui/reinstall.nsh +++ b/development/Win32/packaging/installer/gui/reinstall.nsh @@ -22,7 +22,7 @@ Function PageReinstall # If so, some registry key like Software/Lyx16 should exist ReadRegStr $InstalledVersion SHELL_CONTEXT ${APP_REGKEY} "Version" - ${If} $InstalledVersion != "${APP_VERSION}" + ${If} $InstalledVersion != "${APP_VERSION_NUMBER}" # Different version, go ahead Abort ${EndIf} diff --git a/development/Win32/packaging/installer/include/declarations.nsh b/development/Win32/packaging/installer/include/declarations.nsh index 428141c8a2..0453778255 100644 --- a/development/Win32/packaging/installer/include/declarations.nsh +++ b/development/Win32/packaging/installer/include/declarations.nsh @@ -85,7 +85,6 @@ SetCompressor /SOLID lzma # Names and version !define APP_NAME "LyX" -!define /date APP_VERSION "${APP_VERSION_MAJOR}.${APP_VERSION_MINOR}svn %Y%m%d" !define APP_VERSION_NUMBER "${APP_VERSION_MAJOR}.${APP_VERSION_MINOR}.${APP_VERSION_REVISION}.${APP_VERSION_BUILD}" !define APP_SERIES_NAME "${APP_VERSION_MAJOR}.${APP_VERSION_MINOR}" !define APP_SERIES_KEY "${APP_VERSION_MAJOR}${APP_VERSION_MINOR}" diff --git a/development/Win32/packaging/installer/settings.nsh b/development/Win32/packaging/installer/settings.nsh index 73704fede7..86adfb2023 100644 --- a/development/Win32/packaging/installer/settings.nsh +++ b/development/Win32/packaging/installer/settings.nsh @@ -14,6 +14,8 @@ These typically need to be modified for each LyX release !define APP_VERSION_REVISION 0 !define APP_VERSION_BUILD 0 # Start with 1 for the installer releases of each version +!define /date APP_VERSION "${APP_VERSION_MAJOR}.${APP_VERSION_MINOR}svn %Y%m%d" # Version to display + #-------------------------------- # Installer file name diff --git a/development/Win32/packaging/installer/setup/configure.nsh b/development/Win32/packaging/installer/setup/configure.nsh index e6e908be7d..e7cb47b2d7 100644 --- a/development/Win32/packaging/installer/setup/configure.nsh +++ b/development/Win32/packaging/installer/setup/configure.nsh @@ -42,7 +42,7 @@ Section -InstallData # Registry information WriteRegStr SHELL_CONTEXT ${APP_REGKEY} "" $INSTDIR - WriteRegStr SHELL_CONTEXT ${APP_REGKEY} "Version" "${APP_VERSION}" + WriteRegStr SHELL_CONTEXT ${APP_REGKEY} "Version" "${APP_VERSION_NUMBER}" WriteRegStr SHELL_CONTEXT ${APP_REGKEY_SETUP} "LaTeX Path" $PathLaTeX WriteRegStr SHELL_CONTEXT ${APP_REGKEY_SETUP} "ImageMagick Path" $PathImageMagick