Why preprocessor behaves differently in #include directive then in [Files] section Inno Setup script
问题 Was trying to understand the difference between a syntax that would include another script file and a source file in Inno Setup script while using macros to search and find files. I have tried to use FindFolder function from Find a directory using wildcard in Inno Setup: #define FindFolder(Path) \ Local[0] = FindFirst(Path, faDirectory), \ Local[0] ? AddBackslash(ExtractFileDir(Path)) + FindGetFileName(Local[0]) : Path Like this: #include "{#FindFolder('..\..\..\packages\ScriptPreRequisites*'