JordyMeng2
Posts: 22
Joined: Tue Jul 06, 2021 3:41 pm

Synchronised folder does not update when file inside changes

Hello,

I have a synchronized folder which contains a number of files like CSS files. I used Jenkins to automatically build my projects and this has been working for years. But currently while building a new installer when I change the content of a CSS file on my source drive I can see it getting updated in the synchronized folder when I press Refresh but when I build the installer and install it on my test VM the new changes within the files are gone and the installer installs a old version of the file.

This is weird behavior because I would think that Synchronized folder would detect that a file within this folder has changed and include it in the build. When I look at the UI I can see the file size change but when I build the installer and execute it on a computer it still installs the previously edited file and the the new changes are gone. Any idea what is happening?

Is this some kind of Windows Installer cache who refuses to install the newly changed file and takes the older file from cache locally and installs it?

If you have some advise on this matter that would be great. Thank you.
JordyMeng2
Posts: 22
Joined: Tue Jul 06, 2021 3:41 pm

Re: Synchronised folder does not update when file inside changes

Small update. I discovered that even if I remove the theme.css files from the synced folder by using the exclude filter they are STILL being installed by the installer. Have you guys ever seen this kind of behaviour? Files which aren't shown within the UI are still installed on the operating system?
Liviu
Posts: 1419
Joined: Tue Jul 13, 2021 11:29 am
Contact: Website

Re: Synchronised folder does not update when file inside changes

Hello,

Normally, every time a project is open, built or you press the Refresh button in the Files and Folders page, the content of that folder is synchronized to the content of the source folder on disk.

Any modification made to the source folder on the disk will also be made to the synchronized folder in your project. For example, if you add some files in the source folder on the disk they will be added automatically to the synchronized folder in your project.

In order for us to further investigate this issue, can you please send us by email to support at advancedinstaller dot com, the following resources:

1. the .AIP (project file)

2. a download link for your setup package

3. an installation log

Also, let us know if this happens during a clean install or upgrade.

Best regards,
Liviu
________________________________________
Liviu Sandu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
JordyMeng2
Posts: 22
Joined: Tue Jul 06, 2021 3:41 pm

Re: Synchronised folder does not update when file inside changes

Hi Liviu,

I have managed to narrow down why the installer isn't installing the correct version of certain files. If I install another installer I made a few years ago, which has completely different GUID's and Product/Upgrade codes, and then install my current installer it installs older versions of some of the files which looks like they came from the older installer.

I reckon my new installer looks at the old installer and compares its files in some way and sees that it contains the same kind of file and copies the old file from the previous installed installer to the newly installed installer directory. Have you ever seen this kind of behaviour? I am willing to send you my installer script but I don't know if you find a lot if the cause is connected to my older installer I made. Do let me know if you reckognise this issue.

JordyMeng
JordyMeng2
Posts: 22
Joined: Tue Jul 06, 2021 3:41 pm

Re: Synchronised folder does not update when file inside changes

Hi Liviu,

After some debugging and using Process Monitor to see what the installer was really doing we found it it was a KeyPath in the Component table which had the exact same name as a component in our older installer. Because we enabled Advertising in our feature in the new installer the installer was checking the KeyPath and syncing the files if it found a component matching the KeyPath.

To be honest I never had to use Advertising within a feature and didn't really know what it exactly did but now I understand it takes the KeyPath and looks for any component installed which is the same as the one in the KeyPath. If that is true it synchronises these files instead of installing the most recent files.

Seems like disabled Advertising fixed everything. Thanks for helping and have a good day.

Jordy
Liviu
Posts: 1419
Joined: Tue Jul 13, 2021 11:29 am
Contact: Website

Re: Synchronised folder does not update when file inside changes

You're always welcome, Jordy!

Thank you for your follow up on this. Glad to hear everything is now working as expected.

Have a good day too!

Best regards,
Liviu
________________________________________
Liviu Sandu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”