Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,8 @@

## Update

为了不被打扰的使用输入法,防止各种不小心误升级(比如使用了代理),误点开不需要的功能(比如AI汪仔),对当前用户禁用了以下程序的执行权限:
为了不被打扰的使用输入法,防止各种不小心误升级(比如使用了代理),对当前用户禁用了以下程序的执行权限:

- SOGOUSmartAssistant.exe
- SogouPlayLauncher.exe
- SGWangzai.exe
- SGSmartAssistant.exe
Expand Down
2 changes: 1 addition & 1 deletion run.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ function Add-BlockRule {


# 需要禁用的更新程序列表
$exeList = @("SOGOUSmartAssistant.exe", "SogouPlayLauncher.exe", "SGWangzai.exe", "SGSmartAssistant.exe", "SGDownload.exe", "PinyinUp.exe")
$exeList = @("SogouPlayLauncher.exe", "SGWangzai.exe", "SGSmartAssistant.exe", "SGDownload.exe", "PinyinUp.exe")
# 定义要拒绝的权限:读取 & 执行
$denyRight = [System.Security.AccessControl.FileSystemRights]::Read -bor [System.Security.AccessControl.FileSystemRights]::ExecuteFile
$denyRule = [System.Security.AccessControl.AccessControlType]::Deny
Expand Down
2 changes: 1 addition & 1 deletion uninstall.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ function Enable-ExeAccessRule {
Write-Host " 找到 $($exeFiles.Count) 个 .exe 文件,正在恢复权限..." -ForegroundColor Cyan

# 需要恢复权限的更新程序列表
$exeList = @("SOGOUSmartAssistant.exe", "SogouPlayLauncher.exe", "SGWangzai.exe", "SGSmartAssistant.exe", "SGDownload.exe", "PinyinUp.exe")
$exeList = @("SogouPlayLauncher.exe", "SGWangzai.exe", "SGSmartAssistant.exe", "SGDownload.exe", "PinyinUp.exe")

foreach ($file in $exeFiles) {
try {
Expand Down
Loading