summaryrefslogtreecommitdiffstats
path: root/doc/scripting.qdoc
Commit message (Collapse)AuthorAgeFilesLines
* Doc: Fix wrong link in documentationKatja Marttila2024-01-181-1/+1
| | | | | | | Task-number: QTIFW-3248 Change-Id: I093097d899bb7784965ce34af9fa6de396186d78 Reviewed-by: Arttu Tarkiainen <arttu.tarkiainen@qt.io> Reviewed-by: Inkamari Harjula <inkamari.harjula@qt.io>
* Doc: Add information about postLoad usage in scriptsKatja Marttila2022-12-301-0/+24
| | | | | | | Task-number: QTIFW-2860 Change-Id: Icadb39c13279d3614179f8e16d33be696198a74c Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Arttu Tarkiainen <arttu.tarkiainen@qt.io>
* Add support for parallel extraction of component archivesArttu Tarkiainen2022-04-211-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Introduce ConcurrentOperationRunner class used for running installer operations concurrently in the global thread pool. Add execution groups for operations; Unpack operations are run concurrently for all components requesting installation, operations belonging to Install group are run sequentially for sorted components one at a time as before. From the default registered operations the Extract op is moved to Unpack group. Move the previously on-the-fly backup steps of Extract operation to the ExtractArchiveOperation::backup(), so that backups are done before any archives are extracted, and that we know if any of the archives requires administrator privileges to unpack. Reparent QInstaller::Error to QException to support throwing and catching exceptions across thread boundaries. Use RAII for the server-side objects of the classes supporting the remote client-server protocol of installer framework. The concurrent extraction revealed that it was still possible that the local socket was disconnected and thus the RemoteServer- Connection thread finished before receiving and processing the final "Destroy" command packet, leaking the dynamically allocated objects. Task-number: QTIFW-2566 Change-Id: Ib8c2928b9405b7b3465c731018df73acb51e949f Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Katja Marttila <katja.marttila@qt.io>
* Update license headerKatja Marttila2022-01-241-2/+2
| | | | | | | Use https instead of http in www.qt.io/licensing Change-Id: I0a2e97afcda03d50fd823be8e11426c2399a3b8f Reviewed-by: Arttu Tarkiainen <arttu.tarkiainen@qt.io>
* Add ability to query used language in scriptKatja Marttila2021-10-121-0/+3
| | | | | | Task-number: QTIFW-2208 Change-Id: I8c8e9bd798320ab6d4397ac411cfea75177d27f2 Reviewed-by: Arttu Tarkiainen <arttu.tarkiainen@qt.io>
* Doc: Remove obsolete \contentspage commandLeena Miettinen2021-02-041-1/+0
| | | | | Change-Id: Ief8fe530fcca22ea7dbe4baf66b2a2bc837ce1af Reviewed-by: Katja Marttila <katja.marttila@qt.io>
* Set "FrameworkVersion" in a place consistent with other variablesArttu Tarkiainen2021-01-211-0/+3
| | | | | | | | Also document the predefined variable. Change-Id: I733bd4dfd245d300994e85c9ebb4b34a7c51de45 Reviewed-by: Iikka Eklund <iikka.eklund@qt.io> Reviewed-by: Katja Marttila <katja.marttila@qt.io>
* Add option to define operations in component.xmlKatja Marttila2020-12-071-0/+2
| | | | | | | | | | | Operations can from now on be declared also in component.xml. The operations are performed, backuped and rollbacked the same way as they would be when defined from scripting api. Task-number: QTIFW-507 Change-Id: Ia509219b94737136c3de25db0cb0c72076b48380 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Arttu Tarkiainen <arttu.tarkiainen@qt.io>
* Fix license check failuresSimo Fält2020-02-281-3/+3
| | | | | Change-Id: I123b1c6a06717c37387a636aae8296e27c1df8c0 Reviewed-by: Katja Marttila <katja.marttila@qt.io>
* Merge remote-tracking branch 'origin/3.1' into masterKatja Marttila2019-08-231-1/+1
|\ | | | | | | Change-Id: I8b203e12283374aed707e0e89c2f73d44ff296cb
| * Update usage of Apple-related terminologyArttu Tarkiainen2019-08-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | Replace deprecated Q_OS_OSX macro used in several places with the newer Q_OS_MACOS. Old style reference of Apple's desktop operating system name as "OS X" in documentation and files are also replaced with "macOS" where applicable. Task-number: QTIFW-1406 Change-Id: I0561d5e0d964917ac4fca0702d58a06b85d30e57 Reviewed-by: Katja Marttila <katja.marttila@qt.io>
* | Change ApplicationsDir variable on macOS to return "/Applications"Arttu Tarkiainen2019-08-161-0/+6
|/ | | | | | | | | | | | | | | QStandardPaths::standardLocations(QStandardPaths::ApplicationsLocation) first element returns $HOME/Applications, as being user writable it has a higher priority. Change the variable to return system wide /Applications as it is a more expected default. Add the user-specific applications directory as its own variable, and make associated documentation changes. Task-number: QTIFW-1011 Change-Id: Ia81a1f5dafdea8665d5f9fc1df3799e59858e5aa Reviewed-by: Katja Marttila <katja.marttila@qt.io>
* Merge remote-tracking branch 'origin/2.0'Katja Marttila2017-01-301-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: Changelog dist/config/config.xml dist/packages/org.qtproject.ifw.binaries/meta/package.xml dist/packages/org.qtproject.ifw/meta/package.xml installerfw.pri src/libs/installer/lib7z_create.h src/libs/kdtools/kdgenericfactory.cpp src/libs/kdtools/kdgenericfactory.h src/libs/kdtools/kdupdaterapplication.cpp src/libs/kdtools/kdupdaterapplication.h src/libs/kdtools/kdupdaterupdatesourcesinfo.cpp src/libs/kdtools/kdupdaterupdatesourcesinfo.h src/libs/kdtools/localpackagehub.cpp src/libs/kdtools/localpackagehub.h src/libs/kdtools/updatefinder.cpp src/libs/kdtools/updatefinder.h tools/binarycreator/resources/mkdmg.sh Change-Id: Iab2513f549832d2e750e77131c673457ab265af4
| * License header update to GPL-EXCEPTKatja Marttila2017-01-261-1/+1
| | | | | | | | | | Change-Id: I6426c4e8f932cf26c6c638dec18d0c12e22972d1 Reviewed-by: Janne Anttila <janne.anttila@theqtcompany.com>
* | Add the Predefined Variables in Component Scripting.Takayuki ORITO2016-05-031-0/+64
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add variables - ApplicationsDirX86 - ApplicationsDirX64 Change that the application directory can be selected on Windows, don't depend on the architecture(32bit or 64bit) of QtIFW. For example: When on Windows(64bit version). - QtIFW(32bit version) - ApplicationsDir -> C:\Program Files (x86) - ApplicationsDirX86 -> C:\Program Files (x86) - ApplicationsDirX64 -> C:\Program Files - QtIFW(64bit version) - ApplicationsDir -> C:\Program Files - ApplicationsDirX86 -> C:\Program Files (x86) - ApplicationsDirX64 -> C:\Program Files Change-Id: Idbc41d6f1ba9d7b0b9a9ff5590d05077662345cb Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Niels Weber <niels.weber@qt.io> Reviewed-by: Katja Marttila <katja.marttila@theqtcompany.com>
* | Merge remote-tracking branch 'origin/2.0'Iikka Eklund2016-01-201-3/+3
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: installerfw.pri src/libs/kdtools/kdgenericfactory.cpp src/libs/kdtools/kdgenericfactory.h src/libs/kdtools/kdupdaterapplication.cpp src/libs/kdtools/kdupdaterapplication.h src/libs/kdtools/kdupdaterupdatesourcesinfo.cpp src/libs/kdtools/kdupdaterupdatesourcesinfo.h sync.profile Change-Id: Ifdc8b065f89b7e241bd3788ed79768e21888161f
| * Update license headersIikka Eklund2015-12-291-3/+3
| | | | | | | | | | | | | | | | | | Update existing license headers. LGPL -> LGPLv21. Update copyright year as well. Change-Id: Ie1d71f8c68186b8f625f409ddf94691f178093c9 Reviewed-by: Katja Marttila <katja.marttila@theqtcompany.com> Reviewed-by: Jani Heikkinen <jani.heikkinen@theqtcompany.com>
* | Missed to rename classes and to update docs and tests.Karsten Heimrich2015-09-071-2/+2
|/ | | | | Change-Id: I2d79ab4094cb9706287d44160543c19b35a66c95 Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
* Doc: Clarify use of addOperationKai Koehne2015-05-291-0/+4
| | | | | | | | Make it explicit that addOperation , addElevatedOperation should be usually called from within createOperations(). Change-Id: Id14339b1259716825a9443cc563449025674976f Reviewed-by: Leena Miettinen <riitta-leena.miettinen@theqtcompany.com>
* Update CopyrightKai Koehne2015-02-181-5/+5
| | | | | Change-Id: I8dde6629cfd461104364d5cdc255cb54b58283fa Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
* Doc: fix broken linksLeena Miettinen2015-01-211-14/+12
| | | | | | | | | | To get rid of some QDoc error messages. Also remove the \c command to enable automatic linking to scripting API and C++ classes. Change-Id: I317301bd0097059faf6e7696707fc1f0e3ed0beb Reviewed-by: Jarek Kobus <jaroslaw.kobus@theqtcompany.com>
* Mark "os" variable as deprecatedKai Koehne2015-01-201-1/+3
| | | | | | | | | | | Mark installer.variable("os") as deprecated, and replace it with systemInfo.productType in the examples. Change-Id: Ic86af21369cd066fc003b268f001101b642f6d2d Reviewed-by: Niels Weber <niels.weber@theqtcompany.com> Reviewed-by: Jarek Kobus <jaroslaw.kobus@theqtcompany.com> Reviewed-by: Leena Miettinen <riitta-leena.miettinen@theqtcompany.com> Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
* Update Controller documentation and dependent code.kh12014-11-121-1/+1
| | | | | Change-Id: I6f6fb88644722a6acf0d168cc481e854ff188b11 Reviewed-by: Niels Weber <niels.weber@digia.com>
* Doc: replace \a with \c in .qdoc filesLeena Miettinen2014-07-021-11/+11
| | | | | | | | | | The \a command should only be used in code documentation (in .cpp files), where QDoc uses it to check that all formal parameters are documented and emits warnings if they are not or if they are misspelled. Change-Id: I37710afcd860f9baa3042337aca98fac6701b997 Reviewed-by: Niels Weber <niels.weber@digia.com>
* Doc: update copyright year to 2014 in doc filesLeena Miettinen2014-07-011-1/+1
| | | | | Change-Id: I72e840dfb737f8e96edf09e2dce74b29c255c326 Reviewed-by: Jarek Kobus <jaroslaw.kobus@digia.com>
* Doc: fixed links to QMessageBox documentationLeena Miettinen2014-06-171-6/+7
| | | | | | | | | | | In Qt 5, you have to specify the index files for the Qt 5 modules that you want to link to for QDoc to find them. If you add the brackets in the end of the method name, QDoc creates the links automatically and you do not need the \l command. Change-Id: Ia3dd78bb17e9c176747d406216930295c9fa02a8 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@digia.com>
* Doc: fixed a broken tableLeena Miettinen2014-06-171-7/+14
| | | | | | | | | | Each row in a table must have the same amount of \li commands, or the table formatting breaks. Use line breaks and empty lines if you want to add several text paragraphs to a table cell. Change-Id: I7a19bc883c0de18c247ca6c550dd37dba64c89d5 Reviewed-by: Kai Koehne <kai.koehne@digia.com>
* Doc: replace "Max OS X" with "OS X"Leena Miettinen2014-06-171-1/+1
| | | | | | | | According to Apple naming conventions. Change-Id: I4e7e5334987543118ae18d8547f58d01260f2493 Reviewed-by: Jarek Kobus <jaroslaw.kobus@digia.com> Reviewed-by: Kai Koehne <kai.koehne@digia.com>
* Doc: replace \o with \liLeena Miettinen2014-06-171-55/+55
| | | | | | | | | The \o QDoc command has been deprecated in QDoc for Qt 5 and using it prints a QDoc warning. Change-Id: Ibf0be59f3953bd731c2133cee3ec399e51df84a5 Reviewed-by: Kai Koehne <kai.koehne@digia.com> Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com>
* Initialize {All}UserStartMenuDir and DesktopDir earlier.kh12014-04-241-2/+12
| | | | | | | | Task-number: QTIFW-346 Change-Id: I641d6c2eb6b74f674b61ccf335885d4577dfcfe4 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@digia.com> Reviewed-by: Kai Koehne <kai.koehne@digia.com>
* Make the installer binary paths available for scripts.kh12014-04-091-0/+6
| | | | | | | Task-number: QTIFW-424 Change-Id: I36e22323cac9991982f3f85481700c75371eab3a Reviewed-by: Niels Weber <niels.weber@digia.com>
* Document the existence of addElevatedOperation.Niels Weber2013-11-221-0/+2
| | | | | | | | Task-number: QTIFW-407 Change-Id: I885cc8432ceffae48e94f165f415baa0e54155c2 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@digia.com> Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com>
* Introduce ApplicationsDir variable.kh12013-11-061-1/+4
| | | | | | | Task-number: QTIFW-258 Change-Id: Ie08884c01c62e40104dce0dba8ef85c5194d7207 Reviewed-by: Tim Jenssen <tim.jenssen@digia.com>
* Documented two more predefined variables.Niels Weber2013-08-121-0/+6
| | | | | | | | | | Also allow uppercase variable names and document those. Also update the config.xml files in the examples to uppercase. Task-number: QTIFW-257 Change-Id: I446ed4e537cb7c15f49ba3071a9ab6591aab3329 Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com>
* Add documentation for JS APIKai Koehne2013-04-231-17/+14
| | | | | | Change-Id: Ifef70bf0ef12b90972186f64ff9b0ae602f14420 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@digia.com> Reviewed-by: Tim Jenssen <tim.jenssen@digia.com>
* Doc: add information about scripting and operationsLeena Miettinen2013-02-281-2/+3
| | | | | | | Change-Id: Ic605dad7c3cd4c29034afaab186c88d08d9c4ec1 Reviewed-by: Niels Weber <niels.weber@digia.com> Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com> Reviewed-by: Tim Jenssen <tim.jenssen@digia.com>
* Doc: Fix documentation on predefined variablesKai Koehne2013-02-281-3/+10
| | | | | | Change-Id: I805a07f007cddb9fe62db986968f9f79511ffe1f Reviewed-by: Tim Jenssen <tim.jenssen@digia.com> Reviewed-by: Leena Miettinen <riitta-leena.miettinen@digia.com>
* Change copyright headers from Nokia to DigiaSergio Ahumada2012-12-211-11/+17
| | | | | Change-Id: Id55a71a6ee24b234739b6066e11e9c1f2e389f73 Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com>
* Doc: restructure and add information.Leena Miettinen2012-02-151-74/+140
| | | | | | | | | | | Overview, getting started, use cases. Add screen shots. Edit all files. Change-Id: I0437e179a9ea0d59dd132f1560d7b6315ee67498 Reviewed-by: Niels Weber <niels.2.weber@nokia.com>
* added possible operations to an extra pageTim Jenssen2011-09-081-131/+1
| | | | | | | | | - maybe this way it is easier to add more operation documenation Change-Id: I2555f855a9519fd2c02ca014b195bca79345e138 Reviewed-on: http://codereview.qt-project.org/4420 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Tim Jenssen <tim.jenssen@nokia.com>
* added new registerqtv2operationTim Jenssen2011-05-061-0/+9
|
* Revert "added new registerqtv2operation"Tim Jenssen2011-05-061-9/+0
| | | | This reverts commit 10fe04128a5d848b22764989b4a0744d69efd903.
* added new registerqtv2operationTim Jenssen2011-05-061-0/+9
|
* init commitTim Jenssen2011-02-211-0/+305