Skip to content

v1.1.1 · 开机自启修复(最高权限计划任务) / Auto-start fix (elevated scheduled task)

Choose a tag to compare

@DC1024 DC1024 released this 25 Sep 05:50
· 3 commits to main since this release

中文

修复「开机自启」:

  • 旧版问题:自启写在 HKCU Run 键,exe 形态下路径解析错误指向 .ps1,重启后静默失效,且从不申请管理员权限。
  • 新方案:改用最高权限计划任务(登录触发、无时间限制)。勾选/点击「开机自启」时弹一次 UAC 授权,之后每次登录自动以管理员身份在托盘运行哨兵。
  • 旧 Run 条目会在升级后首次运行时自动清理;托盘菜单与界面复选框两处入口共用同一逻辑,操作后弹气泡反馈。
  • 无头自检扩至 29 个用例;exe 重编译(177,664 B)。

English

  • Old bug: auto-start wrote an HKCU Run entry that, in exe form, pointed at the .ps1 (wrong path resolution), silently failed after reboot, and never requested elevation.
  • New: a scheduled task with highest privileges (AtLogOn, no time limit). Toggling "auto-start" asks for admin once (UAC); afterwards the tray sentinel starts elevated at every logon.
  • Legacy Run entries are cleaned up automatically on first run; both toggle points share one routine with balloon feedback.
  • Headless self-test now covers 29 cases.

下载 / Download: PrinterStatusGuard.exe(单文件免安装 / single portable file)或 PrinterStatusGuard-v1.1.1-portable.zip。