Added windows uninstall actions

This commit is contained in:
Greg Richardson
2007-02-01 21:24:02 +00:00
parent 4872424328
commit 0aba721217
9 changed files with 1563 additions and 325 deletions

View File

@@ -80,18 +80,15 @@ public class SetupAsWindowsService
file = new File("c:\\test6.log");
fw = new FileWriter(file);
log("Here we go: " + args.length);
for (int i = 0; i < args.length; i++)
{
log("Arg " + i + " = " + args[i]);
}
// Process the arguments
log("Process args");
if (ERROR_NO_ERROR == (rc = processArgs(args)))
{
// Process the properties
log("Process properties");
if (ERROR_NO_ERROR == (rc = processProperties()))
{
log("setupService");
rc = setupService();
}
}
@@ -156,6 +153,11 @@ public class SetupAsWindowsService
log("New arg count " + args.length);
for (i = 0; i < args.length; i++)
{
if (null == args[i])
{
continue;
}
log("arg[" + i + "] = " +args[i]);
// is this the install dir param?
@@ -237,7 +239,6 @@ public class SetupAsWindowsService
}
// Note: the properties file parameter is optional
return ERROR_NO_ERROR;
}