Installing Service

G

Guest

Hi,

I am trying to make a service component required by my application.
If I use a custom component "Service Data" : The service shows up in the
services list. The problem is when I try to start the service, the message
appears "File not found". Another difference i have noticied between the same
service running on full XP and the image is that image service(which does not
start) shows the account selected as This Account, where as it should be
running under Local account.
I am not putting any value under startname as I want it to run under local
account.

The values under service data :
starttype : 2
start name :
service type : 16
Service name : name of my service ( it is unique)
Service display name : name of my service
Service binary : %16422%\.....path.....\servicename.exe
LoadorderGroup :
ErrorControl : 1
Dependencies : Null


If I try using an msi package made to install this service, I tried
including Custom component " Run Once Request " with values :

Filepath : %11%\msiexec
Arguments : -i %16422%\......Path.......\MyServiceSetup.msi /qn
Flags : 2

These arguments are to make it a silent install.
flag is 2 as i want to run it after everything gets installed because if i
keep the flag value 1, It tries to install a service after plug and play
devices and message appears " It requires .net framework 1.145 something. I
have tried making this service component dependent on >net framework also (by
build order dependency) but it simply does not work.

I have also tried using a custom component FBA generic command , nothign
happens.

Any help is highly appreciated.
 
K

KM

BONTZ,
I am trying to make a service component required by my application.
If I use a custom component "Service Data" : The service shows up in the
services list. The problem is when I try to start the service, the message
appears "File not found". Another difference i have noticied between the same
service running on full XP and the image is that image service(which does not
start) shows the account selected as This Account, where as it should be
running under Local account.
I am not putting any value under startname as I want it to run under local
account.

The values under service data :
starttype : 2
start name :
service type : 16
Service name : name of my service ( it is unique)
Service display name : name of my service
Service binary : %16422%\.....path.....\servicename.exe
LoadorderGroup :
ErrorControl : 1
Dependencies : Null


See if this thread is of any help to you:
http://groups-beta.google.com/group...7fd4808b0b1/d317e5e27129456d#d317e5e27129456d

Make sure the path you set is the right one at run time (properly expanded).

Or, instead of the Service Data, just prepopulate the service registry data manually (copy the service entries from XP Pro). I
noticed that majority of Microsoft system software component install corresponding services this way.
At least set the ObjectName to LocalSystem and dont use %number% path for non-driver related service.
If I try using an msi package made to install this service, I tried
including Custom component " Run Once Request " with values :

Filepath : %11%\msiexec
Arguments : -i %16422%\......Path.......\MyServiceSetup.msi /qn
Flags : 2

These arguments are to make it a silent install.
flag is 2 as i want to run it after everything gets installed because if i
keep the flag value 1, It tries to install a service after plug and play
devices and message appears " It requires .net framework 1.145 something. I
have tried making this service component dependent on >net framework also (by
build order dependency) but it simply does not work.

I have also tried using a custom component FBA generic command , nothign
happens.

FBA Generic Command would be a better choice here compared to the RunOnce Request (but Service Data is even better).
Anyway.. try changing the paths to not use %16422% but rather either hardcoded value or something like %ProgramFiles%.
Set FBA Phase to some late phase number where .Net Framework is already there and installed.

KM
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top