Thanks for the update Gabriel.
Instead of doing this I added a installed standard action to the install action and the problem got solved the (.bat file is executed only during the install process).
But I came across an other problem during the install process because of an error my bat file ...
FOLLOW US
Get the latest news in Application Packaging