#24985·qBittorrent

NSIS incorrectly handles silent upgrades if the app is opened

Author: Dum4GCreated Sep 30, 2026Updated Sep 30, 2026

qBittorrent & operating system versions

qBittorrent: 5.2.x including 5.2.4 Operating system: Windows 10 Pro x64 (22H2) 10.0.19045 Winget: 1.29.380

What is the problem?

Un attempt to upgrade qBitTorrent silently from over winget while it's opened causes the condition where an upgrade is considered as successfull while actual executable remains untouched

https://github.com/microsoft/winget-pkgs/issues/250182

Steps to reproduce

  1. Have qBitTorrent launched in the background
  2. Attempt to upgrade qbittorrent over winget or with the following parameters:
winget.exe install --id "qBittorrent.qBittorrent" --exact --source winget --accept-source-agreements --disable-interactivity --silent
  1. Await for "successfull" and immediate installation
  2. See the qBitTorrent still running the same version as before (it wasn't even closed during upgrade process)
  3. See your translations and other files updated
  4. See your current version being reported as latest in App Settings

Additional context

ImageImage

It was reported before https://github.com/qbittorrent/qBittorrent/issues/18115 and wasn't resolved by https://github.com/qbittorrent/qBittorrent/pull/20296. I would like to stress that silent installation shall check and close an active instance assuming that user is intentionally launching it. Looks like currently the consent part is not handled at all https://github.com/qbittorrent/qBittorrent/issues/18582

Log(s) & preferences file(s)

WinGet-2026-09-30-11-04-51.718.log WinGetCOM-2026-09-30-11-00-05.410.log

If you let me know where NSIS logs are I'll provide them as well