File synchronization and attributes - Advanced Installer Community
arista2
Posts: 2
Joined: Mon Mar 11, 2013 12:08 pm

File synchronization and attributes

Hey mates and mattresses,

I just registered to get this one question I have straightened out. So far we love the product as it covers everything we ever wanted.

We are using file synchronization for a folder that we pull from a TFS repository that changes over time, so we have it use synchronization and we don't have to update it manually every time a change happens.
So far so good, except the output of the installer passes the attributes of the TFS (local workspace == read-only) to the installer.
Is there any way to have AI modify those attributes or would this only be possible through a custom action once everything is done? Best practice?

Thank yous.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: File synchronization and attributes

Hello and welcome to Advanced Installer forums,

Thank you for your interest in Advanced Installer.

In order to achieve what you want you can select all files from the related folder, choose "Properties..." context menu option and, then disable the "Read Only" attribute from "Edit Multiple Files" dialog.

Let us know if this helps, otherwise please give us more details about your scenario.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
arista2
Posts: 2
Joined: Mon Mar 11, 2013 12:08 pm

Re: File synchronization and attributes

Hi Daniel,

I selected the folder and searched for *.*. Then selected all result files and went to properties / Edit Multiple Files and removed the read-only attribute.

The problem I see with that solution to select all "current" files in that folder, is that the folder content changes over time after synchronization.
We would like to have 0-maintenance of that part of the installer if possible.
Is there no solution to this where I could simply tell the top level folder to remove all read-only attributes from it's children?

Thanks
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: File synchronization and attributes

Hello,

I'm afraid we don't have predefined support for this. You can try to develop your own custom action which will remove the read-only attribute for all files in the related folder. The custom action should be scheduled after "Install Execution Stage -> Add Resources" action group and should run as deferred with no impersonation.

Also, we've added an improvement to not import the files attributes from a synchronized folder on our TODO list and it will be available in a future version of Advanced Installer. Thank you for your suggestion.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: File synchronization and attributes

Hello,
Also, we've added an improvement to not import the files attributes from a synchronized folder on our TODO list and it will be available in a future version of Advanced Installer. Thank you for your suggestion.
This was added in version 10.2 of Advanced Installer released on May 27, 2013.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”