diff options
author | Takayuki ORITO <iori.ayane@gmail.com> | 2015-08-06 21:24:49 +0900 |
---|---|---|
committer | Katja Marttila <katja.marttila@theqtcompany.com> | 2016-05-03 07:57:25 +0000 |
commit | b6967847607f3b80f72cf0c951c91ceaaad32bd5 (patch) | |
tree | 92aa0af6020df3f86f8c214c55d5f03df325a7cc /doc | |
parent | 81776586ed1f52fc58476c27bb14a850453213c2 (diff) |
Add the Predefined Variables in Component Scripting.
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>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/scripting.qdoc | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/doc/scripting.qdoc b/doc/scripting.qdoc index 64529867d..a6cb2526a 100644 --- a/doc/scripting.qdoc +++ b/doc/scripting.qdoc @@ -266,6 +266,27 @@ For example, \c {C:\Program Files} on Windows, \c {/opt} on Linux and \c {/Applications} on OS X. + + See also the table that lists examples of \l {Applications-directory-on-Windows} + {applications directories on Windows}. + \row + \li ApplicationsDirX86 + \li Applications Directory for 32 bit programs. This is useful on Windows, + on other platforms it is the same as \c ApplicationsDir. + + For example, \c {C:\Program Files (x86)} on Windows. + + See also the table that lists examples of \l {Applications-directory-on-Windows} + {applications directories on Windows}. + \row + \li ApplicationsDirX64 + \li Applications Directory for 64 bit programs. This is useful on Windows, + on other platforms it is the same as \c ApplicationsDir. + + For example, \c {C:\Program Files} on Windows. + + See also the table that lists examples of \l {Applications-directory-on-Windows} + {applications directories on Windows}. \row \li InstallerDirPath \li The directory that contains the installer application executable. @@ -297,4 +318,47 @@ component.addOperation("CreateShortcut", "@TargetDir@/MyApp.exe", "@StartMenuDir@/MyApp.lnk"); } \endcode + + + \target Applications-directory-on-Windows + For example, applications directory on Windows: + \table + \header + \li OS (Windows) + \li Qt Installer Framework + \li Variable + \li Example Path + \row + \li {1, 3} 32bit + \li {1, 3} 32bit + \li ApplicationsDir + \li \c {C:\Program Files} + \row + \li ApplicationsDirX86 + \li \c {C:\Program Files} + \row + \li ApplicationsDirX64 + \li \c {C:\Program Files} + \row + \li {1, 6} 64bit + \li {1, 3} 32bit + \li ApplicationsDir + \li \c {C:\Program Files (x86)} + \row + \li ApplicationsDirX86 + \li \c {C:\Program Files (x86)} + \row + \li ApplicationsDirX64 + \li \c {C:\Program Files} + \row + \li {1, 3} 64bit + \li ApplicationsDir + \li \c {C:\Program Files} + \row + \li ApplicationsDirX86 + \li \c {C:\Program Files (x86)} + \row + \li ApplicationsDirX64 + \li \c {C:\Program Files} + \endtable */ |