Skip to content

feat: 默认启动不请求管理员权限,必要时使用管理员权限重启#1390

Merged
fxliang merged 2 commits into
rime:masterfrom
WindyValley:elevate_when_necessary
Oct 18, 2024
Merged

feat: 默认启动不请求管理员权限,必要时使用管理员权限重启#1390
fxliang merged 2 commits into
rime:masterfrom
WindyValley:elevate_when_necessary

Conversation

@WindyValley

Copy link
Copy Markdown
Contributor
  • 写 HKCU 的命令不需要管理员权限,工程文件里的 RequireAdministrator 改为 AsInvoker
  • 调用 uninstall 和 install/CustomInstall 前判断一下进程的状态, 如果不是管理就提权重启

@WindyValley WindyValley force-pushed the elevate_when_necessary branch from 5515b65 to 5b4ae18 Compare October 13, 2024 06:54
- 写 HKCU 的命令不需要管理员权限,工程文件里的 RequireAdministrator
  改为 AsInvoker
- 调用 uninstall 和 install/CustomInstall 前判断一下进程的状态,
  如果不是管理就提权重启
@WindyValley WindyValley force-pushed the elevate_when_necessary branch from 5b4ae18 to 6130b69 Compare October 13, 2024 09:11
@WindyValley

Copy link
Copy Markdown
Contributor Author

@fxliang 改了一下格式问题,麻烦重发一下CI

@WindyValley

Copy link
Copy Markdown
Contributor Author

有点坑,忘了VS的工程文件Release跟Debug的属性是分开的

@WindyValley

Copy link
Copy Markdown
Contributor Author

我自查没问题了,大佬们看如果没问题麻烦抽空合一下

@fxliang fxliang merged commit ba768a6 into rime:master Oct 18, 2024
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants