We currently launch the updater automatically when our application starts.
The following problem occurs on some PCs:
The updater checks for updates and determines that a new update is available.
Then an error message pops up: Access denied.
The updater exits with error code 5 (Unable to save file)
This only seems to happen for users which are not member of the Admin group. We have checked the file permissions in %appdata%/roaming/<company name>/<product name>/updates where the updater files are cached. But the user does have the rights to create and modify files in these directories.
It could be that this only happens on PCs where we have admin users and non-admin users using the same application. An admin user might have created some files when checking for updates which the non-admin user can not delete when checking for updates.
It would be better to eliminate the 'Access Denied' message and just silently pass the exit code of 5 to the calling application which could then elevate and reissue the same command - even better would be if the updater directly asked for elevation in such a case.
Is there a way to check which file is causing this problem?
Regards
Alexander
FOLLOW US
Get the latest news in Application Packaging