special character support for message box title

Request new features that you would like to see in the next version of Advanced Installer.
Post Reply
Balaji
Posts: 30
Joined: Wed May 06, 2020 9:15 am

special character support for message box title

Post by Balaji » Mon May 18, 2020 1:00 pm

Hi,
I have created one property containing special character under "Install parameters".
Name of property : "ProductDisplayNameShort"
Value of a property : "Installer2020|product for testing"

I have used "|" separator (i.e. special character).

Now, I want to use this property as title for message box.
Please follow below image :
MessageBoxTitle.jpg
MessageBoxTitle.jpg (23.73 KiB) Viewed 2900 times

I want this title for my message box. But, when I execute my MSI, on message box it is only "Installer2020" and it skips next part from "|".
MessageBox.jpg
MessageBox.jpg (16.6 KiB) Viewed 2900 times


Can you help me to resolve this problem?

Thanks,
Balaji

Catalin
Posts: 3118
Joined: Wed Jun 13, 2018 7:49 am

Re: special character support for message box title

Post by Catalin » Wed May 20, 2020 10:47 am

Hello Balaji,

I have tested this and I could indeed reproduce it.

This seems to be either an issue or a limitation to our support for the MessageBox custom action.

I have forwarded this to our development team for a fix/improvement in the future.

Until then, as a workaround, you can try to generate the message box through another custom action. For instance, you can use the "Execute inline script code" to create the message box using VBS, as it follows:

Code: Select all

prop = Session.Property("MyProp")
msgbox "Hello",0,prop
where "MyProp" is the property that you defined in the "Install Parameters" page.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Catalin
Posts: 3118
Joined: Wed Jun 13, 2018 7:49 am

Re: special character support for message box title

Post by Catalin » Thu Jun 25, 2020 3:29 pm

Hello,

Upon further investigation, it looks like the pipe character ("|") is used by the custom action itself to parse the input data.

In order for custom action to display the whole title, the pipe character should be escaped. To do so, please create your property as it follows:

Property: MyProperty

Value: My\|Value


As you can see, we have escaped the pipe character with the "\" character. This way, the title should no longer be split up.

Hope this helps.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Post Reply