waspy
Posts: 64
Joined: Fri Oct 03, 2008 10:58 am

Folder synchronization

Hi guys,

I've already seen some discussions around this subject on the forum, but still didn't find an answer. I hope you will be able to help...

I have a project with a folder that is synchronized with a folder on the file system. I have no clue which files will be included when the installer is build (that's actually the reason why we have sync option in the first place). My first question is why does Advanced Installer include all files (and generate components) it finds in the file system folder (on the machine where the installer is build) during the time when the AIP project is saved? Why does it care? This operation should take place only when the installer is build and the project file should contain only the reference to the synchronized folder.

Another question / problem:
Assume the following structure:
- Folder (synced)
-- Some unknown files (to be synced)
-- Folder (explicit with some settings (e.g. Security settings or "Copy files to parent folder", etc.))
--- File 1 (explicit)
--- FIle 2 (explicit)

When I save AIP project the synced folder doesn't contain any files on the development machine. When we build the installer (on the build server) this folder does contain some files. The problem is that during the build process, all settings of the explicit child folder are reset.

Kind regards,
Alexei
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Folder synchronization

Hello Alexei,
I have a project with a folder that is synchronized with a folder on the file system. I have no clue which files will be included when the installer is build (that's actually the reason why we have sync option in the first place). My first question is why does Advanced Installer include all files (and generate components) it finds in the file system folder (on the machine where the installer is build) during the time when the AIP project is saved? Why does it care? This operation should take place only when the installer is build and the project file should contain only the reference to the synchronized folder.
Please keep in mind that all resource files added in your project should be included in a component. So, when the synchronization is refreshed (every time a project is open, built or you press the [Refresh] button in the "Files and Folders" page) all resource files added in your synchronized folder will be automatically included in specific components. However, the synchronization isn't refreshed when the project is saved.

I've tested your scenario, but I cannot reproduce the behavior. Can you give us a detailed step by step test case scenario or attach a sample which reproduces the behavior?
Another question / problem:
Assume the following structure:
- Folder (synced)
-- Some unknown files (to be synced)
-- Folder (explicit with some settings (e.g. Security settings or "Copy files to parent folder", etc.))
--- File 1 (explicit)
--- FIle 2 (explicit)

When I save AIP project the synced folder doesn't contain any files on the development machine. When we build the installer (on the build server) this folder does contain some files. The problem is that during the build process, all settings of the explicit child folder are reset.
This may happen if the related explicit folder has the same name as one of the subfolders from your source folder on disk. In this case the explicit folder will be deleted and will be replaced with its corresponding folder from disk. So, you can try to use a different name for your explicit folder.

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

Return to “Common Problems”