Fixed an issue where installation of pgadmin4 not working on 32-bit Windows. Fixes #5630

This commit is contained in:
Paresh More 2020-06-29 10:22:04 +05:30 committed by Akshay Joshi
parent b91f6f0f5c
commit 2db518c9c6
2 changed files with 15 additions and 9 deletions

View File

@ -13,7 +13,8 @@ New features
Housekeeping
************
| `Issue #5326 <https://redmine.postgresql.org/issues/5326>`_ - Improve code coverage and API test cases for Domain and Domain Constraints
| `Issue #5326 <https://redmine.postgresql.org/issues/5326>`_ - Improve code coverage and API test cases for Domain and Domain Constraints.
| `Issue #5630 <https://redmine.postgresql.org/issues/5630>`_ - Fixed an issue where installation of pgadmin4 not working on 32-bit Windows.
Bug fixes
*********

View File

@ -194,6 +194,10 @@ begin
end;
end
else
begin
// Suppose system is running a 32-bit version of Windows then no need to check HKLM64 in RegQueryStringValue
// So IsWin64 - will make sure its should only execute on 64-bit veersion of windows.
if IsWin64 then
begin
// Check if pgAdmin 64 bit is already installed
RegQueryStringValue(HKLM64,'Software\{#MyAppName}\{#MyAppVersion}', 'Version', Version);
@ -206,6 +210,7 @@ begin
InstallationFound := True;
end;
end;
end;
if not (InstallationFound) then
begin