From 4fc6ac3a153f21642c8ae5e386492b0405195a9c Mon Sep 17 00:00:00 2001 From: penev92 Date: Tue, 2 Jun 2015 15:30:23 +0300 Subject: [PATCH] Check for MS VC++ 2010 --- make.ps1 | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/make.ps1 b/make.ps1 index b567149355..277819469f 100644 --- a/make.ps1 +++ b/make.ps1 @@ -120,6 +120,13 @@ elseif ($command -eq "dependencies") cp download/windows/*.dll .. cd .. echo "Dependencies copied." + + $dep = "Microsoft Visual C++ 2010" + $results = Get-ItemProperty HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\* | select DisplayName | Where-Object {$_.DisplayName -like $("$dep*")} + if (!($results -is [array]) -and !$results.DisplayName) + { + Write-Host "Warning! Freetype6.dll requires Microsoft Visual C++ 2010 x86 Redistributable!" -Foreground "Red" + } } elseif ($command -eq "test") {