Hacktoberfest 2026: as issues que os mantenedores marcaram para outubro, abertas e boas para iniciantes. Ver issues do Hacktoberfest

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

Aberta
#1,437 0 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

@EtienneLescot já está trabalhando nisso.

Desde 30/10/2026.

  • #1438 de @EtienneLescot — aberto
  • #1439 de @EtienneLescot — aberto

Avaliação

Dificuldade
2/5
Tempo estimado
1-3 horas
Facilidade para iniciantes
30/100
Tipo de issue
Bug
Clareza
Claramente especificada
Status de atividade
Ativa
Stack de tecnologia
electron, typescript
Domínio
desktop

Direção de pesquisa

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.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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

Linguagem predominante
TypeScript
Estrelas
3.7k
Forks
231
Merge médio
15h 10min
PRs com merge (30d)
324

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de getopenscreen/openscreen

Todas as issues de getopenscreen/openscreen

Issues semelhantes

Mais issues de TypeScript

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.