Folder 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!

arturosmx
Posts: 4
Joined: Wed Jul 22, 2009 3:59 am

Folder permissions.

Hello.

I'm evaluating the product. I want to deploy my application using an Active Directory GPO (Group Policy Object). In fact, I can deploy it to the workstations using my GPO. The problem is that the installed application creates some files for "calculations", these files are created inside 2 folders that the msi package creates as part of my installation. If I don´t assign any permissions (with Adv. Inst.) to the folders or files of my application, it is installed correctly but when the program runs and tries to create the work files, it sends an I/O error (it can´t create the files). If I assign permissions using the tab "permissions" of Advanced Installer to the folders, then the folders are not created but the application appears in the list "Add/remove programs" of the control panel.

In the first case (when I don´t assign permissions and can see the folders) If I try to create a text file "manually" with windows explorer inside the application's folders, I can´t. However, I did a test and my program and also windows explorer can create files and folders outside the installed application tree (x:\Program Files\My Company\My Application) but not inside.

On the other hand I'm also a begginer with active directory and I don´t know if this I´m trying to do is the "correct" way to do it.

Regards.
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Folder permissions.

Hi,
when the program runs and tries to create the work files, it sends an I/O error (it can´t create the files)
The recommended way would be for your application to create these folders in the user's temporary folders, not in the same place with the installation package.
If I assign permissions using the tab "permissions" of Advanced Installer to the folders, then the folders are not created but the application appears in the list "Add/remove programs" of the control panel.
I'm not sure why this happens, could please send us your .aip file to support at advancedinstaller dot com so we can investigate it.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
arturosmx
Posts: 4
Joined: Wed Jul 22, 2009 3:59 am

Re: Folder permissions.

The recommended way would be for your application to create these folders in the user's temporary folders, not in the same place with the installation package.
It is just that the application is per machine not per user, the data has to survive from user to user in case more than one uses the machine. What folder should be used in those cases is there a common one?
I'm not sure why this happens, could please send us your .aip file to support at advancedinstaller dot com so we can investigate it.
I´m sorry, this resulted from not uninstalling the software using the GPO. It was removed using an admin account directly on the client machine, so when the user logs-in the entry is still on the list of control panel. If it is removed with the GPO the entry is deleted correctly.

Regards.
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Folder permissions.

Hi,
It is just that the application is per machine not per user, the data has to survive from user to user in case more than one uses the machine. What folder should be used in those cases is there a common one?
The folder that can be accessed by all users is the Common Application Data folder. This folder resolves to :

Code: Select all

C:\Documents and Settings\All Users\Application Data     → on Windows XP
C:\ProgramData                                           → on Windows Vista
Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
arturosmx
Posts: 4
Joined: Wed Jul 22, 2009 3:59 am

Re: Folder permissions.

Hello.
The folder that can be accessed by all users is the Common Application Data folder...
Well, I modified the application to use that folder, now it's working fine. However, as a comment, if I include some files under this common folder I can´t delete them, my solution was not to include anything under this folder and let the program create everything (folders and files).

Kind regards.

Return to “Common Problems”