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()); }
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()); }