mirror of
https://github.com/Grasscutters/Cultivation.git
synced 2025-12-15 08:34:43 +01:00
remove cmd requirement
This commit is contained in:
@@ -10,7 +10,7 @@ pub fn reopen_as_admin() {
|
|||||||
Command::new("powershell.exe")
|
Command::new("powershell.exe")
|
||||||
.arg("powershell")
|
.arg("powershell")
|
||||||
.arg(format!(
|
.arg(format!(
|
||||||
"-command \"&{{Start-Process -filepath 'cmd' -argumentlist '/c \"{}\"' -verb runas}}\"",
|
"-command \"&{{Start-Process -filepath '{}' -verb runas}}\"",
|
||||||
install.to_str().unwrap()
|
install.to_str().unwrap()
|
||||||
))
|
))
|
||||||
.spawn()
|
.spawn()
|
||||||
|
|||||||
Reference in New Issue
Block a user