qtqt5qt-installer

Qt Installer Framework controller function not getting called


I would like to modify the flow of my QtIFW(3.0) installer using a controller function, it seems trivial to do, however I can't seem to find a good example of where the function / script should reside and how to make the installer aware of it.

Things I have tried without success:

My controller script (controller.qs) is just boilerplate at the moment:

function Controller() {
    console.log("Controller()");
}

During installer runtime the installer executes as expected except the controller function is never called..


Solution

  • According to Qt IFW reference, you just have to add your controller script in the configuration XML:

    <?xml version="1.0"?>
    <Installer>
        <!-- Your config -->
        <ControlScript>controller.qs</ControlScript>
    </Installer>
    

    Not that there is only 1 control script per installer, not per component!