From 9a9dc6df65114eba49a7c3318e76d73e19e649d5 Mon Sep 17 00:00:00 2001 From: ChanTsune <41658782+ChanTsune@users.noreply.github.com> Date: Sat, 4 Apr 2026 11:17:36 +0900 Subject: [PATCH] fix: add -File parameter to PowerShell installer invocation Without -File, PowerShell defaults to -Command mode, which misinterprets installer paths containing spaces as multiple tokens, causing CommandNotFoundException. Refs: axodotdev/cargo-dist#2337 --- axoupdater/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/axoupdater/src/lib.rs b/axoupdater/src/lib.rs index b24b2d2..bb53241 100644 --- a/axoupdater/src/lib.rs +++ b/axoupdater/src/lib.rs @@ -521,7 +521,7 @@ impl AxoUpdater { // which require opt-in to execing powershell scripts. // This doesn't bypass proper organization-set policies. command.arg("-ExecutionPolicy").arg("ByPass"); - command.arg(&installer_path); + command.arg("-File").arg(&installer_path); } if self.print_installer_stdout { command.stdout(Stdio::inherit());