动态 UAC

This commit is contained in:
2023-11-10 21:58:29 +08:00
parent 4776aa5647
commit 52591f4899
9 changed files with 69 additions and 41 deletions

View File

@ -55,8 +55,8 @@ class UpgradeDialogUIModel extends BaseUIModel {
}
try {
final r =
await (Process.run("powershell", ["start", fileName, "/SILENT"]));
final r = await (Process.run(
SystemHelper.powershellPath, ["start", fileName, "/SILENT"]));
if (r.stderr.toString().isNotEmpty) {
throw r.stderr;
}