Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

command line argument to install a service


4 replies to this topic

reddy611

reddy611
  • Full Members
  • 117 posts

Posted 09 November 2006 - 13:20

I would like to know the command line argument used to install a service. The service is a win32 service.

shadh_b

shadh_b
  • Full Members
  • 3 posts

Posted 10 November 2006 - 11:18

Give a try with sc.exe command line option.

reddy611

reddy611
  • Full Members
  • 117 posts

Posted 10 November 2006 - 12:53

Thanks for your reply. i would like to know For the sc.exe what are the exact arguments it's required to install the service?

Edited by reddy611, 10 November 2006 - 12:54.


shadh_b

shadh_b
  • Full Members
  • 3 posts

Posted 10 November 2006 - 13:04

sc <server> [command] [service name], for more details goto cmd prompt and type sc.exe for help.

chrpai

chrpai
  • Full Members
  • 26 posts

Posted 11 November 2006 - 04:35

Or you can author a service using the ServiceInstall table as exposed via the component advanced settings.
Christopher Painter, MCSE
Author of:
DeploymentEngineering.com
MSI Factory Provider for ADO.NET 2.0 (Work In Progress)
99 Bottles Of Beer - Windows Installer

PM for personal communication only. Please ask questions in the forums.