Thanks a lot for your reply.
Did you check out the PreBuildEvent and PostBuildEvent Setup Project
properties?
Well I have checked them and done some googling on them. But I found
(I may be wrong..correct me if so) that these will run the batch files
when the deployment project is built on the development machine. (Here
is a brief excerpt taken from msdn docs regarding PreBuildEvent
property - "Specifies a command line to be executed before the
deployment project is built.")
I wanted to run the batch files on the target machine on which
installation is done and those batch files should be run during the
time when installation is going on the target machine.