Closed
Description
I have a fairly simple manifest using chocolatey/chocolatey
and puppetlabs/powershell
- when I install a component that updates the Machine Path (i.e. [System.Environment]::GetEnvironmentVariable("Path","Machine")
), and subsequently issue an Exec
which depends on that, it fails because Powershell doesn't see the updated Path.
I've tried setting path => $::path
, path => $([System.Environment]::GetEnvironmentVariable("Path","Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path","User"))
and various other permutations to try to force an up-to-date Path being used, to no avail.
Any magic to make this work? Thanks!
Metadata
Metadata
Assignees
Labels
No labels