_logger.Info("The windows service is already running");
MessageBox.Show("Emby Server is already running as a Windows Service. Only one instance is allowed at a time. To run as a tray icon, shut down the Windows Service.");
returntrue;
_logger.Info("Service path: {0}",path);
// Need to use indexOf instead of equality because the path will have the full service command line
_logger.Info("The windows service is already running");
MessageBox.Show("Emby Server is already running as a Windows Service. Only one instance is allowed at a time. To run as a tray icon, shut down the Windows Service.");
returntrue;
}
}
}
catch(COMException)
{
// Catch errors thrown due to WMI not being initialized