sabasol
Posts: 1
Joined: Fri Sep 20, 2024 2:54 am

Is it possible to setup a project to avoid build failure if a specified file is absent?

The advanced installation may include files or directories into Resources/Files and directories. During project construction, the build process verifies the existence of all files and terminates if any files are absent.
Is it possible to setup a project to avoid build failure if a specified file is absent?
If the file is there, the installer must include it into the build and use it accordingly. If a file is absent, the installer should disregard it and omit the file installation process. Is it feasible?

I have attempted to use "Conditional Files" by including an installation condition based on the installer property for the file. Regrettably, after configuring a particular build and setting the property to exclude the file, the installer build continues to fail due to the absence of the file, which should not be used in the installation process.
Catalin
Posts: 7664
Joined: Wed Jun 13, 2018 7:49 am

Re: Is it possible to setup a project to avoid build failure if a specified file is absent?

Hello and welcome to our forums,

One way of achieving that would be to use the synchronized folders support.

This way, only the files from your folder will be added to your project and, if a file is missing, it will be omitted.

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

Return to “Common Problems”