I want to know the advantages and disadvantages of creating a Windows service and if:
- If it is easy to maintain;
- If anyone ever had problems with this;
- If you require any specific knowledge, other than the programming language.
I want to know the advantages and disadvantages of creating a Windows service and if:
Advantages:
Disadvantages:
You need to know the entire API of the services and the peculiarities that it requires.
Just complementing what Maniero said:
Maintenance level: Maintaining a service (from my point of view) is as simple as a VCL application. Since the service typically runs on only one machine, upgrade issues are rare. Having a legal plan for updating (not making changes at the time the service is most used) is a great start. The code used in a visual application is the same as that used in a service. So there are not many problems about that.
For debug
I particularly find it annoying. In my cases, I had to create compilation directives for these situations, nothing too complex, just "boring".
Problems faced:
1: Problems trying to install service through command WinExec
(I was able to resolve using ShellExecute
) #