[Bug]: Declining Windows update UAC leaves OpenScreen closed

Fermée
#1,461 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Les mainteneurs répondent en général sous 1 jour

@EtienneLescot y travaille déjà.

Depuis le 1/11/2026.

  • #1462 par @EtienneLescot — ouverte
  • #1463 par @EtienneLescot — ouverte

Évaluation

Difficulté
4/5
Temps estimé
3-5 jours
Accessibilité débutants
15/100
Type d'issue
Bug
Clarté
Plutôt claire
Activité
Active
Stack technique
electron, typescript
Domaine
desktop, release

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

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.

Langage dominant
TypeScript
Étoiles
3.7k
Forks
231
Merge moyen
16 h 31 min
PR mergées (30 j)
281

Préparer son environnement

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de getopenscreen/openscreen

Toutes les issues de getopenscreen/openscreen

Issues similaires

Plus d'issues TypeScript

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.