Hallo,
hast Du entsprechende Einträge in der Registry?
Delphi-Quellcode:
// Messagefile registrieren
procedure TReplikator.ServiceBeforeInstall(Sender: TService);
Var
Reg : TRegistry;
begin
Reg := TRegistry.Create;
Reg.RootKey := HKEY_LOCAL_MACHINE;
Reg.OpenKey('system\CurrentControlSet\Services\EventLog\Application\' + Self.Name,True);
Reg.WriteString('EventMessageFile',ParamStr(0));
Reg.WriteInteger('TypesSupported',7);
Reg.CloseKey;
Reg.OpenKey('system\CurrentControlSet\Services\Replikator\' + Self.Name,True);
Reg.WriteString('Description','Repliziert die Daten der Vorortdatenbank in die Zentraldatenbank');
Reg.CloseKey;
Reg.Free;
end;
// Messagefile aus Registrierung entfernen
procedure TReplikator.ServiceAfterUninstall(Sender: TService);
Var
Reg : TRegistry;
begin
Reg := TRegistry.Create;
Reg.RootKey := HKEY_LOCAL_MACHINE;
Reg.DeleteKey('system\CurrentControlSet\Services\EventLog\Application\' + Self.Name);
Reg.DeleteKey('system\CurrentControlSet\Services\Replikator\' + Self.Name);
Reg.CloseKey;
Reg.Free;
end;
Ansonsten: Hilft der dashier
http://www.delphipraxis.net/internal...ct.php?t=76788?