[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:
V-Zabayrachny
2021-12-14 11:31:48 +03:00
committed by GitHub
parent ea705c4d63
commit 573c5aa999
3 changed files with 12 additions and 3 deletions

View File

@@ -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
{