diff --git a/src/PlatformEngines.jl b/src/PlatformEngines.jl index 813ae7e..8a64253 100644 --- a/src/PlatformEngines.jl +++ b/src/PlatformEngines.jl @@ -265,7 +265,7 @@ function probe_platform_engines!(;verbose::Bool = false) end # We want to search both the `PATH`, and the direct path for powershell - psh_path = "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell" + psh_path = joinpath(get(ENV, "SYSTEMROOT", "C:\\Windows"), "System32\\WindowsPowerShell\\v1.0\\powershell.exe") prepend!(download_engines, [ (`$psh_path -Command ""`, psh_download(psh_path)) ])