Problem in static control's Text - 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!

vicky
Posts: 66
Joined: Thu Aug 21, 2008 10:52 am

Problem in static control's Text

Hi!

I've created an enterprise project for my MSI. I am changing welcome dialog's contents but unable to set a new line character ('\n') in static control because my text is very long.

Please help to add a new line character in static control's text? Thanks in advance.

Regards,
Zia
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Problem in static control's Text

Hi Zia,

Unfortunately the Windows Installer static text control doesn't support line breaks. The recommended method for displaying text with specified line breaks is to use multiple one-line text controls located below each other. The characters \n in the text field of the control are not considered a line break and they will be displayed like any other characters.

Therefore, a solution is to use a different static text control (added under the last one) every time you want to insert a line break.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”