diff options
author | Karsten Heimrich <karsten.heimrich@theqtcompany.com> | 2015-07-10 11:54:41 +0200 |
---|---|---|
committer | Karsten Heimrich <karsten.heimrich@theqtcompany.com> | 2015-07-14 11:45:04 +0000 |
commit | 7530807cb040224a2ed31e290ed6f2fb7fc75574 (patch) | |
tree | 52e06de5db9b907b63cae25abc7ac50205379702 /src/libs/installer/fileutils.h | |
parent | b4a2001d65e13f006da03d39e56a0d989117c597 (diff) |
Make the installation relocatable (with some limitations).
Replace the install path with a constant that's updated while
loading the stored configuration and operation values. Dynamic
variables now need to be set after reading the .ini file, cause
there we store the values we found during installation. Makes
an installation relocatable, though with some limitations:
* Uninstaller entry might break on Windows
* Start menu sortcuts might break on Windows
* Everything else written to the system using full path
Task-number: QTIFW-653
Change-Id: Ie3255299460d4ad7f18c88de9044c95db10d17ac
Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
Reviewed-by: Karsten Heimrich <karsten.heimrich@theqtcompany.com>
Diffstat (limited to 'src/libs/installer/fileutils.h')
-rw-r--r-- | src/libs/installer/fileutils.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libs/installer/fileutils.h b/src/libs/installer/fileutils.h index ca85bbf89..ca8891c50 100644 --- a/src/libs/installer/fileutils.h +++ b/src/libs/installer/fileutils.h @@ -100,6 +100,8 @@ private: quint64 INSTALLER_EXPORT fileSize(const QFileInfo &info); bool INSTALLER_EXPORT isInBundle(const QString &path, QString *bundlePath = 0); + QString replacePath(const QString &path, const QString &pathBefore, const QString &pathAfter); + #ifdef Q_OS_WIN QString INSTALLER_EXPORT getLongPathName(const QString &name); QString INSTALLER_EXPORT getShortPathName(const QString &name); |