]> git.lyx.org Git - lyx.git/commitdiff
Wininstaller, fix bug where previous installations, with emergency version greater...
authorEugene Chornyi <yu_jin@lyx.org>
Tue, 7 Jul 2020 19:13:34 +0000 (21:13 +0200)
committerEugene Chornyi <yu_jin@lyx.org>
Tue, 7 Jul 2020 19:51:23 +0000 (21:51 +0200)
development/Win32/packaging/installer/include/init.nsh
status.23x

index 4276a07cb7e46d1825fe3e7332c03ea171c17b49..00a6d1aeff79ece874ee6e2c6d70949697a72736 100644 (file)
@@ -651,13 +651,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 != ""
index 1bf9d58c4ed1d02463a025829cb974f1b50a9d71..e9b30fd954cf4af7768ba9fbcc45fef26f785a66 100644 (file)
@@ -87,4 +87,5 @@ What's new
 
 * BUILD/INSTALLATION
 
-
+- Wininstaller, fix bug where previous installations, with emergency version
+  greater than 1, could not be seen in registry on overinstall