Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

[Bug]: Windows update click opens the full NSIS wizard instead of a UAC prompt

未关闭
#1,437 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

@EtienneLescot 已经在做这个了。

开始于 2026年10月30日。

  • #1439 来自 @EtienneLescot —— 未关闭

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
30/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
electron, typescript
领域
desktop

调研方向

The bug is in electron/auto-updater.ts where installSelfUpdate calls quitAndInstall(false, true). Read that function and electron-builder.json5 to see why the NSIS wizard appears. Pass the right flags so only a UAC prompt shows, then verify on Windows that the update installs without wizard pages.

由索引模型根据 Issue 内容生成。

描述

bug

Clicking the update button on Windows opens the full NSIS install wizard instead of only a UAC prompt.

Repro

  • Windows 11, v2.2.0-rc.1 NSIS x64, per-machine install (C:\Program Files\Openscreen), the only install on the machine.
  • Local update feed (checklist, "Updating in place — post-2.1.2") offering 9.9.9.
  • Wait for the blue update button, click it.

Expected

The app quits, Windows asks for UAC, the update installs and the app comes back. That is what the comment on installSelfUpdate in electron/auto-updater.ts describes.

Actual

  • The installer runs as Openscreen.Setup.2.2.0-rc.1-x64.exe --updated --force-run, without /S.
  • The wizard opens on "Who should this application be installed for?", with Anyone who uses this computer preselected and a note that an existing per-machine install will be updated.
  • Next, then UAC, then the update installs and the app comes back. So the end state is right; the path is not.

Worse with two installs

On a machine that also had an old per-user install, the same page preselected Just for me, which updates the other copy. Choosing All users updated the right one but uninstalled the per-user copy.

Cause

  • installSelfUpdate calls quitAndInstall(false, true). With isSilent=false and oneClick: false in electron-builder.json5, the assisted installer shows its pages.
  • The call is unchanged since v2.1.2, so this is not a 2.2.0 regression.
  • The install-mode page is only skipped by /allusers, /currentuser or a custom install mode.

Found during the rc.1 e2e pass (#1431).

主要语言
TypeScript
星标
3.7k
派生
231
平均合并
15 小时 10 分钟
30 天内合并 PR
324

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

getopenscreen/openscreen 的其他 Issue

查看 getopenscreen/openscreen 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。