mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-15 06:19:21 +00:00
29 lines
1018 B
PowerShell
29 lines
1018 B
PowerShell
################################################################################
|
|
## File: Install-Wix.ps1
|
|
## Desc: Install WIX.
|
|
################################################################################
|
|
|
|
Choco-Install -PackageName wixtoolset -ArgumentList "--force"
|
|
|
|
if (Test-IsWin19)
|
|
{
|
|
$extensionUrl = "https://wixtoolset.gallerycdn.vsassets.io/extensions/wixtoolset/wixtoolsetvisualstudio2019extension/1.0.0.4/1563296438961/Votive2019.vsix"
|
|
$VSver = "2019"
|
|
}
|
|
elseif (Test-IsWin16)
|
|
{
|
|
$extensionUrl = "https://robmensching.gallerycdn.vsassets.io/extensions/robmensching/wixtoolsetvisualstudio2017extension/0.9.21.62588/1494013210879/250616/4/Votive2017.vsix"
|
|
$VSver = "2017"
|
|
}
|
|
else
|
|
{
|
|
throw "Invalid version of Visual Studio is found. Either 2017 or 2019 are required"
|
|
}
|
|
|
|
$extensionName = "Votive$VSver.vsix"
|
|
|
|
#Installing VS extension 'Wix Toolset Visual Studio Extension'
|
|
Install-VsixExtension -Url $extensionUrl -Name $extensionName -VSversion $VSver
|
|
|
|
Invoke-PesterTests -TestFile "Wix"
|