Timmmm
Timmmm

Reputation: 96814

Different TargetDir for each package with Qt Installer Framework

Is it possible with the Qt Installer Framework to create an installer with multiple packages, each of which has a different TargetDir (i.e. destination)?

For example, I want an installer that installs an SDK to /Library/Frameworks and a demo app to /Applications? Only the /Applications path needs to be user-editable.

Upvotes: 1

Views: 686

Answers (1)

Timmmm
Timmmm

Reputation: 96814

Turns out there is an example for exactly this case:

http://doc.qt.io/qtinstallerframework/qt-installer-framework-modifyextract-example.html

Basically you create a script for the component that overrides the un-archiving operation:

Component.prototype.createOperationsForArchive = function(archive)
{
    component.addOperation("Extract", archive, "/Library/Frameworks");
}

Upvotes: 2

Related Questions