We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e7a4a0 commit bbe4f96Copy full SHA for bbe4f96
Tasks/DeployVisualStudioTestAgent/InstallTestAgent.ps1
@@ -26,11 +26,10 @@ function InstallTestAgent2017 {
26
27
# First we need to install the certificates for TA 2017
28
$SetupDir = Split-Path -Path $SetupPath
29
-
30
- $osVersion = [environment]::OSVersion.Version
31
$certFiles = Get-ChildItem -Path "$SetupDir\certificates\*.p12" -ErrorAction SilentlyContinue
32
if($certFiles -and $certFiles.Length -gt 0)
33
{
+ $osVersion = [environment]::OSVersion.Version
34
Write-Verbose "Installing test agent certificates" -Verbose
35
if ($osVersion.Major -eq "6" -and $osVersion.Minor -eq "1") {
36
## Windows 7 SP1. Import-PfxCertificate is not present in windows 7
0 commit comments