mirror of
https://github.com/actions/runner-images.git
synced 2025-12-15 22:26:56 +00:00
24 lines
882 B
PowerShell
24 lines
882 B
PowerShell
################################################################################
|
|
## File: Install-Wix.ps1
|
|
## Desc: Install WIX.
|
|
################################################################################
|
|
|
|
Import-Module -Name ImageHelpers -Force;
|
|
|
|
choco install wixtoolset -y --force
|
|
|
|
if(Test-IsWin19)
|
|
{
|
|
$extensionUrl = "https://wixtoolset.gallerycdn.vsassets.io/extensions/wixtoolset/wixtoolsetvisualstudio2019extension/1.0.0.4/1563296438961/Votive2019.vsix"
|
|
$VSver = "2019"
|
|
}
|
|
else
|
|
{
|
|
$extensionUrl = "https://robmensching.gallerycdn.vsassets.io/extensions/robmensching/wixtoolsetvisualstudio2017extension/0.9.21.62588/1494013210879/250616/4/Votive2017.vsix"
|
|
$VSver = "2017"
|
|
}
|
|
|
|
$extensionName = "Votive$VSver.vsix"
|
|
#Installing VS extension 'Wix Toolset Visual Studio Extension'
|
|
Install-VsixExtension -Url $extensionUrl -Name $extensionName -VSversion $VSver
|