remove cmd requirement

This commit is contained in:
SpikeHD
2022-09-04 18:08:02 -07:00
parent 7cf1b198ff
commit 55be3ebc2b

View File

@@ -10,7 +10,7 @@ pub fn reopen_as_admin() {
Command::new("powershell.exe")
.arg("powershell")
.arg(format!(
"-command \"&{{Start-Process -filepath 'cmd' -argumentlist '/c \"{}\"' -verb runas}}\"",
"-command \"&{{Start-Process -filepath '{}' -verb runas}}\"",
install.to_str().unwrap()
))
.spawn()