javaquests
Posts: 13
Joined: Tue Dec 07, 2010 2:50 pm

Files not accessible, has read only permissions.

I have a Java swing desktop application and i need to create an installer for that. The folder has jar file along with some .txt, .properties files. When the jar file runs, it needs to update the property file, but it throws FileNotfoundException access denied. I could see that the txt, properties files created by the installer doesnt allow the user to edit. The files created by installer has got read only permission. So how do i remove the permissions for the files? It works fine when the folder is anywhere outside,not created by the installer.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Files not accessible, has read only permissions.

Hi,

By default installed files inherit their permissions from their parent folders. So most likely the account under which your application runs doesn't have full access to these folders.
Are you installing in Program Files? If you are, is your application running as an Administrator?

Please note that you can set permissions for non-Administrator users through Permissions tab in "Edit Folder" dialog.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
javaquests
Posts: 13
Joined: Tue Dec 07, 2010 2:50 pm

Re: Files not accessible, has read only permissions.

Thanks a lot, there was admin restriction on the program files which is why the files were read only. I tried installing the folder outside program files and now it is accessible. thank you

Return to “Feature Requests”