mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-03-19 12:10:19 +00:00
Use registry check for VC++ runtime detect
This commit is contained in:
@@ -241,8 +241,14 @@ end;
|
|||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////
|
||||||
function CheckVCInstall(): Boolean;
|
function CheckVCInstall(): Boolean;
|
||||||
|
var
|
||||||
|
Installed: Cardinal;
|
||||||
begin
|
begin
|
||||||
Result := FileExists(GetSysDir() + 'vcruntime140.dll');;
|
Result := False;
|
||||||
|
if RegQueryDWordValue(HKLM64, 'SOFTWARE\Microsoft\VisualStudio\14.0\VC\Runtimes\x64', 'Installed', Installed) then
|
||||||
|
Result := Installed = 1
|
||||||
|
else if RegQueryDWordValue(HKLM, 'SOFTWARE\Microsoft\VisualStudio\14.0\VC\Runtimes\x64', 'Installed', Installed) then
|
||||||
|
Result := Installed = 1;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure UpdateVCRedistComponentState;
|
procedure UpdateVCRedistComponentState;
|
||||||
|
|||||||
Reference in New Issue
Block a user