Solved

register service application XP

Posted on 2008-10-14
9
2,168 Views
Last Modified: 2012-05-05
i have created a service application in D7, i want to register it as a service on my computer. how do i do this? i'm running XP, its possible that the service will also be running on 2000.
0
Comment
Question by:mikesExpertExchange
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
9 Comments
 
LVL 6

Accepted Solution

by:
ChristianWimmer earned 300 total points
ID: 22716161
Do you use TService?
So run your service exe with Admin privileges as followed:
install : "yourservice /install" or
uninstall "yourservice /uninstall"

Also read this article:
http://blog.delphi-jedi.net/2008/04/05/how-to-un-install-and-start-a-service-object
0
 
LVL 1

Author Comment

by:mikesExpertExchange
ID: 22716578
ok so when that's done how do i get it to show up in the Services window?
0
 
LVL 1

Author Comment

by:mikesExpertExchange
ID: 22716664
sorry my question should be, how do i name it while i'm running the install command (what's the syntax) so that it doesn't just show up as "Service1" in the services window
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
LVL 18

Assisted Solution

by:Johnjces
Johnjces earned 100 total points
ID: 22717709
I am a little confused, but I 'think' you want to be able to install the service you created in Delphi 7 by some other Delphi application. Is that correct? If so...

if shellexecute(handle, nil, Pchar('C:\ServicePath\YourServiceName.exe'), PChar('/install /silent'), nil, SW_SHOW)< 32 then
     begin
       ShowMessage('Unable to find the service executable to install!');
      exit;
     end;

Responding to your question clarification, you name the service application's service name when you created the service in Delphi under the service "forms" Name.

Say you have a service application you created called MyService. You should go to the object inspector and under your Myservice: TMyservice you should see Name where you name the service. You can also set the DisplayName here as well Such as, 'My database service'.

Hope I helped somehow. Still confused a bit.

John

John
0
 
LVL 6

Assisted Solution

by:ChristianWimmer
ChristianWimmer earned 300 total points
ID: 22718951
You can name your service by changing the name property of your service object. I think it is
Service1.DisplayName := 'name';
0
 
LVL 21

Assisted Solution

by:ziolko
ziolko earned 100 total points
ID: 22757853
if you want install service programatically see one of my PAQs:
http://www.experts-exchange.com/Programming/Languages/Pascal/Delphi/Q_23755709.html

if you want to install it from command line open cmd window then type in path and exe name of your service with /install swtich, for example:

c:\myprojects\Service\TestServiceApp.exe / install

ziolko.
0
 
LVL 38

Expert Comment

by:Geert Gruwez
ID: 23313146
i object to your deleting behaviour !
it seems you are deleting all your last questions.
even with some good answers !
so either accept your own comment or one of the askers.
0
 
LVL 1

Author Closing Comment

by:mikesExpertExchange
ID: 31506083
thank you to those who took time back then to respond. my attempt to delete was rude and disrespectful to you who tried to help. your efforts are appreciated and this will not happen again. Thanks and my appologies again...
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Suggested Courses
Course of the Month9 days, 9 hours left to enroll

624 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question