Browse Source

* Re-added some disappeared code

git-svn-id: trunk@6334 -
michael 18 years ago
parent
commit
0a5001438f
1 changed files with 4 additions and 2 deletions
  1. 4 2
      fcl/inc/daemonapp.pp

+ 4 - 2
fcl/inc/daemonapp.pp

@@ -662,12 +662,14 @@ end;
 Function TCustomDaemon.Install : Boolean;
 Function TCustomDaemon.Install : Boolean;
 begin
 begin
   Result:=True;
   Result:=True;
+  Application.SysInstallDaemon(Self);
 end;
 end;
 
 
 
 
 Function TCustomDaemon.UnInstall : Boolean;
 Function TCustomDaemon.UnInstall : Boolean;
 begin
 begin
   Result:=True;
   Result:=True;
+  Application.SysInstallDaemon(Self);
 end;
 end;
 
 
 function TCustomDaemon.HandleCustomCode(ACode: DWord): Boolean;
 function TCustomDaemon.HandleCustomCode(ACode: DWord): Boolean;
@@ -763,7 +765,7 @@ begin
         D:=CreateDaemon(DD);
         D:=CreateDaemon(DD);
         Try
         Try
           // Need to call this because of the before/after events.
           // Need to call this because of the before/after events.
-          D.Install;
+           D.Install;
         Finally
         Finally
           D.Free;
           D.Free;
         end;
         end;
@@ -795,7 +797,7 @@ begin
         D:=CreateDaemon(FMapper.DaemonDefs[i]);
         D:=CreateDaemon(FMapper.DaemonDefs[i]);
         Try
         Try
           // Need to call this because of the before/after events.
           // Need to call this because of the before/after events.
-          D.UnInstall;
+          D.UnInstall 
         Finally
         Finally
           D.Free;
           D.Free;
         end;
         end;