Tables in EULA - Advanced Installer Community
dmrtvo
Posts: 1
Joined: Thu Mar 16, 2023 11:58 am

Tables in EULA

Hello

I have a problem with displaying tables in EULA.

This is how it looks in MS Word (file is .rtf)
Screenshot 2023-03-16 120401.png
Screenshot 2023-03-16 120401.png (23.79 KiB) Viewed 2201 times
And this is how it looks in output MSI
Screenshot 2023-03-16 120320.png
Screenshot 2023-03-16 120320.png (26.68 KiB) Viewed 2201 times
Apparently this is because table is wider than text field. I failed to find an option to add horizontal scrollbar or something else to this dialog, am I missing something?
Liviu
Posts: 1419
Joined: Tue Jul 13, 2021 11:29 am
Contact: Website

Re: Tables in EULA

Hello and welcome to our forums,

I'm afraid that the ScrollableText control is controlled by Windows Installer and it renders text differently than Word/Wordpad.

You can either try making your tables smaller or you can use our HtmlHost control. However, please note that the HtmlHost control requires the Enhanced User Interface, which is handled by our EXE Bootstrapper (it will change the package type to EXE).

For the HtmlHost control approach, you need to convert your .rtf file to .html file.

For example, the below html table:

Code: Select all

<!DOCTYPE html>
<html>
<head>
<style>
table {
  font-family: arial, sans-serif;
  border-collapse: collapse;
  width: 70%;
}

td, th {
  border: 1px solid #dddddd;
  text-align: left;
  padding: 8px;
}


</style>
</head>
<body>

<h2 align="center">HTML Table</h2>

<table align="center">
  <tr>
    <th>Priority</th>
    <th>Response Requirements</th>
    <th>Resolution Requirements</th>
  </tr>
  <tr>
    <td>Priority 1</td>
    <td>We will respond within eight (8)
business hours of an initial error
report.</td>
    <td>Final resolution must be provided
to Licensee within two (2) business
days of the initial error report
(considering the error cause IS
identified)</td>
  </tr>
  <tr>
    <td>Centro comercial Moctezuma</td>
    <td>Francisco Chang</td>
    <td>Mexico</td>
  </tr>
  <tr>
    <td>Ernst Handel</td>
    <td>Roland Mendel</td>
    <td>Austria</td>
  </tr>
  <tr>
    <td>Island Trading</td>
    <td>Helen Bennett</td>
    <td>UK</td>
  </tr>
  <tr>
    <td>Laughing Bacchus Winecellars</td>
    <td>Yoshi Tannamuri</td>
    <td>Canada</td>
  </tr>
  <tr>
    <td>Magazzini Alimentari Riuniti</td>
    <td>Giovanni Rovelli</td>
    <td>Italy</td>
  </tr>
</table>

</body>
</html>

will be displayed like this:
htmlhost.png
htmlhost.png (41.49 KiB) Viewed 2181 times
The table will be resized automatically.

You can either upload the .html file to your website and choose the URL source type for the control or you can use the File source type. To do this, you need to add your .html file as a temporary file on the Files and Folders page and then select it using the [...] button.
temporary.png
temporary.png (102.25 KiB) Viewed 2181 times
Attached you can find a sample project with the above implementation.

Hope this helps!

Best regards,
Liviu
Attachments
eula sample.zip
(5.88 KiB) Downloaded 134 times
________________________________________
Liviu Sandu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”