mirror of
https://github.com/actions/runner-images.git
synced 2025-12-15 06:08:07 +00:00
Use the value from toolset visualStudio.edition when locating VSIXInstaller (#2476)
* Use the value from toolset visualStudio.edition when locating VSIXInstaller. Previously it was hardwired to "Enterprise". * Changed as per review: https://github.com/actions/virtual-environments/pull/2476#discussion_r559966129
This commit is contained in:
@@ -220,12 +220,13 @@ function Install-VsixExtension
|
||||
$argumentList = ('/quiet', "`"$FilePath`"")
|
||||
|
||||
Write-Host "Starting Install $Name..."
|
||||
$vsEdition = (Get-ToolsetContent).visualStudio.edition
|
||||
try
|
||||
{
|
||||
#There are 2 types of packages at the moment - exe and vsix
|
||||
if ($Name -match "vsix")
|
||||
{
|
||||
$process = Start-Process -FilePath "C:\Program Files (x86)\Microsoft Visual Studio\$VSversion\Enterprise\Common7\IDE\VSIXInstaller.exe" -ArgumentList $argumentList -Wait -PassThru
|
||||
$process = Start-Process -FilePath "C:\Program Files (x86)\Microsoft Visual Studio\$VSversion\${vsEdition}\Common7\IDE\VSIXInstaller.exe" -ArgumentList $argumentList -Wait -PassThru
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user