mirror of https://github.com/ospab/ostp.git
fix: stabilize Windows dynamic UAC elevation by waiting for powershell handoff
This commit is contained in:
parent
e83d81b0a7
commit
c2407f3637
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue