Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

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

Aperta
#1,437 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@EtienneLescot ci sta già lavorando.

Dal 30/10/2026.

  • #1438 di @EtienneLescot — aperta
  • #1439 di @EtienneLescot — aperta

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
30/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
electron, typescript
Ambito
desktop

Direzione di ricerca

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.

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

Descrizione

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).

Lingua principale
TypeScript
Stelle
3.7k
Fork
231
Merge medio
15h 10m
PR unite (30g)
324

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.