473,405 Members | 2,210 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

How to install windows service with passing parameters?

1
I want to pass two parameters at installation time.
I have already coded for same.
I want installation execution line.
Jul 11 '16 #1
1 2612
Luuk
1,047 Expert 1GB
Type, on a command prompt,
SC CREATE HELP

On Windows 10 you will see this:
Expand|Select|Wrap|Line Numbers
  1. DESCRIPTION:
  2.         Creates a service entry in the registry and Service Database.
  3. USAGE:
  4.         sc <server> create [service name] [binPath= ] <option1> <option2>...
  5.  
  6. OPTIONS:
  7. NOTE: The option name includes the equal sign.
  8.       A space is required between the equal sign and the value.
  9.  type= <own|share|interact|kernel|filesys|rec|userown|usershare>
  10.        (default = own)
  11.  start= <boot|system|auto|demand|disabled|delayed-auto>
  12.        (default = demand)
  13.  error= <normal|severe|critical|ignore>
  14.        (default = normal)
  15.  binPath= <BinaryPathName to the .exe file>
  16.  group= <LoadOrderGroup>
  17.  tag= <yes|no>
  18.  depend= <Dependencies(separated by / (forward slash))>
  19.  obj= <AccountName|ObjectName>
  20.        (default = LocalSystem)
  21.  DisplayName= <display name>
  22.  password= <password>
  23.  
Dec 17 '16 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: csheng | last post by:
I have a application to deliver now, and I am stuck. I developed a windows service, and I use intallutil to install. It works fine in development machine, when I copy the file to a windows 2003...
0
by: MarkM | last post by:
Hi there. Since upgrading to XP SP2 on my development box, I now compile the same windows service code and try to install it on a Windows 2000 server. Throws error "Access Is Denied". The...
2
by: Ant | last post by:
Does anyone have an example of how to install a windows service from .net code. I've seen PInvoke versions, but it should be able to be done using System.Configuration.Install.Installer as the...
2
by: Shani | last post by:
Could someone suggest me as to how to install an Windows Service in C#? I do not want to use InstallUtil as I need to pass a parameter, which is not possible. I do not want to use write an...
3
by: Jeremy S. | last post by:
On my dev machine (XP/Pro with VS.NET 2003) I have been developing a Windows Service and installing it on the local machine by opening the Visual Studio Command Prompt and then executing . Now I...
2
by: Fan Wang | last post by:
Hi All, I wrote a windows service with C# as below. But I can't install it with installutil.exe. I got an error message " Exception occurred while initializing the installation:...
8
by: Stanley | last post by:
I have finished a Windows Service, now I'm trying to deploy the service to all my local computers. I want to ask if there is a fast way, rather then install it one by one? All answer would be...
2
by: Ronald S. Cook | last post by:
I just created a Windows Service. But now, how do I install it so that it shows up in my list of services? Thanks, Ron
3
by: =?Utf-8?B?Um9iZXJ0IFNsYW5leQ==?= | last post by:
I'm trying to install a .NET Windows Service using the ServiceInstaller / ServiceProcessInstaller classes. I cannot seem to find a way to specify command line arguments. I've looked through...
1
by: =?Utf-8?B?Qi5BaGxzdGVkdA==?= | last post by:
Hi all, This is something that I have been toying with for about a week now. What I want to achieve is Install a Service with Customised parameters (using InstallUtil.exe) for User Name. Example...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.