[Bug]: Declining Windows update UAC leaves OpenScreen closed

Đã đóng
#1,461 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@EtienneLescot đang làm issue này rồi.

Từ ngày 1/11/2026.

  • #1462 của @EtienneLescot — đang mở
  • #1463 của @EtienneLescot — đang mở

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
15/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
electron, typescript
Lĩnh vực
desktop, release

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
TypeScript
Star
3.7k
Fork
231
Merge trung bình
16 giờ 31 phút
Pull request đã merge (30 ngày)
281

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của getopenscreen/openscreen

Tất cả issue của getopenscreen/openscreen

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.