mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-17 04:51:52 +00:00
Fixed: Special case under Windows when Installer is run from TEMP directory
--HG-- branch : develop
This commit is contained in:
parent
bf8d9aef12
commit
6801bf34d4
1 changed files with 13 additions and 1 deletions
|
@ -983,7 +983,19 @@ OperationStep CConfigFile::getInstallNextStep() const
|
|||
case -1: return LaunchInstalledInstaller;
|
||||
|
||||
// continue only if 0 and launched Installer is the installed one
|
||||
default: if (getInstallerCurrentFilePath() != getInstallerInstalledFilePath() && QFile::exists(getInstallerInstalledFilePath())) return LaunchInstalledInstaller;
|
||||
default:
|
||||
{
|
||||
#ifdef Q_OS_WIN32
|
||||
QString tempPath = QStandardPaths::writableLocation(QStandardPaths::TempLocation);
|
||||
|
||||
// check if launched from TEMP directory
|
||||
bool rightPath = getInstallerCurrentDirPath().startsWith(tempPath);
|
||||
#else
|
||||
bool rightPath = false;
|
||||
#endif
|
||||
|
||||
if (!rightPath && getInstallerCurrentFilePath() != getInstallerInstalledFilePath() && QFile::exists(getInstallerInstalledFilePath())) return LaunchInstalledInstaller;
|
||||
}
|
||||
}
|
||||
|
||||
// no default profile
|
||||
|
|
Loading…
Reference in a new issue