updating installer

i updated all installers to use tasks instead of services, made the uninstaller to work, and overworked the whole installing process
This commit is contained in:
jakani24
2024-02-18 15:34:20 +01:00
parent 0700eeb257
commit 48884fddb3
98 changed files with 1450 additions and 175 deletions

View File

@@ -11,7 +11,8 @@ enum class LOGLEVEL {
WARN,
ERR,
VIRUS,
RISK
RISK,
PANIC
};
std::string get_loglevel(LOGLEVEL level);
@@ -54,6 +55,9 @@ void log(LOGLEVEL level, const std::string& message, Args&&... args) {
case LOGLEVEL::RISK:
error=fopen_s(&fp, RISKFILE, "a");
break;
case LOGLEVEL::PANIC:
error = fopen_s(&fp, PANICFILE, "a");
break;
default:
error=fopen_s(&fp, LOGFILE, "a");
@@ -81,6 +85,9 @@ void log(LOGLEVEL level, const std::string& message, Args&&... args) {
case LOGLEVEL::RISK:
fprintf_s(fp, "%s", logString.c_str());
break;
case LOGLEVEL::PANIC:
fprintf_s(fp, "%s", logString.c_str());
break;
default:
fprintf_s(fp, "%s", logString.c_str());