summary refs log tree commit diff stats
path: root/win32/installer
diff options
context:
space:
mode:
authorTingPing <tingping@tingping.se>2015-02-22 00:20:26 -0500
committerTingPing <tingping@tingping.se>2015-02-22 00:20:26 -0500
commitb009084a52b961aabeacb4ce08684a5366e7b41c (patch)
tree6ef91992805ff3b2e7349543e52e4deeb115a287 /win32/installer
parent7e7e87600e4a8e826e39ced94432582007a8ee0a (diff)
Don't install spelling dicts if win8+
Diffstat (limited to 'win32/installer')
-rw-r--r--win32/installer/hexchat.iss.tt10
1 files changed, 9 insertions, 1 deletions
diff --git a/win32/installer/hexchat.iss.tt b/win32/installer/hexchat.iss.tt
index 9f55e8fd..6c71de12 100644
--- a/win32/installer/hexchat.iss.tt
+++ b/win32/installer/hexchat.iss.tt
@@ -230,8 +230,16 @@ end;
 
 /////////////////////////////////////////////////////////////////////
 function CheckSpellInstall(): Boolean;
+var
+	Version: TWindowsVersion;
 begin
-	Result := DirExists(ExpandConstant('{localappdata}') + '\enchant');;
+	GetWindowsVersionEx(Version);
+
+	// Windows 8 or greater has built in spell check.
+	if Version.NTPlatform and (Version.Major > 6) or ((Version.Major = 6) and (Version.Minor > 1)) then
+		Result := True
+	else
+		Result := DirExists(ExpandConstant('{localappdata}') + '\enchant\myspell');
 end;
 
 /////////////////////////////////////////////////////////////////////