mirror of
https://github.com/actions/runner-images.git
synced 2025-12-14 13:17:54 +00:00
* [Windows] Add WIX binaries folder to the PATH * Add Update-Environment, small prettifying * Move tests from script to Pester * Fix Wix tests to use Join-Path --------- Co-authored-by: Leon Zandman <lzandman@github.com>
15 lines
565 B
PowerShell
15 lines
565 B
PowerShell
################################################################################
|
|
## File: Install-Wix.ps1
|
|
## Desc: Install WIX.
|
|
################################################################################
|
|
|
|
Install-ChocoPackage wixtoolset -ArgumentList "--force"
|
|
|
|
Update-Environment
|
|
$currentPath = [System.Environment]::GetEnvironmentVariable("PATH", "Machine")
|
|
$newPath = $currentPath + ";$(Join-Path -Path $env:WIX -ChildPath "bin")"
|
|
[Environment]::SetEnvironmentVariable("PATH", $newPath, "Machine")
|
|
Update-Environment
|
|
|
|
Invoke-PesterTests -TestFile "Wix"
|