PDA

View Full Version : How to search for a keyword in VBP log file


teognost
12-28-2006, 01:26 PM
I have some IShield actions recording their output in VBP project log.
Basically I need to search for keyword 'warning -5000' into VBP log file -if found then an email should be sent telling there were warnings during IShield compilation process.Any idea how can I do this?

kinook
12-29-2006, 07:59 AM
Add a Send Mail step after the InstallShield step with a conditional build rule of
[InStr(vbld_AllMacros()("LASTSTEP_OUTPUT").Value, "warning -5000") > 0]
is true

teognost
12-29-2006, 11:15 AM
Thanks a lot-this is the easiest way and it works perfectly!