| View previous topic :: View next topic |
| Author |
Message |
enzo Guest
|
Posted: Tue May 17, 2005 9:25 am Post subject: how define Dependency of a service at run-time |
|
|
I need to setup the servcies dependencies of a TService at run-time-
I have tried like this code but it doesn't work
TDependency * dep;
Dependencies->Add();
dep = Dependencies->Items[0];
dep->Name = dep_name;
dep->IsGroup = false;
also this way isn't working
dep = (TDependency *) Dependencies->Add();
dep = Dependencies->Items[0];
dep->Name = dep_name;
dep->IsGroup = false;
How can I setup correctly the dependencies ?
Regards and thank for the help.
Enzo
|
|
| Back to top |
|
 |
enzo Guest
|
Posted: Tue May 17, 2005 10:01 am Post subject: Re: how define Dependency of a service at run-time |
|
|
I found the solution as describe in hope this can be usefull to other peole.
I must setup the dependencies inside the BeforeInstall event.
Previously I was wrong because I tried to set it up inside the AfterInstall
event
"enzo" <enzo.arlati (AT) aesys (DOT) it> ha scritto nel messaggio
news:4289b888 (AT) newsgroups (DOT) borland.com...
| Quote: | I need to setup the servcies dependencies of a TService at run-time-
I have tried like this code but it doesn't work
TDependency * dep;
Dependencies->Add();
dep = Dependencies->Items[0];
dep->Name = dep_name;
dep->IsGroup = false;
also this way isn't working
dep = (TDependency *) Dependencies->Add();
dep = Dependencies->Items[0];
dep->Name = dep_name;
dep->IsGroup = false;
How can I setup correctly the dependencies ?
Regards and thank for the help.
Enzo
|
|
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Tue May 17, 2005 4:34 pm Post subject: Re: how define Dependency of a service at run-time |
|
|
"enzo" <enzo.arlati (AT) aesys (DOT) it> wrote
| Quote: | I need to setup the servcies dependencies of a TService at run-time-
|
Dependancies need to be set up before the service is installed into the SCM.
Why can't you set that up statically at design-time?
Gambit
|
|
| Back to top |
|
 |
|