这两天搞了个服务,双击EXE,在计算机管理的服务列表里就可以看到我写的服务名称,再net start xxx 才能在进程和托盘中显示,能不能不用net start xxx 就可以启动起来,请哪位高手指点一下
下面附上我的代码  CreateMutex(nil, True, 'XXX');
  if GetLastError <> 0 then
    halt;
  Application.Initialize;
  Application.Title := 'XXX服务';
  Application.CreateForm(TSerBsdIP, SerBsdIP);
  InstallService(SerBsdIP.Name,'XXX服务','XXX服务','BSDIP');
  Application.CreateForm(TFrm_SerMain, Frm_SerMain);
  Application.Run;