mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-03 14:13:58 +00:00
Wininstaller, fix bug where previous installations, with emergency version greater than 1, could not be seen in registry on overinstall
This commit is contained in:
parent
95fcc42802
commit
c93b3a24a0
@ -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 != ""
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user