If the fatal error dialog is displayed by Advanced Installer (for example "ErrorDlg" and "FatalError" dialogs) then you can modify the text by using the dialog editor. If this is not the case and the dialog is displayed by Windows Installer the you can change that text using Orca.Is there anyway to change the text inside the fatal error dialog box to something else?
This can be done by using multiple error dialogs, each launched when a condition that you specify is not met. For this you can use a "Script Inline" custom action in the "Custom Actions" page with the following Script Text:Now I want to customize this dialog box so that it displays a more relevant error message according to a set of logics I defined. This means that the error message text will change depending on situation. Is there anyway to do this?
Code: Select all
MsgBox "Error"Cosmin,cosmin wrote:Hi,
Can you please provide more details about which dialog are you referring to? Is it shown by a custom action?
Most of the dialogs used by Advanced Installer can be customized using the Dialog Editor in the "Dialogs" page. You can read more about this feature here:
http://www.advancedinstaller.com/user-g ... ditor.html
Please note that the Dialog Editor feature is available only for the Enterprise version of Advanced Installer.
If the fatal error dialog is displayed by Advanced Installer (for example "ErrorDlg" and "FatalError" dialogs) then you can modify the text by using the dialog editor. If this is not the case and the dialog is displayed by Windows Installer the you can change that text using Orca.Is there anyway to change the text inside the fatal error dialog box to something else?
There is a similar discussion on the forum, please take a look:
http://www.advancedinstaller.com/forums ... php?t=3662
This can be done by using multiple error dialogs, each launched when a condition that you specify is not met. For this you can use a "Script Inline" custom action in the "Custom Actions" page with the following Script Text:Now I want to customize this dialog box so that it displays a more relevant error message according to a set of logics I defined. This means that the error message text will change depending on situation. Is there anyway to do this?For the custom action you can specify a condition in the "Expression" field in the "Execution Condition" section.Code: Select all
MsgBox "Error"
If you encounter any problems please let me know.
Regards,
Cosmin
That's a good suggestion and I have implemented it.cosmin wrote:Hi,
I'm afraid that this can be controlled only by your custom action.
In order to accomplish what you need you can modify your custom action to handle the exceptions and show a custom error message whenever an exception is thrown.
Regards,
Cosmin
FOLLOW US
Get the latest news in Application Packaging