mirror of
https://github.com/tnodir/fort
synced 2024-11-15 01:36:22 +00:00
Installer: Windows 7: Check for installed KB4474419
This commit is contained in:
parent
9e69a91850
commit
82c4974f90
@ -140,6 +140,35 @@ begin
|
||||
Result := (Version.Major > 10) or ((Version.Major = 10) and (Version.Build > 19040));
|
||||
end;
|
||||
|
||||
function IsWindows7(): Boolean;
|
||||
var
|
||||
Version: TWindowsVersion;
|
||||
begin
|
||||
GetWindowsVersionEx(Version);
|
||||
Result := (Version.Major = 6) and (Version.Minor = 1);
|
||||
end;
|
||||
|
||||
function IsUpdateInstalled(KB: String): Boolean;
|
||||
var
|
||||
UpdateSession: Variant;
|
||||
UpdateSearcher: Variant;
|
||||
SearchResult: Variant;
|
||||
I: Integer;
|
||||
begin
|
||||
UpdateSession := CreateOleObject('Microsoft.Update.Session');
|
||||
UpdateSearcher := UpdateSession.CreateUpdateSearcher();
|
||||
SearchResult := UpdateSearcher.Search('IsInstalled=1');
|
||||
for I := 0 to SearchResult.Updates.Count - 1 do
|
||||
begin
|
||||
if SearchResult.Updates.Item(I).KBArticleIDs.Item(0) = KB then
|
||||
begin
|
||||
Result := true;
|
||||
Exit;
|
||||
end;
|
||||
end;
|
||||
Result := false;
|
||||
end;
|
||||
|
||||
function HVCIEnabled(): Boolean;
|
||||
var
|
||||
EnabledValue: Cardinal;
|
||||
@ -292,6 +321,14 @@ begin
|
||||
begin
|
||||
SuppressibleMsgBox(ExpandConstant('{cm:NotCompatibleWithWindows}'), mbCriticalError, MB_OK, IDOK);
|
||||
|
||||
Result := False;
|
||||
Exit;
|
||||
end;
|
||||
#else
|
||||
if IsWindows7() and not IsUpdateInstalled('4474419') then
|
||||
begin
|
||||
SuppressibleMsgBox(ExpandConstant('{cm:NotCompatibleWithWindows7}'), mbCriticalError, MB_OK, IDOK);
|
||||
|
||||
Result := False;
|
||||
Exit;
|
||||
end;
|
||||
|
@ -14,5 +14,6 @@ UninstallPasswordOK=OK
|
||||
UninstallPasswordCancel=Cancel
|
||||
WrongPassword=Wrong password
|
||||
NotCompatibleWithWindows=This program is not compatible with Windows version (Windows 10 2004 or newer required).
|
||||
NotCompatibleWithWindows7=This program is not compatible with Windows 7 version (KB4474419 required).
|
||||
NotCompatibleWithHVCI=This program is not compatible with HVCI (Core Isolation).
|
||||
IsDeleteData=Delete config & data files?
|
||||
|
@ -14,5 +14,6 @@ UninstallPasswordOK=ȷ
|
||||
UninstallPasswordCancel=取消
|
||||
WrongPassword=密码错误
|
||||
NotCompatibleWithWindows=This program is not compatible with Windows version (Windows 10 2004 or newer required).
|
||||
NotCompatibleWithWindows7=This program is not compatible with Windows 7 version (KB4474419 required).
|
||||
NotCompatibleWithHVCI=这个程序与HVCI(核心隔离)不兼容。
|
||||
IsDeleteData=您希望删除配置文件和数据文件吗?
|
||||
|
@ -14,5 +14,6 @@ UninstallPasswordOK=OK
|
||||
UninstallPasswordCancel=Cancel
|
||||
WrongPassword=Wrong password
|
||||
NotCompatibleWithWindows=This program is not compatible with Windows version (Windows 10 2004 or newer required).
|
||||
NotCompatibleWithWindows7=This program is not compatible with Windows 7 version (KB4474419 required).
|
||||
NotCompatibleWithHVCI=This program is not compatible with HVCI (Core Isolation).
|
||||
IsDeleteData=Delete config & data files?
|
||||
|
@ -14,5 +14,6 @@ UninstallPasswordOK=OK
|
||||
UninstallPasswordCancel=Cancel
|
||||
WrongPassword=Wrong password
|
||||
NotCompatibleWithWindows=This program is not compatible with Windows version (Windows 10 2004 or newer required).
|
||||
NotCompatibleWithWindows7=This program is not compatible with Windows 7 version (KB4474419 required).
|
||||
NotCompatibleWithHVCI=This program is not compatible with HVCI (Core Isolation).
|
||||
IsDeleteData=Delete config & data files?
|
||||
|
@ -14,5 +14,6 @@ UninstallPasswordOK=OK
|
||||
UninstallPasswordCancel=Cancel
|
||||
WrongPassword=Wrong password
|
||||
NotCompatibleWithWindows=This program is not compatible with Windows version (Windows 10 2004 or newer required).
|
||||
NotCompatibleWithWindows7=This program is not compatible with Windows 7 version (KB4474419 required).
|
||||
NotCompatibleWithHVCI=This program is not compatible with HVCI (Core Isolation).
|
||||
IsDeleteData=Delete config & data files?
|
||||
|
@ -14,5 +14,6 @@ UninstallPasswordOK=OK
|
||||
UninstallPasswordCancel=Cancel
|
||||
WrongPassword=Wrong password
|
||||
NotCompatibleWithWindows=This program is not compatible with Windows version (Windows 10 2004 or newer required).
|
||||
NotCompatibleWithWindows7=This program is not compatible with Windows 7 version (KB4474419 required).
|
||||
NotCompatibleWithHVCI=This program is not compatible with HVCI (Core Isolation).
|
||||
IsDeleteData=Delete config & data files?
|
||||
|
@ -14,5 +14,6 @@ UninstallPasswordOK=OK
|
||||
UninstallPasswordCancel=Cancel
|
||||
WrongPassword=Wrong password
|
||||
NotCompatibleWithWindows=This program is not compatible with Windows version (Windows 10 2004 or newer required).
|
||||
NotCompatibleWithWindows7=This program is not compatible with Windows 7 version (KB4474419 required).
|
||||
NotCompatibleWithHVCI=This program is not compatible with HVCI (Core Isolation).
|
||||
IsDeleteData=Delete config & data files?
|
||||
|
@ -14,5 +14,6 @@ UninstallPasswordOK=OK
|
||||
UninstallPasswordCancel=Cancel
|
||||
WrongPassword=Wrong password
|
||||
NotCompatibleWithWindows=This program is not compatible with Windows version (Windows 10 2004 or newer required).
|
||||
NotCompatibleWithWindows7=This program is not compatible with Windows 7 version (KB4474419 required).
|
||||
NotCompatibleWithHVCI=This program is not compatible with HVCI (Core Isolation).
|
||||
IsDeleteData=Delete config & data files?
|
||||
|
@ -14,5 +14,6 @@ UninstallPasswordOK=OK
|
||||
UninstallPasswordCancel=Отмена
|
||||
WrongPassword=Wrong password
|
||||
NotCompatibleWithWindows=Эта программа несовместима с версией Windows (требуется Windows 10 2004 или новее).
|
||||
NotCompatibleWithWindows7=Эта программа несовместима с версией Windows 7 (требуется KB4474419).
|
||||
NotCompatibleWithHVCI=Эта программа несовместима с HVCI (Core Isolation).
|
||||
IsDeleteData=Удалить настройки и файлы данных?
|
||||
|
@ -14,5 +14,6 @@ UninstallPasswordOK=OK
|
||||
UninstallPasswordCancel=Cancel
|
||||
WrongPassword=Wrong password
|
||||
NotCompatibleWithWindows=This program is not compatible with Windows version (Windows 10 2004 or newer required).
|
||||
NotCompatibleWithWindows7=This program is not compatible with Windows 7 version (KB4474419 required).
|
||||
NotCompatibleWithHVCI=This program is not compatible with HVCI (Core Isolation).
|
||||
IsDeleteData=Delete config & data files?
|
||||
|
Loading…
Reference in New Issue
Block a user