mirror of
https://github.com/etlegacy/Update-Installer.git
synced 2025-02-24 03:41:24 +00:00
* Move class to get the app data directory to a new StandardDirs class. * Setup an auto-release pool at the start/end of main() to catch objects allocated outside of the updater dialog.
23 lines
617 B
C++
23 lines
617 B
C++
#include "AppInfo.h"
|
|
|
|
#include "FileUtils.h"
|
|
#include "Platform.h"
|
|
#include "StringUtils.h"
|
|
#include "StandardDirs.h"
|
|
|
|
#include <iostream>
|
|
|
|
std::string AppInfo::logFilePath()
|
|
{
|
|
return StandardDirs::appDataPath(organizationName(),appName()) + '/' + "update-log.txt";
|
|
}
|
|
|
|
std::string AppInfo::updateErrorMessage(const std::string& details)
|
|
{
|
|
std::string result = "There was a problem installing the update:\n\n";
|
|
result += details;
|
|
result += "\n\nYou can try downloading and installing the latest version of "
|
|
"Mendeley Desktop from http://www.mendeley.com/download-mendeley-desktop";
|
|
return result;
|
|
}
|
|
|