Is it possible to install multiple instances of the same delphi service application?

前端 未结 6 1577
遥遥无期
遥遥无期 2020-12-06 02:24

I have a service application built in Delphi that works great. It does exactly what I want it to do and all is happy. All is fine until I want to run two (or more) instanc

6条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-06 02:46

    Insted of hacking the registry, I would recommend using the following guidance and use the Windows Service Controller (sc.exe) command line interface:

    When creating a service with sc.exe how to pass in context parameters?

    (EDIT: Do use the code as suggested to obtain the Name & DisplayName properties, just don't install your service using the /install switch for your service executable.)

提交回复
热议问题