[Bug]: Declining Windows update UAC leaves OpenScreen closed

Offen
#1,461 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

@EtienneLescot arbeitet bereits daran.

Seit 01.11.2026.

  • #1462 von @EtienneLescot — offen
  • #1463 von @EtienneLescot — offen

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
15/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
electron, typescript
Bereich
desktop, release

Rechercherichtung

Start with installSelfUpdate(), which calls electron-updater's quitAndInstall(true, true), and read how BaseUpdater quits before the NSIS installer finishes UAC. Check open pull request #1463 first, since it already targets this path. Done means that declining UAC leaves the app running or restorable, and the downloaded update can be retried.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

Declining UAC during a silent per-machine Windows update leaves OpenScreen closed.

Reproduction

  • Windows 11 Home x64, build 26300; official NSIS v2.2.0-rc.3 in C:\Program Files\Openscreen.
  • HKLM install key found; HKCU key absent. The Microsoft Store copy is present but not running.
  • Real GitHub feed offers v2.2.0-rc.4; downloaded installer SHA-512 matches published latest.yml.
  • Click the blue update arrow, then choose No in UAC. The maintainer performed both clicks and explicitly confirmed the refusal.

Actual

Installer command: Openscreen.Setup.2.2.0-rc.4-x64.exe --updated /S --force-run.
The app exits before the elevation decision. After No, the installer exits without restoring the app: 58 process snapshots over 108.8 seconds showed no OpenScreen process. Installed version stays rc.3.

Expected

Declining elevation should leave or restore the current app and allow retrying the downloaded update.

Diagnosis

installSelfUpdate() calls electron-updater.quitAndInstall(true, true). BaseUpdater quits after starting NSIS, without waiting for UAC. In electron-builder's silent per-machine path, UAC result 1223 exits the installer without relaunching the old app.

Confirmed locally on 2026-11-01 after the earlier timeout observation on SARAE. Process timeline and checksums are preserved locally. Related: #1437, #1439. The accepted-update retry is being checked separately.

Vorherrschende Sprache
TypeScript
Sterne
3.7k
Forks
231
Ø Merge
15 Std. 55 Min.
Gemergte PRs (30 T.)
291

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus getopenscreen/openscreen

Alle Issues in getopenscreen/openscreen

Ähnliche Issues

Weitere Issues zu TypeScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.