[Bug]: Windows update click opens the full NSIS wizard instead of a UAC prompt
维护者通常 1 天内回复
评估
- 难度
- 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 内容生成。
描述
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.1NSIS 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
installSelfUpdatecallsquitAndInstall(false, true). WithisSilent=falseandoneClick: falseinelectron-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,/currentuseror a custom install mode.
Found during the rc.1 e2e pass (#1431).
- 主要语言
- TypeScript
- 星标
- 3.7k
- 派生
- 231
- 平均合并
- 15 小时 10 分钟
- 30 天内合并 PR
- 324
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
getopenscreen/openscreen 的其他 Issue
-
Native review wanted: machine-translated recording bar tooltips (14 locales)可能重新可做 @auberginewly 于 21 天前认领,目前没有进行中的 PR。 未关闭good first issue help wanted
难度 2/5 1-3 小时 新手友好度 68/100
getopenscreen/openscreen#913 · 5 条评论 ·
维护者通常 1 天内回复
-
enhancement
难度 3/5 1-2 天 新手友好度 45/100
getopenscreen/openscreen#1436 ·
维护者通常 1 天内回复
-
enhancement
难度 4/5 3-5 天 新手友好度 45/100
getopenscreen/openscreen#1435 ·
维护者通常 1 天内回复
-
QA: e2e pass on v2.2.0-rc.1 (macOS, Windows)可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 2/5 1-3 小时 新手友好度 55/100
getopenscreen/openscreen#1431 · 4 条评论 ·
维护者通常 1 天内回复
-
bug
难度 3/5 半天 新手友好度 68/100
getopenscreen/openscreen#1428 · 1 条评论 ·
维护者通常 1 天内回复
查看 getopenscreen/openscreen 的全部 Issue
相似的 Issue
-
Replace discontinued crypto-js in the theme可能已有人在做 @aelmanaa 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 85/100
PaloAltoNetworks/docusaurus-openapi-docs#1689 ·
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 70/100
solana-foundation/solana-web3.js#4015 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 85/100
维护者通常 1 天内回复
-
documentation
难度 1/5 1-3 小时 新手友好度 90/100
ivopogace/opencode-courier#422 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 68/100
chapel-lang/chapel-vscode#158 ·
维护者通常 1 天内回复