[Bug]: Declining Windows update UAC leaves OpenScreen closed

Chiusa
#1,461 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@EtienneLescot ci sta già lavorando.

Dal 1/11/2026.

  • #1462 di @EtienneLescot — aperta
  • #1463 di @EtienneLescot — aperta

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
15/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
electron, typescript
Ambito
desktop, release

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
TypeScript
Stelle
3.7k
Fork
231
Merge medio
16h 31m
PR unite (30g)
281

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di getopenscreen/openscreen

Tutte le issue di getopenscreen/openscreen

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.