Reputation: 105
I need to display different messages in the FatalError dialog depending on what caused the installation to fail. My first attempt was to make the FatalError description text point to a property, and then set this property's value when an error appeared. The problem is that this dialog runs in the InstallUISequence table and the problematic actions in the InstallExecuteSequence table, and apparently the values that are set during InstallExecuteSequence are not copied back to the UI, and thus I'm losing them when the dialog is created.
Any ideas on how to solve this? Thanks!
Upvotes: 2
Views: 1794
Reputation: 21416
You can use the custom action return values. For example, if a custom action returns 1602 User Exit dialog will be used instead of fatal error dialog.
Another approach is to invoke ErrorDlg with a custom message. This can be done MsiProcessMessage function.
Upvotes: 1