Hello,
Those error messages are predefined messages offered by the Windows Installer technology.
Windows Installer Error Messages
For instance, the message you are getting is from:
Error 1722:
There is a problem with this Windows Installer package. A program run as part of the setup did not finish as expected. Contact your support personnel or package vendor. Action [2], location: [3], command: [4]
Unfortunately, I am afraid it is not possible to add a custom error message for your custom action, as this is all handled by Windows Installer.
It is, however, possible to modify that message. Please note, though, that the message should be a generic one since all the custom actions that will fail with the error 1722 will return that message.
To do so, you can go to
"Table Editor" page -->
"Error" table and modify the message for the
"Error 1722".
To achieve the above, an
Enterprise (or above) license type is required.
Hope this helps.
Best regards,
Catalin
FOLLOW US
Get the latest news in Application Packaging