Change the text in the fatal error dialog box - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

enigma
Posts: 89
Joined: Fri Jun 08, 2007 10:12 am

Change the text in the fatal error dialog box

Is there anyway to change the text inside the fatal error dialog box to something else? If an installation fails, there will always be a dialog box that says that your app cannot be installed, contact your software manufacturer and things like that. 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?[/img]
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

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.
Is there anyway to change the text inside the fatal error dialog box to something else?
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.

There is a similar discussion on the forum, please take a look:
http://www.advancedinstaller.com/forums ... php?t=3662
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?
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:

Code: Select all

MsgBox "Error"
For the custom action you can specify a condition in the "Expression" field in the "Execution Condition" section.

If you encounter any problems please let me know.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
enigma
Posts: 89
Joined: Fri Jun 08, 2007 10:12 am

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.
Is there anyway to change the text inside the fatal error dialog box to something else?
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.

There is a similar discussion on the forum, please take a look:
http://www.advancedinstaller.com/forums ... php?t=3662
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?
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:

Code: Select all

MsgBox "Error"
For the custom action you can specify a condition in the "Expression" field in the "Execution Condition" section.

If you encounter any problems please let me know.

Regards,
Cosmin
Cosmin,
OK, let me describe in some details what am I trying to do here:
  1. During the installation time, I will call upon a .Net library to check for certain things
  2. If any of the conditions is not met, a customized exception will be thrown.
  3. Currently these exceptions are not handled, so when they are thrown, an error dialog box will pop up. It is the dialog box that I have emailed you. What I wanted to do initially was that I wanted the Advanced Installer to capture those exceptions, or rather, to call a script that will handle those exceptions and output the relevant text messages to the dialog box
  4. Not sure whether the above is doable or not. From the links you gave, it seems that the dialog box which texts I wanted to modify belongs to the Windows Installer and the texts can't be changed on real-time.
  5. If it is not doable, then I will like the Advanced Installer, upon detecting the exceptions, handles these exceptions and calls up a custom dialog box that will display the exception messages.
  6. How to do it?
Thank you for your help and support.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

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
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
enigma
Posts: 89
Joined: Fri Jun 08, 2007 10:12 am

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
That's a good suggestion and I have implemented it.

Thank you for your support

Return to “Common Problems”