Commit 53e6c0c
authored
Add admin check to uninstall of machine font (microsoft#5779)
<!-- To check a checkbox place an "x" between the brackets. e.g: [x] -->
Fixes microsoft#5774
Adds an admin check to the font uninstall flow.
Non-elevated uninstall of machine font
<img width="585" height="63" alt="image"
src="https://github.com/user-attachments/assets/e02bea39-8e88-42fc-9355-7b90b875e44a"
/>
Elevated uninstall of machine font
<img width="517" height="53" alt="image"
src="https://github.com/user-attachments/assets/d22d502f-64d2-4f4e-8bed-6a8f8ada9071"
/>
Tested:
* Uninstall of machine installed font succeeds from elevated command
prompt.
* Uninstall of machine font from non-elevated command prompt fails.
No release note update required for this, fixes a bug in unreleased
code.
- [x] I have signed the [Contributor License
Agreement](https://cla.opensource.microsoft.com/microsoft/winget-pkgs).
- [x] I have updated the [Release Notes](../doc/ReleaseNotes.md).
- [x] This pull request is related to an issue.
-----
###### Microsoft Reviewers: [Open in
CodeFlow](https://microsoft.github.io/open-pr/?codeflow=https://github.com/microsoft/winget-cli/pull/5779)1 parent 79e40bf commit 53e6c0c
1 file changed
+6
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
315 | 315 | | |
316 | 316 | | |
317 | 317 | | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
318 | 324 | | |
319 | 325 | | |
320 | 326 | | |
| |||
0 commit comments