Posts Tagged ‘afterinstall’
mercoledì, novembre 4, 2009 @ 08:11 AM admin
Per far partire un servizio dopo la sua installazione mettere la seguente porzione di codice nel metodo afterinstall del servizio:
var
servman: TServiceManager;
begin
servman:= TServiceManager.Create;
try
if servman.Connect then
if servman.OpenServiceConnection(self.name) then
servman.StartService;
finally
servman.Free;
end;
Compatibile con:
- Windows XP: SI
- Windows VISTA: NON TESTATO
0 comments