From 80625a06faae8904286f3e180b396f6495309034 Mon Sep 17 00:00:00 2001 From: TingPing Date: Sat, 12 Oct 2013 13:36:43 -0400 Subject: Fix installer on 32bit Windows --- win32/installer/hexchat.iss | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'win32/installer') 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; -- cgit 1.4.1