The installer has encountered an unexpected error. The error code is 1]. Custom action '[2]' has caused an unhandled exception ...

The installer has encountered an unexpected error. The error code is [1]. Custom action '[2]' has caused an unhandled exception and has been stopped. This may be the result of an internal error in the custom action, such as an access violation.