WiX Preprocessor Extension allowing to check whether a file exist e.g. for inclusion into installer.
This extension solves issue #3335 / #1538
Tip
Rather than this WixFileExistExtension, you can in Wix version 5 use the Files element for built-in file harvesting. Other than that the canonical (annoying?) way is to run a file harvest using Heat to produce an include file with the files.
Builds using Visual Studio solution. Source code in C# and implements a preprocesor extension as desribed in:
In a WiX source file you can use:
<?if $(fs.FileExist(...) = "1" ?>
<?endif>
where ... is the path to the file to examine. May itself contain WiX variables.