static void Main(string[] args) { Console.WriteLine("SUP Updater"); Console.WriteLine("Copyright (c) 2014 Samarjeet Singh"); if (args.Length < 3) { ShowHelp(); return; } uphost = new ConsoleAppUpdate(); uphost.UpdateFile = args[1]; uphost.Files = AppFile.GetAppFiles(args[0]); uphost.CurrentVersion = Convert.ToDouble(args[2]); print("SUP Updater Console"); print("Copyright (C) 2014 Samarjeet Singh"); print(string.Empty); print("Checking for Updates....."); var checker = new Updater(uphost); if (checker.IsUpdateAvailable()) { var result = MessageBox.Show("Updates are available ? Would you like to download it ?"); if (result == DialogResult.OK) { Update update = checker.GetUpdate(); update.UpdateDownload += update_UpdateDownload; update.DownloadUpdate(); } } else { MessageBox.Show("No Updates Are Available!"); } }