njshaw2
Posts: 26
Joined: Fri Apr 19, 2013 10:36 am

Line feeds in Error Message box?

I noticed I can have line feeds ('\n') in the Message Box custom actions. I don't seem to be able to have them in the Error Message custom action though (they just appear as literal '\n' text in the messagebox).

Is there a way to get line feeds in the error message boxes?
Eusebiu
Posts: 4959
Joined: Wed Nov 14, 2012 2:04 pm

Re: Line feeds in Error Message box?

Hi,

The "Display message box" is an Advanced Installer custom action, while "Display error message" is a Windows Installer custom action and it has this limitation.

As a workaround, you can create a new property in the Install Parameters page (i.e. PROP) and create an "Execute inline script code" custom action above your "Display error message" custom action with the following code:

Code: Select all

Session.Property("PROP") = vbLf
Then the message of your "Display error message" custom action can be written like this: First line[PORP]Second line

Let us know if this helped.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”