feat: 默认启动不请求管理员权限,必要时使用管理员权限重启#1390
Merged
Merged
Conversation
WindyValley
commented
Oct 13, 2024
Contributor
- 写 HKCU 的命令不需要管理员权限,工程文件里的 RequireAdministrator 改为 AsInvoker
- 调用 uninstall 和 install/CustomInstall 前判断一下进程的状态, 如果不是管理就提权重启
5515b65 to
5b4ae18
Compare
- 写 HKCU 的命令不需要管理员权限,工程文件里的 RequireAdministrator 改为 AsInvoker - 调用 uninstall 和 install/CustomInstall 前判断一下进程的状态, 如果不是管理就提权重启
5b4ae18 to
6130b69
Compare
Contributor
Author
|
@fxliang 改了一下格式问题,麻烦重发一下CI |
Contributor
Author
|
有点坑,忘了VS的工程文件Release跟Debug的属性是分开的 |
Contributor
Author
|
我自查没问题了,大佬们看如果没问题麻烦抽空合一下 |
wxyzh
pushed a commit
to wxyzh/weasel
that referenced
this pull request
Jan 2, 2025
* feat: 默认启动不请求管理员权限,必要时使用管理员权限重启 - 写 HKCU 的命令不需要管理员权限,工程文件里的 RequireAdministrator 改为 AsInvoker - 调用 uninstall 和 install/CustomInstall 前判断一下进程的状态, 如果不是管理就提权重启 * fix: 把 Release|Win32 的 UACExecutionLevel 也改成 AsInvoker
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.