Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Creating Windows Services

Status
Not open for further replies.

minckle

Programmer
Mar 17, 2004
142
GB
Hi, I've created a Windows Service in Delphi and its all working fine. To install the service I use a batch file containing the following code.

cd C:\directory
filename.exe /install

It installs ok but sets the 'startup' type to 'Manual'. Is there a way to set it to 'Startup' = 'Automatic'

thanks
 
Set StartType of your (TService) to stAuto and recompile your application.

"It is in our collective behaviour that we are most mysterious" Lewis Thomas
 
Hi thanks for that, it seems to be ok now. Just 1 other
problem - when its installed it shows a message box saying 'Message Installed Successfully'. is there any way i can stop this happening

Thanks
 
sorry - it says 'Service Installed Successfully'
 
add the /silent switch to your command ie.

filename /install /silent
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top