Hi,
I have a installation where I am executing a batch file through using custom action and then throwing following exception if return code from this batch file is non-zero
throw new ProductException(ProductException.PRODUCT_ACTION_INSTALL_FAILED, str); where str is a string containing details about command and what error it is.

But the installation keeps on continue and doesn't stop at this.
What should i do to fail the install and then exit gracefully with message.
My structure of the xml file is as below

<product id="theProduct">
<feature id="bean113">
<component id="bean963">
<feature id="Default Feature">
components
<feature>