mirror of
https://github.com/etlegacy/Update-Installer.git
synced 2024-11-10 14:41:50 +00:00
Log details of the arguments to each updater process invocation in main()
This commit is contained in:
parent
5f3745351f
commit
1fdec35cdd
1 changed files with 9 additions and 7 deletions
16
src/main.cpp
16
src/main.cpp
|
@ -1,6 +1,8 @@
|
|||
#include "UpdaterOptions.h"
|
||||
#include "UpdateScript.h"
|
||||
#include "Log.h"
|
||||
#include "Platform.h"
|
||||
#include "StringUtils.h"
|
||||
#include "UpdateScript.h"
|
||||
#include "UpdaterOptions.h"
|
||||
|
||||
#if defined(PLATFORM_WINDOWS)
|
||||
#include "UpdateDialogWin32.h"
|
||||
|
@ -35,11 +37,11 @@ int main(int argc, char** argv)
|
|||
setupUi(&installer);
|
||||
}
|
||||
|
||||
std::cout << "install dir " << options.installDir << std::endl;
|
||||
std::cout << "package dir " << options.packageDir << std::endl;
|
||||
std::cout << "wait pid " << options.waitPid << std::endl;
|
||||
std::cout << "script " << options.script << std::endl;
|
||||
std::cout << "mode " << options.mode << std::endl;
|
||||
LOG(Info,"started updater. install-dir: " + options.installDir
|
||||
+ ", package-dir: " + options.packageDir
|
||||
+ ", wait-pid: " + intToStr(options.waitPid)
|
||||
+ ", script-path: " + options.script
|
||||
+ ", mode: " + intToStr(options.mode));
|
||||
|
||||
installer.setMode(options.mode);
|
||||
installer.setInstallDir(options.installDir);
|
||||
|
|
Loading…
Reference in a new issue