0
我有一个使用installutil.exe进行安装的Windows服务。我如何确保服务在安装后立即自动启动。这是服务ProjectInstaller类确保服务在安装后立即自动启动
using System.ComponentModel;
namespace MedicalService_WindowsService
{
[RunInstaller(true)]
public partial class ProjectInstaller : System.Configuration.Install.Installer
{
public ProjectInstaller()
{
InitializeComponent();
}
}
}