[Bug]: Windows update click opens the full NSIS wizard instead of a UAC prompt
維護者通常 1 天內回覆
已經有一個關聯 PR 被合併了。
- #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 內容生成。
描述
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 小時 55 分鐘
- 30 天內合併 PR
- 291
環境準備
- 沒有 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 於 24 天前認領,目前沒有進行中的 PR。 未關閉good first issue help wanted
難度 2/5 1-3 小時 新手友好度 68/100
getopenscreen/openscreen#913 · 5 則留言 ·
維護者通常 1 天內回覆
-
[Bug]: Declining Windows update UAC leaves OpenScreen closed可能已有人在做 @EtienneLescot 今天認領。 未關閉
難度 4/5 3-5 天 新手友好度 15/100
getopenscreen/openscreen#1461 ·
維護者通常 1 天內回覆
-
enhancement
難度 5/5 一週以上 新手友好度 18/100
getopenscreen/openscreen#1459 ·
維護者通常 1 天內回覆
-
enhancement
難度 4/5 3-5 天 新手友好度 18/100
getopenscreen/openscreen#1456 ·
維護者通常 1 天內回覆
-
enhancement
難度 4/5 3-5 天 新手友好度 15/100
getopenscreen/openscreen#1455 ·
維護者通常 1 天內回覆
查看 getopenscreen/openscreen 的全部 Issue
相似的 Issue
-
triage
難度 2/5 1-3 小時 新手友好度 82/100
維護者通常 1 天內回覆
-
🎙️ task - drop the raw `./node_modules/.bin/rhachet roles boot` line from bhuild's feedback template未關閉
難度 2/5 1-3 小時 新手友好度 62/100
ehmpathy/rhachet-roles-bhuild#639 ·
維護者通常 1 天內回覆
-
e2e-failure ready-to-code
難度 2/5 1-3 小時 新手友好度 70/100
redhat-developer/rhdh-plugin-export-overlays#4650 · 1 則留言 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 62/100
維護者通常 13 天內回覆
-
難度 2/5 1-3 小時 新手友好度 75/100
omdsh-dev/DSH-better-sidebar#1098 ·
維護者通常 2 天內回覆