Hello and welcome to the Advanced Installer Forums,
If you want to stop the installation from within your DLL function called through our "
Call a function from a standard dll" predefined custom action, you can set a public property from the return value of your function. Once the property is set you can use it to condition an
Error Message custom action.
This way and error message will pop up and the installation will rollback. You should place the Error Message custom action right after the Call a function from a standard dll predefined custom action in the install sequence from the Custom Actions page.
The "Call a function from a standard dll" predefined custom action has a success return code if the function from the DLL was successfully called and an error return code in any other situation. If the called function throws an exception, Windows Installer catches it and does a rollback to the installation( error return code behavior ).
Regards,
Mihai
FOLLOW US
Get the latest news in Application Packaging