0
I created a simple service application by Delphi.
I need that at the time of installing the service in windows, I pass some parameters that will be read and used at the time the service starts:
Example: myServiceApp /install -arg1 -arg2
I tried that way but it doesn’t work. I also tried to "force" the boot parameters by the property of the installed service, but I could not get the value of this parameter via Paramstr().
How to pass these initial parameters and how to read the value from Delphi?
I’m glad it did. But you couldn’t create an INI file with the parameters?
– Tiago Rodrigues
Yes, it was another option. Problem now is that when installing on the client server (Windows Server 2012) the service does not start (start).
– felipearon
some error right at startup... is to treat everything with Try catch and put on Viewer Event.
– Tiago Rodrigues