summary refs log tree commit diff stats
path: root/win32/installer
diff options
context:
space:
mode:
authorTingPing <TingPing@users.noreply.github.com>2013-10-12 13:36:43 -0400
committerTingPing <TingPing@users.noreply.github.com>2013-10-12 13:36:43 -0400
commit80625a06faae8904286f3e180b396f6495309034 (patch)
tree425c201e78d470c5329d335f42fb11175c208016 /win32/installer
parentadab8567e4806d45a49e1fd69290791dd36e95c7 (diff)
Fix installer on 32bit Windows
Diffstat (limited to 'win32/installer')
-rw-r--r--win32/installer/hexchat.iss7
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;