Skip to content

Commit d2aa8b6

Browse files
committed
Fix: Fixed multiple UAC prompts when installing fonts
1 parent bb026d9 commit d2aa8b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Files.App/Utils/Shell/Win32API.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -892,7 +892,7 @@ public static async Task InstallFontsAsync(string[] fontFilePaths, bool forAllUs
892892
psCommand.Append(appendCommand);
893893
}
894894

895-
await RunPowershellCommandAsync(psCommand.Append("\"").ToString(), forAllUsers);
895+
await RunPowershellCommandAsync(psCommand.Append("\"").ToString(), true);
896896
}
897897

898898
private static Process CreatePowershellProcess(string command, bool runAsAdmin)

0 commit comments

Comments
 (0)