diff options
Diffstat (limited to 'win32/installer')
-rw-r--r-- | win32/installer/hexchat.iss | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/win32/installer/hexchat.iss b/win32/installer/hexchat.iss index 1368dcad..68d0bedb 100644 --- a/win32/installer/hexchat.iss +++ b/win32/installer/hexchat.iss @@ -203,10 +203,11 @@ begin RegQueryStringValue(HKCU, sUnInstPath, 'UninstallString', sUnInstallString); if not (sUnInstallString <> '') then sUnInstPath := ExpandConstant('Software\Microsoft\Windows\CurrentVersion\Uninstall\HexChat_is1'); - if not RegQueryStringValue(HKLM64, sUnInstPath, 'UninstallString', sUnInstallString) then - if not RegQueryStringValue(HKCU64, sUnInstPath, 'UninstallString', sUnInstallString) then if not RegQueryStringValue(HKLM32, sUnInstPath, 'UninstallString', sUnInstallString) then - RegQueryStringValue(HKCU32, sUnInstPath, 'UninstallString', sUnInstallString); + if not RegQueryStringValue(HKCU32, sUnInstPath, 'UninstallString', sUnInstallString) then + if IsWin64 then + if not RegQueryStringValue(HKLM64, sUnInstPath, 'UninstallString', sUnInstallString) then + RegQueryStringValue(HKCU64, sUnInstPath, 'UninstallString', sUnInstallString); Result := sUnInstallString; end; |