Updater error with non-admin user - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

lcd877
Posts: 5
Joined: Thu Sep 22, 2011 2:17 pm

Updater error with non-admin user

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
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Updater error with non-admin user

Hi Alexander,
Is there a way to check which file is causing this problem?
A solution you can try is to use a per-machine location instead like Common Application Data folder.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”