[LyX/master] Wininstaller, fix bug where previous installations, with emergency version greater than 1, could not be seen in registry on overinstall
Yu Jin
yu_jin at lyx.org
Tue Jul 7 19:19:15 UTC 2020
Am Di., 7. Juli 2020 um 21:14 Uhr schrieb Eugene Chornyi <yu_jin at lyx.org>:
> commit 32e501a282a3c9e83181979c32bf9b9cde79e43f
> Author: Eugene Chornyi <yu_jin at lyx.org>
> Date: Tue Jul 7 21:13:34 2020 +0200
>
> Wininstaller, fix bug where previous installations, with emergency
> version greater than 1, could not be seen in registry on overinstall
> ---
> .../Win32/packaging/installer/include/init.nsh | 8 ++++++--
> 1 files changed, 6 insertions(+), 2 deletions(-)
>
> diff --git a/development/Win32/packaging/installer/include/init.nsh
> b/development/Win32/packaging/installer/include/init.nsh
> index 76bacd5..bdbb495 100644
> --- a/development/Win32/packaging/installer/include/init.nsh
> +++ b/development/Win32/packaging/installer/include/init.nsh
> @@ -660,13 +660,17 @@ Function .onInit
> ReadRegStr $0 HKLM
> "Software\Microsoft\Windows\CurrentVersion\Uninstall\${APP_NAME}${APP_VERSION_MAJOR}${APP_VERSION_MINOR}$5"
> "DisplayVersion"
> # also check for an emergency release
> ${if} $0 == ""
> - ReadRegStr $0 HKLM
> "Software\Microsoft\Windows\CurrentVersion\Uninstall\${APP_NAME}${APP_VERSION_MAJOR}${APP_VERSION_MINOR}$51"
> "DisplayVersion"
> + ${For} $7 0 20
> + ReadRegStr $0 HKLM
> "Software\Microsoft\Windows\CurrentVersion\Uninstall\${APP_NAME}${APP_VERSION_MAJOR}${APP_VERSION_MINOR}$5$7"
> "DisplayVersion"
> + ${Next}
> ${endif}
> ${else}
> ReadRegStr $0 HKCU
> "Software\Microsoft\Windows\CurrentVersion\Uninstall\${APP_NAME}${APP_VERSION_MAJOR}${APP_VERSION_MINOR}$5"
> "DisplayVersion"
> # also check for an emergency release
> ${if} $0 == ""
> - ReadRegStr $0 HKCU
> "Software\Microsoft\Windows\CurrentVersion\Uninstall\${APP_NAME}${APP_VERSION_MAJOR}${APP_VERSION_MINOR}$51"
> "DisplayVersion"
> + ${For} $7 0 20
> + ReadRegStr $0 HKCU
> "Software\Microsoft\Windows\CurrentVersion\Uninstall\${APP_NAME}${APP_VERSION_MAJOR}${APP_VERSION_MINOR}$5$7"
> "DisplayVersion"
> + ${Next}
> ${endif}
> ${endif}
> ${if} $0 != ""
> --
> lyx-cvs mailing list
> lyx-cvs at lists.lyx.org
> http://lists.lyx.org/mailman/listinfo/lyx-cvs
This is the fix from the recent report in the devel ML. OK to commit to
stable?
Eugene
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20200707/2dde3a92/attachment.html>
More information about the lyx-devel
mailing list