mirror of
https://github.com/Chia-Network/chia-blockchain.git
synced 2026-08-24 10:05:29 -05:00
Fix Install.ps1 check for msvcp140.dll (#8911)
The original resulted in the following error when `msvcp140.dll` was not present.
```console
PS C:\chia\chia-blockchain> ./install.ps1
Get-Item : Cannot find path 'C:\WINDOWS\System32\msvcp140.dll' because it does not exist.
At C:\chia\chia-blockchain\Install.ps1:9 char:11
+ if (-not (Get-Item "$env:windir\System32\msvcp140.dll").Exists)
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (C:\WINDOWS\System32\msvcp140.dll:String) [Get-Item], ItemNotFoundExcept
ion
+ FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetItemCommand
This commit is contained in:
+1
-1
@@ -6,7 +6,7 @@ if ([Environment]::Is64BitOperatingSystem -eq $false)
|
||||
Exit 1
|
||||
}
|
||||
|
||||
if ((Get-Item "$env:windir\System32\msvcp140.dll").Exists -eq $false)
|
||||
if (-not (Get-Item -ErrorAction SilentlyContinue "$env:windir\System32\msvcp140.dll").Exists)
|
||||
{
|
||||
Write-Output "Unable to find Visual C++ Runtime DLLs"
|
||||
Write-Output ""
|
||||
|
||||
Reference in New Issue
Block a user