static void Main(string[] args) { Options options = new Options(); if (CommandLine.Parser.Default.ParseArguments(args, options)) { AbstractSetupConfigurationProcess proc = null; switch (options.WebTierConfig) { case MapGuideWebConfiguration.Apache: proc = CreateApacheConfig(options); break; case MapGuideWebConfiguration.IIS: proc = CreateIISConfig(options); break; default: Console.WriteLine("Unknown web tier configuration: {0}", options.WebTierConfig); Environment.Exit(1); break; } if (proc != null) { proc.WriteSummary(Console.WriteLine); //Do FDO registration first var fdoPath = Path.Combine(options.SourceRootDir, "Server", "FDO"); var regUtil = Path.Combine(fdoPath, "FdoRegUtil.exe"); var reg = new FdoProviderRegistration(regUtil, options.FdoProviders.Select(n => Path.Combine(fdoPath, n + "Provider.dll"))); reg.WriteSummary(Console.WriteLine); var results = reg.Execute(); foreach (var res in results) { Console.WriteLine("FdoRegUtil - {0} returned {1}", res.DllPath, res.ReturnCode); } proc.Execute(); Console.WriteLine("Batch scripts saved to: {0}", options.BatchFileOutputDirectory); Environment.Exit(0); } } }
private void btnConfigure_Click(object sender, EventArgs e) { try { if (!Directory.Exists(txtFdoDir.Text)) { MessageBox.Show("The specified FDO directory does not exist"); return; } if (!File.Exists(txtFdoRegUtilPath.Text)) { MessageBox.Show("The specified FdoRegUtil path does not exist"); return; } if (chkProviders.CheckedItems.Count == 0) { MessageBox.Show("No FDO providers selected for registration"); return; } var reg = new FdoProviderRegistration(txtFdoRegUtilPath.Text, GetCheckedProviders()); reg.Execute(); GetActiveView().Config.Execute(); if (!chkInstallServices.Checked) { MessageBox.Show("Batch scripts saved to " + GetActiveView().Config.BatchFileOutputDirectory); } //Service install not implemented } catch (Exception ex) { MessageBox.Show(ex.ToString()); } }