Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

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

オープン
#1,437 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@EtienneLescot がすでに取り組んでいます。

2026年10月30日 から。

  • #1438 @EtienneLescot による — オープン
  • #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分
マージ済み PR(30日)
324

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

getopenscreen/openscreen のほかの issue

getopenscreen/openscreen の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。