I developed an auto-updater for my application that gets a MD5 hash list for all files from the update server and downloads the new files in case of a mismatch. At the moment, this only happens for the main DLL file, that is loaded at runtime after (!) the updater has finished his work.
It works perfectly in Windows XP but a few users already complained that the updater gives them Error 5 Access Denied when trying to overwrite said DLL file. If they run it with administrator privileges, it works, but it's an annoyance for them to always agree on admin privileges when starting the program.
My question: why is the access to overwrite that DLL denied, is there a way to make it happen without the UAC prompt?
Alternatively: is there a way to make the application run as administrator permanently in a way that the user just has to agree to it once, and not every time it's run.
PS: I'm using Qt 4.7, especially the QFile::open method with QFile::WriteOnly | QFile::Truncate and call a QMessageBox if open fails with errorString() and some explanation.
Thanks!