qBittorrent icon indicating copy to clipboard operation
qBittorrent copied to clipboard

"Error opening file for writing: C:\Program Files\qBittorrent\qbittorrent.exe" when attempting update, then fresh download

Open AmExpat2 opened this issue 2 years ago • 3 comments

qBittorrent & operating system versions

Download / install issue. I am attempting to download various 64-bit versions 64-bit operating system, x64-based processor. Window 11 Pro v.21H2 / Windows Feature Experience Pack 1000.22000.856.0

What is the problem?

"Error opening file for writing: C:\Program Files\qBittorrent\qbittorrent.exe" when attempting update, then fresh download. My version of qBittorrent was corrupted (I am presuming by this partial install). I have deleted my current qBittorrent installation and tried a fresh download, but with the same result. Used both Firefox (including once in privacy mode) and Chrome. I tried the different 64 bit downloads. I am running Windows 11 Pro. 16 GB RAM, Intest Core i7 @ 2.60Hz, 64-bit operating system, x64-based processor

Steps to reproduce

  1. go through download process - accepting all options as defaults.
  2. Download and install starts, but almost immediately stops and the above error message appears. Retrying immediately generates the same error message.

Additional context

No response

Log(s) & preferences file(s)

None.

AmExpat2 avatar Sep 11 '22 03:09 AmExpat2

Make sure that qBt installer gets adequate permissions to install inside C:\Program Files\ directory. Also make sure that some antivirus is not blocking the write request.

ghost avatar Sep 12 '22 05:09 ghost

Close your qBittorrent from taskbar if you haven't and try again.

Typ33 avatar Sep 13 '22 03:09 Typ33

thanks.

On Mon, Sep 12, 2022 at 1:01 PM summer @.***> wrote:

Make sure that qBt installer gets adequate permissions to install inside C:\Program Files\ directory. Also make sure that some antivirus is not blocking the write request.

— Reply to this email directly, view it on GitHub https://github.com/qbittorrent/qBittorrent/issues/17698#issuecomment-1243223323, or unsubscribe https://github.com/notifications/unsubscribe-auth/A3AGLDDFCRLAYAFL6SDQVN3V522LLANCNFSM6AAAAAAQJSXX74 . You are receiving this because you authored the thread.Message ID: @.***>

AmExpat2 avatar Sep 13 '22 05:09 AmExpat2

It seems to me the installer should close any running instances as many other installers do.

CamdenQ avatar Oct 10 '23 15:10 CamdenQ

It seems to me the installer should close any running instances as many other installers do.

Our installer prompts the user if there are any running instances: Screenshot 2023-09-05 151235

xavier2k6 avatar Oct 31 '23 10:10 xavier2k6

It seems to me the installer should close any running instances as many other installers do.

Our installer prompts the user if there are any running instances: Screenshot 2023-09-05 151235

Clearly not always, as one of the solutions to this issue is to close qBt from the taskbar, which is why I left my comment. I was getting this same error, no corrupted install or anything, and that solution is what fixed it for me.

CamdenQ avatar Oct 31 '23 15:10 CamdenQ

What creates this edgecase then ?

luzpaz avatar Nov 01 '23 15:11 luzpaz

No idea. I just know that qBt was working great, I went to update it but forgot to close it all the way out first, and got that error.

I came here looking for a fix, and closing it from the task tray was the solution that worked.

CamdenQ avatar Nov 02 '23 15:11 CamdenQ

@CamdenQ Did you download installer from official link or use anything like winget/winget-cli?

xavier2k6 avatar Nov 02 '23 15:11 xavier2k6

I followed the prompt within the application itself and downloaded the latest stable version from that link.

CamdenQ avatar Nov 02 '23 16:11 CamdenQ

same problem here, cannot update to 4.6.5. killed qbitorrent with taskmgr, still wouldn't work. then downloaded the installer directly and tried again, same error

clintonruairi avatar May 28 '24 23:05 clintonruairi

Mine has started working so long as I close it out entirely before trying to run the update. Not sure what changed, because that wasn’t working when I commented before.

CamdenQ avatar May 29 '24 00:05 CamdenQ