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