Пример #1
0
 static void Main()
 {
     Application.EnableVisualStyles();
     Application.SetCompatibleTextRenderingDefault(false);
     if (IISManager.IsIISRegistered() && (int)IISManager.GetIISVersion() >= (int)IISVersion.IIS5)
     {
         Application.Run(new MainForm());
     }
     else
     {
         MessageBox.Show("您的机器还没有安装IIS或版本低于5.0", "bbsMax安装向导", MessageBoxButtons.OK);
     }
 }
Пример #2
0
        private void Init()
        {
#if SQLSERVER
            DataBase_SqlServer.Visible = true;
            DataBase_Sqlite.Visible    = false;
#endif
#if SQLITE
            DataBase_SqlServer.Visible = false;
            DataBase_Sqlite.Visible    = true;
#endif
            Settings.Current.RootPath   = Globals.RootPath();
            SiteInfo.Current.DomainName = IISManager.GetHostName();
            SiteInfo.Current.IP         = IISManager.GetHostIP();
            SiteInfo.Current.IVersion   = IISManager.GetIISVersion();
        }