qtqt-installer

Qt Installer framework component installation location


I've created an installer package based on the Qt installer framework with multiple components. I needed to install each component in the appropriate directory.

Is it possible to specify the target directory for the individual component? I am referring to something like this:

var appData = installer.environmentVariable("AppData");
     if (appData != "")
         component.setValue("TargetDir", appData+ "/MyComponent");

Thank you in advance.


Solution

  • You need this based on the documentation:

    Extract "Extract" archive target directory Extracts archive to target directory.