Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

QIFW: execute vendor setup



  • Hi,

    currently I am creating an installer with IFW. Since my qt application relies on 7zip I want to bundle 7zip inside the installer. My goal is to start the 7zip installer from inside the QIFW installer but I have some troubles to start the 7zip installer from the installscript.js. I am trying to use the execute operation like this:

    @
    function Component()
    {
    // run 7zip setup in passive (automatic) mode
    if (installer.value("os") === "win")
    {
    component.addOperation("Execute", "msiexec", "/i 7z920-x64.msi", "/passive" );
    }
    }
    @

    The created installer fails to execute the operation as specified above. I think one problem is that it cannot find 7z920-x64.msi at the moment it is placed directly under the package directory (not in data). Secondly I am not shure if I have to use one the three hook functions, their documentation is quite "short" ;-).

    May someone can provide me some help where to place the msi file and how to execute it from the script.

    Greetings DerHandwerk


Log in to reply