using System; using System.Windows.Forms; namespace Custom_Installer { static class Program { public static String LocalPath = String.Format("{0}\\", Environment.CurrentDirectory); public static String ExtractURL = String.Format(Properties.Settings.Default.Server_URL, Properties.Settings.Default.Extract_Server_Name); public static String DownloadURL = String.Format(Properties.Settings.Default.Server_Name, Properties.Settings.Default.Allowed_File); public static String ExtractPath = String.Format("{0}{1}", String.Format(Properties.Settings.Default.Save_Location, Properties.Settings.Default.Server_Name), Properties.Settings.Default.Extract_Name); public static String ExtractDirectory = String.Format(Properties.Settings.Default.Save_Location, Properties.Settings.Default.Server_Name); public static Web Server; [STAThread] static void Main() { Server = new Web(); Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new Main()); } public static void Message(String Message, params Object[] Arguments) { String FormattedMessage = String.Format(Message, Arguments); MessageBox.Show(FormattedMessage, Properties.Settings.Default.Name, MessageBoxButtons.OK, MessageBoxIcon.Information); } public static Boolean Question(String Message, params Object[] Arguments) { String FormattedMessage = String.Format(Message, Arguments); DialogResult Result = MessageBox.Show(FormattedMessage, Properties.Settings.Default.Name, MessageBoxButtons.YesNo, MessageBoxIcon.Information); if (Result == DialogResult.Yes) { return true; } else { return false; } } public static void Shutdown() { Application.Exit(); } } }