qbittorrent / qBittorrent

qBittorrent BitTorrent client
https://www.qbittorrent.org
Other
27.97k stars 3.95k forks source link

Error opening C:\Program Files\qBittorrent\qbittorrent.exe #21235

Closed maregrin closed 2 months ago

maregrin commented 2 months ago

qBittorrent & operating system versions

qBittorrent 4.6.6 Windows 11 Pro 23H2 x64

What is the problem?

When I upgrade qBittorrent from 4,6,4 to 4.6.6, I get the following error: Error while opening file for write C:\Program Files\qBittorrent\qbittorrent.exe

Any hints?

Steps to reproduce

After closing down qBittorrent, I start qbittorrent_4.6.6_x64_setup.exe, and I get the error above.

Additional context

No response

Log(s) & preferences file(s)

No response

jwt158 commented 2 months ago

Same here on all my Windows PC's tried multi times on each. Fortunately it ad not yet removed the previous version, and I've stored that from the archive hub. Ok Got it working finally by going direct to the qbittorrent folder and running the uninstall directly from their. Unlike via Control Panel which refused permissions that worked in fully removing the previous version. Double checked no folder in Program Files there was no folder. Then Ran the new version from download and it installed without the above error. Looks like the new version fails to properly remove the existing program first and can't overwrite that file when you hit install thus creates the error. hopefully that helps others. A permission issue YES but should have been addressed by the new versions install routine. @luzpaz IT is most definitely a bug in the installer

stalkerok commented 2 months ago

@luzpaz it's not a bug, I'm leaning towards it being a permissions issue or qBittorrent is still running.

luzpaz commented 2 months ago

@jwt158 can you check the permissions on the directory you're installing to ?

luzpaz commented 2 months ago

@stalkerok is this related to #11594 you think ?

stalkerok commented 2 months ago

@stalkerok is this related to #11594 you think ?

I don't think it's related.

maregrin commented 2 months ago

@jwt158 can you check the permissions on the directory you're installing to ?

C:\Program Files\qBittorrent is write protected. After removing it, I execute qbittorrent_4.6.6_x64_setup.exe, and encounter the same error. Note that qbittorrent.exe is not write protected.

maregrin commented 2 months ago

@jwt158 can you check the permissions on the directory you're installing to ?

C:\Program Files\qBittorrent is write protected. After removing it, I execute qbittorrent_4.6.6_x64_setup.exe, and encounter the same error. Note that qbittorrent.exe is not write protected.

C:\Program Files\qBittorrent contained qbittorrent.exe only. Manual removal of C:\Program Files\qBittorrent followed by reboot and executions of qbittorrent_4.6.6_x64_setup.exe solved the problem.

luzpaz commented 2 months ago

Closing