mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-27 20:12:46 +08:00
[Windows] Add WIX binaries folder to the PATH (#9582)
* [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>
This commit is contained in:
@@ -5,4 +5,10 @@
|
||||
|
||||
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"
|
||||
|
||||
Reference in New Issue
Block a user