mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-20 06:29:50 +00:00
[Windows] Refactor PATH helpers (#8885)
This commit is contained in:
committed by
GitHub
parent
c73276d3f6
commit
bfe32a2b12
@@ -8,8 +8,7 @@ $NsisVersion = (Get-ToolsetContent).nsis.version
|
||||
|
||||
Install-ChocoPackage nsis -ArgumentList "--version", "$NsisVersion"
|
||||
|
||||
$NsisPath = "${env:ProgramFiles(x86)}\NSIS\"
|
||||
Add-MachinePathItem $NsisPath
|
||||
$env:Path = Get-MachinePath
|
||||
Add-MachinePathItem "${env:ProgramFiles(x86)}\NSIS\"
|
||||
Update-Environment
|
||||
|
||||
Invoke-PesterTests -TestFile "Tools" -TestName "NSIS"
|
||||
|
||||
Reference in New Issue
Block a user