mirror of
https://github.com/actions/runner-images.git
synced 2025-12-13 20:56:47 +00:00
[Windows] Add installer projects to VS on Windows-2022 (#4715)
* [Windows] Add installer projects to VS on windows-2022 * [Windows] Improve the function Install-VsixExtension
This commit is contained in:
@@ -270,10 +270,17 @@ function Install-VsixExtension
|
||||
$vsEdition = (Get-ToolsetContent).visualStudio.edition
|
||||
try
|
||||
{
|
||||
$installPath = ${env:ProgramFiles(x86)}
|
||||
|
||||
if (Test-IsWin22)
|
||||
{
|
||||
$installPath = ${env:ProgramFiles}
|
||||
}
|
||||
|
||||
#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\${vsEdition}\Common7\IDE\VSIXInstaller.exe" -ArgumentList $argumentList -Wait -PassThru
|
||||
$process = Start-Process -FilePath "${installPath}\Microsoft Visual Studio\${VSversion}\${vsEdition}\Common7\IDE\VSIXInstaller.exe" -ArgumentList $argumentList -Wait -PassThru
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user