mirror of
https://github.com/Grasscutters/Cultivation.git
synced 2025-12-12 23:24:35 +01:00
remove cmd requirement
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user