JPP
Posts: 18
Joined: Wed Oct 28, 2015 4:34 pm

Synchronized folders, components, and features, oh my!

Hello!

I am currently having some issues with synchronized folders and components/features. My installation contains a few different web sites. Each website has it's own feature and is contained in a different synchronized folder. Each synchronized folder also has at least 2 imported xml files (.config files). I've made sure that each of these imported xml files are in the proper feature (right click, move to feature). I've also made sure that each of these imported xml files point towards the right Component in the Install tab of the XML file editor. For some reason, whenever I synchronize the parent folder, the imported xml files now point to a different component than the one I had set. The end result is that if we decide not to install a certain feature, the imported xml files still get written to disk but everything else in the feature correctly does not get installed.

I cannot manually go and modify this as it is part of an automated build with a command file.

Thank you,
Jean-Philippe
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Synchronized folders, components, and features, oh my!

Hello Jean-Philippe,

I've tested this scenario, but I cannot replicate the issue. Can you please send us the .aip (project file) to support at advancedinstaller dot com so we can investigate its settings?

It will be very useful if you can try to isolate the behavior in a buildable sample (.aip + its referenced files) which we can build and test on our side.

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: Synchronized folders, components, and features, oh my!

Hello Jean-Philippe,

This may happen if the related XML files are assigned under a component which contains only synchronized resources. At sync time, if none of those synchronized resources exist on disk, then their component will be deleted from the project and thus the XML file will be automatically moved under another component. So, if there may be the case (even once) when the sync is done and all the resources of a synced component are missing from disk, then the related resource will be deleted from the project and the XML file added under the same component will be reassigned. This is the normal behavior.

To avoid such situations you should add some dummy static (non-synchronized) resources to your project (e.g. some registry value - one for each feature) and assign each of your XML file to the components created for those dummy registries.

Let us know if this helped.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
JPP
Posts: 18
Joined: Wed Oct 28, 2015 4:34 pm

Re: Synchronized folders, components, and features, oh my!

Thank you Daniel, I will give your suggestion a try!
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Synchronized folders, components, and features, oh my!

You're welcome.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
JPP
Posts: 18
Joined: Wed Oct 28, 2015 4:34 pm

Re: Synchronized folders, components, and features, oh my!

Thank you very much Daniel, that seems to have done the trick!
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Synchronized folders, components, and features, oh my!

You're always welcome Jean-Philippe.

I'm glad you got this working.

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

Return to “Common Problems”