Tutorials and Examples

Tutorials

This tutorial describes how to create a simple installer for a small project:

Examples

These examples illustrate how to use component scripts for customizing installers.

Change Installer UI Example

Using a component script to change the installer UI.

Component Alias Example

Using installer's aliases.xml file to define component aliases and their relations to other aliases and components.

Component Error Example

Using a component script to stop the installation if the components cannot be installed.

Dependency Solving Example

Using components' package.xml files to define dependencies and automatic dependencies between components.

Dynamic Page Installer Example

Using a component script and dynamic pages to build an installer.

Hide Checkbox Example

Using components' package.xml files to hide checkboxes for items.

Modify Extract Installer Example

Using the extract archive hook in a component script to modify the target path.

Online Installer Example

Using the repogen tool and the configuration file to set up an online installer.

Open ReadMe Example

Using a component script to add a check box for opening the readme file to the final installer page.

Product Image Example

Using components' config.xml files to show a product image while downloading and installing components.

Quit Installer Example

Using a component script to quit an installer.

Register File Extension Example

Using a component script to register a filename extension on Windows.

Repository Categories Example

Using the RepositoryCategories element to set up an online installer where repositories are grouped.

Start Menu Shortcut Example

Using a component script to add an entry to the Windows Start menu.

Stylesheet Example

Using a stylesheet to customize a UI.

System Information Example

Using the systemInfo API in a component script to check operating system version and bitness.

Translation Example

Using translations to localize installer pages and licenses.

Tree Name Example

Using components' package.xml files to define custom locations in the component tree.

© 2021 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. The Qt Company, Qt and their respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.