static void Main(string[] args)
{
ALFADeployerTool DeployerTool = new ALFADeployerTool();
try
{
// Delete the old deployment logs.
if (File.Exists(Program.LogFilename)) File.Delete(Program.LogFilename);
if (File.Exists(SevenzipExtractor.LogFilename)) File.Delete(SevenzipExtractor.LogFilename);
if (File.Exists("DeploymentStager_Recompile.log")) File.Delete("DeploymentStager_Recompile.log");
// Make sure that we have the 7-zip extractor.
if (!File.Exists(SevenZipFilename)) throw new Exception(string.Format("{0} not found!", SevenZipFilename));
// Verify that we have the Advanced Script Compiler.
if (!File.Exists(ScriptCompilerFilename)) throw new Exception(string.Format("{0} not found!", ScriptCompilerFilename));
// Run the deployment tool.
DeployerTool.Run();
}
catch (Exception e)
{
LogEvent(e.ToString());
}
// Pause for user interaction before closing.
Console.Write("Press any key to exit.");
Console.ReadKey(true);
}