On the summary page I added some html tags to make the display look better, but during the text mode install on Linux all the html tags are shown, which is not pretty. Is there an option to remove the html tags during text mode install?

I know I can create two pages one for GUI, one for text mode, but not ideal.

asked 11 Mar '13, 20:09

gt8967884's gravatar image

gt8967884
116747678
accept rate: 12%


Pages and actions that support HTML in Qt mode have separate tags that allow specifying HTML and text, just for this case.

Could you share a sample XML where you exhibit this issue? Are you specifying the HTML in plain text?

Also, you can simply set some variables to HTML tags or empty strings based on mode if you need to pass HTML in places where it is only applicable in certain modes. For example:

<setInstallerVariable> <name>html:/b</name> <value>&lt;/b&gt;</value> </setInstallerVariable> <if> <actionList> <setInstallerVariable> <name>html:b</name> <value>&lt;b&gt;</value> </setInstallerVariable> <setInstallerVariable> <name>html:/b</name> <value>&lt;/b&gt;</value> </setInstallerVariable> </actionList> <conditionRuleList> <compareText> <logic>equals</logic> <text>${installer_ui_detail}</text> <value>qt</value> </compareText> </conditionRuleList> <elseActionList> <setInstallerVariable> <name>html:b</name> <value></value> </setInstallerVariable> <setInstallerVariable> <name>html:/b</name> <value></value> </setInstallerVariable> </elseActionList> </if> <showText> <htmlText>Text in ${html:b}BOLD${html:/b}</htmlText> <text>Text in ${html:b}BOLD${html:/b}</text> <title>HTML test</title> </showText>

As variables can also be used in custom language files, this may be used to also unify HTML and plain text messages so the translations are easier to make.

link

answered 12 Mar '13, 04:48

wojciechka's gravatar image

wojciechka ♦♦
7.8k61122
accept rate: 26%

I'm using the labelParameter to create a summary page. Looks like the htmlText tag is only good for showText dialog

        <labelParameter>
          <name>summary</name>
          <title>Ready to Install</title>
          <description></description>
          <explanation>
&lt;b&gt;Summary:&lt;/b&gt;
&lt;blockquote&gt;
Installation directory: ${installdir}&lt;br/&gt;
Required disk space:  ${required_diskspace_mb} MB&lt;br/&gt;
Available disk space: ${free_diskspace} MB
&lt;/blockquote&gt;
&lt;p/&gt;
&lt;b&gt;${warning_label}&lt;/b&gt;
&lt;blockquote&gt;
${warning_space_in_path}
&lt;/blockquote&gt;
&lt;blockquote&gt;
${warning_non_admin_install}
&lt;/blockquote&gt;
          </explanation>
link

answered 12 Mar '13, 14:49

gt8967884's gravatar image

gt8967884
116747678
accept rate: 12%

As mentioned above, it is possible to use variables instead of raw HTML and initialize them to empty string of HTML tag appropriately. For example:

<explanation> ${html:b}Summary:${html:/b} ${html:blockquote} Installation directory: ${installdir}${html:br} Required disk space: ${required_diskspace_mb} MB${html:br} Available disk space: ${free_diskspace} MB ${html:/blockquote} ${html:br} ${html:b}${warning_label}${html:/b} ${html:blockquote} ${warning_space_in_path} ${html:/blockquote} ${html:blockquote} ${warning_non_admin_install} ${html:/blockquote} </explanation>

(12 Mar '13, 16:28) wojciechka ♦♦
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×21
×6
×2

Asked: 11 Mar '13, 20:09

Seen: 1,637 times

Last updated: 12 Mar '13, 16:28