ReynoldsL05
Posts: 19
Joined: Fri Oct 11, 2024 11:41 am

Refresh folder sync after pre builds events

I currently have an advanced installer project setup to build a visual studio project as a pre build event for building the installer

However, I have some synchronized folders, and have noticed that the folder sync occurs before the pre build event, meaning if files are added / removed, I assume they won't be reflected in the installer

Is there a way to delay the refresh until after the pre build events have finished?
(I have tried using /RefreshSync, however it requires paths that I am not sure how to set)
Catalin
Posts: 7492
Joined: Wed Jun 13, 2018 7:49 am

Re: Refresh folder sync after pre builds events

Hello,

Indeed, this is a corner case of the Synchronized folders support.

Unfortunately, I'm afraid there isn't really a workaround for this.

The only thing I can think of would be to leverage our PowerShell Automation support to build the project for you.

For instance, you can build the VS project and then have a script that takes the resources (even using synchronized folders), adds them to the project and then builds the project.

Hope this helps!

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”