From c2407f363782419355fb068c0075d9b323dae29a Mon Sep 17 00:00:00 2001 From: ospab Date: Fri, 15 May 2026 16:39:19 +0300 Subject: [PATCH] fix: stabilize Windows dynamic UAC elevation by waiting for powershell handoff --- ostp-client/src/runner.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ostp-client/src/runner.rs b/ostp-client/src/runner.rs index 8aadb8a..7cad9c4 100644 --- a/ostp-client/src/runner.rs +++ b/ostp-client/src/runner.rs @@ -68,7 +68,7 @@ fn relaunch_as_admin() -> Result<()> { let _ = std::process::Command::new("powershell") .args(["-Command", &ps_script]) - .spawn()?; + .status()?; std::process::exit(0); }