Пример #1
0
        public override bool CheckParams()
        {
            var key = LauncherCommon.GetServiceKey("IISADMIN") ?? LauncherCommon.GetServiceKey("W3SVC") ?? LauncherCommon.GetServiceKey("WAS");

            if (key == null)
            {
                MessageBox.Show("Unable to find a compatible ASP.NET installation.", "ASP.NET Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
                return(false);
            }

            return(base.CheckParams());
        }
Пример #2
0
        public override bool CheckParams()
        {
            if (ServiceName == string.Empty)
            {
                MessageBox.Show("You must enter a service name to run.", "Configuration Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
                return(false);
            }

            var key = LauncherCommon.GetServiceKey(ServiceName);

            if (key == null)
            {
                MessageBox.Show("Unable to find a service with the specified name.", "Configuration Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
                return(false);
            }

            return(base.CheckParams());
        }