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

@@ -21,20 +21,26 @@
int main() {
log(LOGLEVEL::INFO, "[main()]:Starting main thread.");
printf("welcome to the jakach security tool main thread\n");
load_settings();//load the settings from the settings file
if (update_settings("settings")) { //update the settings from the server
log(LOGLEVEL::ERR, "[main()]:Could not update settings from server.");
if (load_settings() == 0) {//load the settings from the settings file
if (update_settings("settings")) { //update the settings from the server
log(LOGLEVEL::ERR, "[main()]:Could not update settings from server.");
}
if (update_settings("rtp_included")) { //update the settings from the server
log(LOGLEVEL::ERR, "[main()]:Could not update settings from server.");
}
if (update_settings("rtp_excluded")) { //update the settings from the server
log(LOGLEVEL::ERR, "[main()]:Could not update settings from server.");
}
if (update_settings("sched")) { //update the settings from the server
log(LOGLEVEL::ERR, "[main()]:Could not update settings from server.");
}
load_settings(); //load the updated settings from the settings file
}
if (update_settings("rtp_included")) { //update the settings from the server
log(LOGLEVEL::ERR, "[main()]:Could not update settings from server.");
}
if (update_settings("rtp_excluded")) { //update the settings from the server
log(LOGLEVEL::ERR, "[main()]:Could not update settings from server.");
}
if (update_settings("sched")) { //update the settings from the server
log(LOGLEVEL::ERR, "[main()]:Could not update settings from server.");
}
load_settings();
else {
log(LOGLEVEL::ERR, "[main()]:Could not load settings from file.");
log(LOGLEVEL::PANIC, "[main()]:Panic, no settings file loaded, terminating process!");
exit(0);
}
initialize(DB_DIR); //load the hash databases into memory
//start a second thread which will scan for new files