Please keep in mind that in order to stop the installation process your custom action should return a return value different from 0. Also, you should enable the "Synchronous execution, check return code" execution properties from "Custom Action Properties" right pane. Please take a look on "Custom ...