[Bug]: Declining Windows update UAC leaves OpenScreen closed

Aberta
#1,461 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 1/11/2026.

  • #1462 de @EtienneLescot — aberto
  • #1463 de @EtienneLescot — aberto

Avaliação

Dificuldade
4/5
Tempo estimado
3-5 dias
Facilidade para iniciantes
15/100
Tipo de issue
Bug
Clareza
Razoavelmente clara
Status de atividade
Ativa
Stack de tecnologia
electron, typescript
Domínio
desktop, release

Direção de pesquisa

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.

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

Descrição

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.

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

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.