2011-08-26 17:40:23 +00:00
|
|
|
#include "AppInfo.h"
|
|
|
|
|
2011-08-29 21:27:55 +00:00
|
|
|
#include "FileUtils.h"
|
2011-08-29 13:44:08 +00:00
|
|
|
#include "Platform.h"
|
|
|
|
#include "StringUtils.h"
|
2011-08-30 11:34:37 +00:00
|
|
|
#include "StandardDirs.h"
|
2011-08-29 13:44:08 +00:00
|
|
|
|
2011-08-30 09:43:14 +00:00
|
|
|
#include <iostream>
|
|
|
|
|
2011-08-26 17:40:23 +00:00
|
|
|
std::string AppInfo::logFilePath()
|
|
|
|
{
|
2011-08-30 11:34:37 +00:00
|
|
|
return StandardDirs::appDataPath(organizationName(),appName()) + '/' + "update-log.txt";
|
2011-08-26 17:40:23 +00:00
|
|
|
}
|
|
|
|
|
2011-08-29 17:57:12 +00:00
|
|
|
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;
|
|
|
|
}
|
|
|
|
|