Can permission of file override from folder? - Advanced Installer Community
MagicLiu
Posts: 16
Joined: Thu Jun 18, 2009 1:10 pm

Can permission of file override from folder?

Now I give an folder a full control permission(everyone) and it sync with an local folder in Advanced installer.
Can the files in that folder can get same permission as the folder? By the way I also don't register them into windows installer.

I tested on two vista computer, one's os is vista 64, anothers os is Vista 32.
The files override full control privilege on Vista 64 but on Vista 32.

I'm confused with that, the OS issue? or AI issue?

Please give me sugesstion for that, thanks very much!
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Can permission of file override from folder?

Hi,
Can the files in that folder can get same permission as the folder?
No, the files from the synchronized folder will simply be included into the installation package. They will not inherit any permission settings.
By the way I also don't register them into windows installer.
This option does not affect the permission settings that are applied to the installation files. If this option is not checked you cannot remove, repair,
or reinstall the application by using the Control Panel, the Windows Installer command-line options or the Windows Installer application programming interface (API).

Please use this article when setting the permissions and make sure that you do not check and other options besides the ones presented into the article.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
MagicLiu
Posts: 16
Joined: Thu Jun 18, 2009 1:10 pm

Re: Can permission of file override from folder?

No, the files from the synchronized folder will simply be included into the installation package. They will not inherit any permission settings.

Do we have a way to make the files and folders in the synchronized folder to have the full-control permissions?

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

Re: Can permission of file override from folder?

Hi,
Do we have a way to make the files and folders in the synchronized folder to have the full-control permissions?
You can simply select all the files and right click on them, select from the context menu "Properties" option.
In the "Edit Multiple Files" dialog you will see the "Permissions" tab that allows you to set the desired permission, according to our documentation of course.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
MagicLiu
Posts: 16
Joined: Thu Jun 18, 2009 1:10 pm

Re: Can permission of file override from folder?

Your solution is OK.
but, that means I have to update the files/folders permission when there is any new file or folder added.
Now I'm using command line to build our product and build our product everyday. Some time, I don't know there is a new file or folder.

Why do we let the files/folders to inherit their parents permission?
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Can permission of file override from folder?

Hi,
Why do we let the files/folders to inherit their parents permission?
I'm afraid I don't understand this question, as I said above the files/folders will not inherit any permission settings
from their parents.

Maybe you wanted to ask "How do we let the files/folders to inherit their parents permission?" or
"Why don't we let the files/folders to inherit their parents permission?" ?

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
MagicLiu
Posts: 16
Joined: Thu Jun 18, 2009 1:10 pm

Re: Can permission of file override from folder?

Yes, I want to ask "How do we let the files/folders to inherit their parents permission"?
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Can permission of file override from folder?

Hi,

As I said in one of my above posts you cannot have the files
or folders to inherit the permissions of their parents.

You will have to set them manually from the Files and Folders page or using custom actions if the files are not a part of the package.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
adrian
Posts: 1
Joined: Fri Jun 06, 2014 5:41 pm

Re: Can permission of file override from folder?

You will have to set them manually from the Files and Folders page or using custom actions if the files are not a part of the package.
Then what is the point of syncronized folders at all? It automatically adds the files but you still have to manually change the permissions of the new files? Meaning you have to know when files are added and which files are new and go through the entire file tree, by hand, every time. This makes syncronized folders completely pointless, unless there is some workaround for this issue.
Your solution is OK.
but, that means I have to update the files/folders permission when there is any new file or folder added.
Now I'm using command line to build our product and build our product everyday. Some time, I don't know there is a new file or folder.
I am in the same situation, and your solution is not acceptable in this scenario.

Return to “Common Problems”