Problem with Common Applicatin Data Permissions - 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!

rkulp
Posts: 48
Joined: Mon Feb 26, 2007 10:50 pm

Problem with Common Applicatin Data Permissions

I have files that I want to put into the Common Application Data folder. I have inserted them in the Files and Folders "Common Application Data" folder. Unfortunately, access was denied to that folder when the program tried to read the files. I went back to the permissions and tried to grant permissions to the generic username Everyone. The installation package failed with the error that Everyone was not a user. OK. I then tried [Username} and that failed in the same way indicating that my full name (rather than my username) was not a user. OK. I then used [%Username%] and the program installed and could read the files but could not write them back. I had granted full control in each of these cases.

What I want is for any user of the program to be able to read these files and create additional files which can be read/modified/written by any user. Normally, there would be only one user but there could be multiple users who need to read/write/modify these files. I do not have administer rights on the user computers. How do I do this?

Interestingly enough, this problem just came up. I had never had it before. My computer has a new Windows 7 install so that could be part or all of the problem. If that is the problem, I need suggestions on what to change.
rkulp
Posts: 48
Joined: Mon Feb 26, 2007 10:50 pm

Re: Problem with Common Applicatin Data Permissions

I could overcome the problem by setting the permission on the Program Data folder but that does not resolve the real problem -- a user who does not have read/write/modify permission on the folder will run into problems. A "trusted installer" may not have adequate permissions and would need an IT person with admin rights grant the permission. How does one grant the program permission regardless of the user?
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Problem with Common Applicatin Data Permissions

Hello,

All users have read/write/modify permissions on Common Application Data folder, this is its purpose. Moreover, on Vista or above any user can gain administrator privileges through elevation( UAC ).

It appears there could be something wrong with the machine you are installing on. Can you please try on other machines and see the outcome?

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
pearsonjohn7
Posts: 1
Joined: Wed Sep 21, 2011 10:31 am

Re: Problem with Common Applicatin Data Permissions

Hi

I have this problem also (have just e-mailed Bogdan about it).

it doesn't appear to be the case for two Win7 users here that they can edit an ini file installed as part of an AI package. One of the apps can CREATE and edit a file, but it seems once a file is part of the setup, it cannot be edited. We get "Access is denied".

help appreciated
thanks
John
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Problem with Common Applicatin Data Permissions

Hi John,

This could also happen if the application is using the INI file at the time you try to edit the file. Have you ensured this is not the case?

Advanced Installer sets no permissions over the file, unless you specify otherwise.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”