App install nightmare on Windows : Access denied / Deletefile failed code 5

1k Views Asked by At

I've been developing Win32 apps with Delphi for a long time, always installing them on %programfiles% folder. I use Inno Setup as my installation packer.

Since Windows 7 i'm having lot of trouble with customers logged with non-admin users. In such cases, when the user tries to install or update the app an error 'Access denied - Deletefile failed code 5' is returned.

Usually i tell the user to run the install app as administrator and then the install works.

The problem is this issue is becoming more and more common as it seems most Windows users nowadays do not log as admin and a lot of support is being demanded because this issue.

What is the best approach for it nowadays ?

Should i install my apps on %appdata% instead of %programfiles% ?

Thanks !

0

There are 0 best solutions below