Merge pull request #5576 from Chocobo1/msiexec

Call system msiexec.exe directly
This commit is contained in:
sledgehammer999
2016-08-23 11:29:53 -05:00
committed by GitHub
4 changed files with 19 additions and 8 deletions

View File

@@ -670,3 +670,15 @@ QString Utils::Misc::libtorrentVersionString()
static const QString ver = LIBTORRENT_VERSION;
return ver;
}
#ifdef Q_OS_WIN
QString Utils::Misc::windowsSystemPath()
{
static const QString path = []() -> QString {
WCHAR systemPath[64] = {0};
GetSystemDirectoryW(systemPath, sizeof(systemPath) / sizeof(WCHAR));
return QString::fromWCharArray(systemPath);
}();
return path;
}
#endif

View File

@@ -102,12 +102,16 @@ namespace Utils
QList<int> intListfromStringList(const QStringList &l);
QList<bool> boolListfromStringList(const QStringList &l);
void msleep(unsigned long msecs);
#ifndef DISABLE_GUI
void openPath(const QString& absolutePath);
void openFolderSelect(const QString& absolutePath);
#endif
void msleep(unsigned long msecs);
#ifdef Q_OS_WIN
QString windowsSystemPath();
#endif
}
}