PDA

View Full Version : Macro to miss sections if no Files exist


I_Need_help2
28th March 2009, 22:10
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!?

kichik
28th March 2009, 22:51
Use the /nonfatal flag for File.

I_Need_help2
29th March 2009, 10:50
that did it thanks