From 81039ddce33be9ac6a92473e594d2bc11913d54d Mon Sep 17 00:00:00 2001 From: Nikita Bykov Date: Wed, 2 Sep 2020 15:52:51 +0300 Subject: [PATCH] update --- win-vs-env.psm1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/win-vs-env.psm1 b/win-vs-env.psm1 index 3178a2a..e9f3d1a 100644 --- a/win-vs-env.psm1 +++ b/win-vs-env.psm1 @@ -3,8 +3,8 @@ ### function Get-VSWhere { - $vswhere = "C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe"; - + $vswhere = "C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe" + if (-not (Test-Path $vswhere )) { [Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol -bor [Net.SecurityProtocolType]::Tls12 $vswhere = ".\vswhere.exe"