Archive: Macro to miss sections if no Files exist


Macro to miss sections if no Files exist
Hi
I'm try to build a generic installer and as part of it I have a number of lines that Extract files such as:

File Common\*.*
File Test\*.*

Installer "a" may have files in folder "Test" but instaler "b" may not!

so when compiling the installer for setup "b" the install needs to discard the line:

File Test\*.*

I tried IfFileExist but this doesn't work at the time of building the setup So i assume it would be Macro function of some kind!?


Use the /nonfatal flag for File.


that did it thanks