installscript.qs Example File | Qt Installer Framework Documentation 4.11.0

- Qt Installer Framework Documentation
- Change Installer UI Example
- installscript.qs Example File
- Qt Installer Framework 4.11.0

# installscript.qs Example File

changeuserinterface/packages/org.qtproject.ifw.example.changeuserinterface/meta/installscript.qs

     /* Copyright (C) 2026 The Qt Company Ltd.
      *
      * SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
     */

     function Component()
     {
         if (!installer.isCommandLineInstance())
             gui.pageWidgetByObjectName("LicenseAgreementPage").entered.connect(changeLicenseLabels);
     }

     changeLicenseLabels = function()
     {
         page = gui.pageWidgetByObjectName("LicenseAgreementPage");
         page.AcceptLicenseLabel.setText("Yes I do!");
     }