X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=blobdiff_plain;ds=sidebyside;f=src%2Fwin32%2Fsetup-win.c;h=af04e8eef8492de09ef84e58a5166983293cebe2;hb=refs%2Ftags%2Fdebian%2F2.8.3-1;hp=c31b9c48ae79f76912dbd709210d4ec5317eb8af;hpb=6ef2f786c6c8ead94841b5f93baf9f43421f08c8;p=ossec-hids.git diff --git a/src/win32/setup-win.c b/src/win32/setup-win.c index c31b9c4..af04e8e 100755 --- a/src/win32/setup-win.c +++ b/src/win32/setup-win.c @@ -17,6 +17,9 @@ /* Setup windows after install */ int main(int argc, char **argv) { + /* Setting the name */ + OS_SetName(ARGV0); + if(argc < 2) { printf("%s: Invalid syntax.\n", argv[0]); @@ -31,21 +34,6 @@ int main(int argc, char **argv) return(0); } - /* Checking if ossec was installed already (upgrade) */ - if(!fileexist(OSSECCONF)) - { - char cmd[OS_MAXSTR +1]; - - /* Copy default config to ossec.conf */ - snprintf(cmd, OS_MAXSTR, "copy %s %s", OSSECDEF, OSSECCONF); - system(cmd); - } - - - /* Setting up local files */ - system("add-localfile.exe \"C:\\Windows\\pfirewall.log\" --quiet"); - system("add-localfile.exe \"C:\\Documents and Settings\\All Users\\Application Data\\Symantec\\Symantec AntiVirus Corporate Edition\\7.5\\Logs\\\%m\%d20\%y.log\" --quiet"); - /* Configure ossec for automatic startup */ system("sc config OssecSvc start= auto"); @@ -101,5 +89,5 @@ int main(int argc, char **argv) system("echo y|cacls . /T /G Administrators:f "); } - return(0); + return(1); }