Changed: Always copy installer if different, see #279

--HG--
branch : develop
feature/pipeline-tools
kervala 9 years ago
parent 4e70717251
commit 29caab3ae7

@ -713,8 +713,7 @@ void COperationDialog::copyInstaller()
QString oldInstallerFullPath = QApplication::applicationFilePath();
QString newInstallerFullPath = config->getInstallationDirectory() + "/" + newInstallerFilename;
if (!QFile::exists(newInstallerFullPath))
{
// always copy new installers
CFilesCopier copier(this);
copier.setIncludeFilter(config->getInstallerRequiredFiles());
copier.addFile(oldInstallerFullPath);
@ -728,9 +727,12 @@ void COperationDialog::copyInstaller()
// rename old filename if different
if (oldInstallerFullPath != newInstallerFullPath)
{
// delete previous installer
QFile::remove(newInstallerFullPath);
// rename new installer with final name
QFile::rename(oldInstallerFullPath, newInstallerFullPath);
}
}
// create menu directory if defined
QString path = config->getMenuDirectory();

Loading…
Cancel
Save