Install a c# windows service

How to install a c# windows service onto a machine that doesn't have Visual Studio installed?

It is simple, you only need framework installed. Visual Studio is not required..
If suppose it is framework 4.0 then 
1)Open cmd prompt
2) move to below directory
cd C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319 
3) Then use installutil
-i "windows service exe path"
4) Thats it
C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319>installutil -i "c:\ABC.exe"
To uninstall the service, 
C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319>installutil -u
"ServiceName"
To Delete service 
C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319>sc
delete "servicename"
Note : Service name is you name of service which you can get it from services
Run> type services.msc
Hope this helps you. Mark
it answered if so.

Similar Messages

  • Apple Mobile Device Support is not installed as a Window Service

    How can I install the Apple Mobile Device Service as a Windows Service? I have an external hard drive where I was able to extract the Windows Installer Package from C:\ProgramFiles\CommonFiles\Apple, but I don't now what to do with it, or if it would even be helpful. iTunes still does not recognize the iPhone.

    http://support.apple.com/en-us/HT203188

  • Please help me on installing OC4J as windows Service

    Hi, Guys:
    Could anyone help me on installing OC4J service as a windows service in my computer? I always got the following error message when I tried to start OC4J service:
    The Oracle BI: OC4J Service service on local computer started and then stopped. Some services stop automatically if they are not in use by other servies or programs.
    I am using Windows server 2008, service pack 1, 64 bit operating system.
    OC4J has been successfully installed and I can see enterprise manager from http://localhost:8888/em.
    I set envionment parameters as follows:
    ORACLE_HOME: C:\OC4J\oc4j_extended_101350
    JAVA_HOME: C:\java\JDK7u7 (I use jdk-7-windows-i586)
    J2EE_HOME: %ORACLE_HOME%\j2ee\home
    and I run cmd as administrator, cd to javaservice subdirectory, use javaservices to install OC4J as follows:
    javaservice -install "Oracle BI: OC4J Service" "C:\java\JDK7u7\jre\bin\server\jvm.dll" -XX:MaxPermSize=128m -Xmx512m "-Djava.class.path=C:\OC4J\oc4j_extended_101350\j2ee\home\oc4j.jar" -start oracle.oc4j.loader.boot.BootStrap
    I was told it is installed successfully. But I got the problem as I said before. It was strange though I did it on my local computer which is a windows7, service pack 1, 64 bit operating system successfully. I struggleed for 3 weeks with the same problem on my local PC and suddenly it worked without problem. I did not remember I changed anything. Is there anything that I missed?
    Any suggestion would be appreciated!
    Sam

    Well, I added two lines in OC4J.cmd
    set ORACLE_HOME=C:\OC4J\oc4j_extended_101350
    set JAVA_HOME=C:\JAVA\JDK7u7
    before
    set J2EE_HOME=%ORACLE_HOME%\j2ee\home
    and I restarted the windows. It looks try to run OC4J but failed, as I open services window, it shows OC4J is "stopping". When I try to run it manually, I got the same problem again. is there anything I missed? What is your OC4J, JDK and javaservice version?
    Sam

  • Install webLogic 10.3.5.0 as windows Service

    Hi there;
    Looking for install webLogic as windows service; I found some papers that points me to "WL_HOME\server\bin\installSvc.cmd"
    as we can see here in [On-Line Manual References|http://download.oracle.com/docs/cd/E21764_01/web.1111/e13708/winservice.htm#START143]
    But; the fact is that in my wl_home\server\bin directory I can't see installSvc.cmd ;
    wl_home\server is not there any way;
    I have wl_home\serverS instead of it ;
    Any tips to configure webLogic 10.3.5.0 as windows service ?
    Foward thanks
    Marcos Ortega

    Hi Marcos,
    Since you were looking in your domain directory, note that you can innstall WLS components like node manager, admin server and managed servers as Windows services (which might be what you are trying to achieve).
    - For Node Manager you have the cmd file at WL_HOME\server\bin\installNodeMgrSvc.cmd
    - To create a Windows service for the Admin Server:
    1. Create a text file named %MIDDLEWARE_HOME%\user_projects\domains\<domain name>\servers\AdminServer\security\boot.properties. Add the following lines:
    username=weblogic
    password=<the weblogic username password>
    2. Create a command script called installAdmServer_Service.cmd which you will want to make sure has lines like:
    SETLOCAL
    set DOMAIN_NAME=<your wls domain>
    set USERDOMAIN_HOME=<path to domain> # e.g., C:\middleware\FMW11g\user_projects\domains\ClassicDomain
    set SERVER_NAME=AdminServer
    set PRODUCTION_MODE=true
    cd %USERDOMAIN_HOME%
    call %USERDOMAIN_HOME%\bin\setDomainEnv.cmd
    call "<your middleware home>\wlserver_10.3\server\bin\installSvc.cmd"
    ENDLOCAL
    3. Then run "installAdmServer_Service.cmd", the Service should be installed. It will have a name like "beasvc %DOMAIN_NAME%_%SERVER_NAME%" (e.g. beasvc ClassicDomain_AdminServer). The Service "Startup Type" shouldl be "Automatic".
    - To create a Windows service for the Managed Server:
    1. Create a text file named %MIDDLEWARE_HOME%\user_projects\domains\<domain name>\servers\[managed_server_name]\security\boot.properties. Add the following lines:
    username=weblogic
    password=<the weblogic username password e.g manager11g>
    2. Create a command script called installWLSFORMS_Service.cmd which has lines like
    SETLOCAL
    set DOMAIN_NAME=<your wls domain>
    set USERDOMAIN_HOME=<path to domain> # e.g. C:\middleware\FMW11g\user_projects\domains\ClassicDomain
    set SERVER_NAME=WLS_FORMS
    set PRODUCTION_MODE=true
    set ADMIN_URL=http://mymachine.mycompany.com:7001
    cd %USERDOMAIN_HOME%
    call %USERDOMAIN_HOME%\bin\setDomainEnv.cmd
    call "<your middleware home>\wlserver_10.3\server\bin\installSvc.cmd"
    ENDLOCAL
    3. Then run "installWLSFORMS_Service.cmd", the Service should be installed and it will have a name like "beasvc %DOMAIN_NAME%_%SERVER_NAME%" (e.g. beasvc ClassicDomain_WLS_FORMS). The Service "Startup Type" will be "Automatic".
    Some warnings:
    - The ADMIN_URL value should reference the AdminServer hostname and listen port.
    - The SERVER_NAME value is case sensitive. For example, if you are creating a MS Windows service for a different managed server such as 'wls_ods1' then the value needs to match the case of the server name otherwise the startup of the server via the MS Windows service will fail.
    - Be careful that there are no trailing spaces after each line in the command file - trailing spaces will cause the managed server to fail at startup.
    Hope this helps.
    -Cris

  • Azure Pack Windows Service Bus 1.1 wont start on Windows 8.1

    Hi I am installing Azure Pack Windows Service Bus 1.1 on my Windows 8.1 (I have tried with 4 more computers) and everyone keep getting the same error.
    After the configuration when the Service Bus Gateway tries to start up it gets stuck in starting mode and after a while it is turned off then try to start again.
    After some fail searching I can see that it is the <component name="MessagingRuntimeProvider" type="Microsoft.Cloud.ServiceBus.Messaging.Runtime.MessagingRuntimeProviderFactory, Microsoft.Cloud.ServiceBus.Messaging" /> component
    that make it get stuck.
    I have no idea why though, any ideas?
    This is the error I get in the event log:
    Faulting application name: Microsoft.ServiceBus.Gateway.exe, version: 2.0.30904.0, time stamp: 0x5227aa54
    Faulting module name: unknown, version: 0.0.0.0, time stamp: 0x00000000
    Exception code: 0x80131623
    Fault offset: 0x00007ffb3a8258c8
    Faulting process id: 0xe20
    Faulting application start time: 0x01d07cf56f493327
    Faulting application path: C:\Program Files\Service Bus\1.1\Microsoft.ServiceBus.Gateway.exe
    Faulting module path: unknown
    Report Id: e317b8e7-e8e8-11e4-8261-600308a8ce71
    Faulting package full name: 
    Faulting package-relative application ID: 

    Not many responses...

  • RFCEXEC running as a windows service

    Hello,
       Is it possible to run rfcexec.exe from the RFC SDK as a Windows service (other than being launched by srvany.exe, for example) ? Thanks in advance for your input.
    Peter DOUGHERTY

    If you have Visual studio installed, create a windows service project with all the parameters, see the following example:
    Shell (rfcexec.exe -a  XXXXXX  -g xxxxx -x sapgw01)
    Compile it as exe file.
    use SAP provided ntscmgr program to register this as a windows service.
    This is working great in my environment.
    Thanks,

  • App Server 8.0, run as a Windows service?

    I am running Sun Java System Application Server 8 (Platform Edition) on Windows XP.
    I want to run the app server as a Windows service.
    How can I do this?
    I looked at Sun's documentation. I could not find any information about using the app server as a Windows service.

    Some details:
    The server is started/stoped by a batch asadmin, which collect some parameters and use a java class to instantiate/stop the server. The server process then forks and will be an independent one. Moreover, the App Server is dependent of Sun Message Queue, another service it will start. This other service is called by an exe that will initiate another java process to implement this service. You end up with three process: the java process of the App Server, an exe which controls the JMS service and another java process for the JMS. The Sun Message Queue can be installed as a Windows Service itself, see the docs. App Server 7 seemed to connect cleanly to a running instance of JMS (started either as service or from console), but App Server 8 seems to require its own. I write this in a hurry and it is still an unsolved problem for me (us?), sorry.

  • How to get 'clover.cmd' running as Windows service?

    Right now I have the InDesign instances all running great as services so on a server reboot they start up fine. The clover/lbq part is  just the .cmd script and it's not running as a service. I looked in the documentation but haven't found any info on getting clover to run as a Windows service.
    Anyone know how to set it to do this? I'm on InDesign CS6 (server).
    thanks.

    This information is in the Install Guide that comes with EAS.Running EAS as a Windows service is an option you can select when you install it. If you did not do that, you can set it up to run as service by doing the following: (From the EAS Install Guide)----------------------------------------Adding Administration Server as a Windows ServiceYou can add Administration Server as a Windows service, even if it was not installed as a Windows service.?To add Administration Server to the list of Windows services:1. From a command prompt, navigate to the following directory: EASPATH\eas\server\bin2. Run the following command: install_service.batAdministration Services installs the Windows service as Hyperion-Essbase_Administration_Server Windows service. A message displayed in the command prompt window indicates that the service is installed.3. Start the Hyperion-Essbase_Administration_Server Windows service. See ?Starting the Administration Server Windows Service? on page 49.The Hyperion-Essbase_Administration_Server Windows service is set to start automatically each time you reboot.

  • How to set Essbase Administration Server as Windows service?

    Hi,I have installed the Essbase Admin Services 7.1.0.0 Build 261 under Tomcat application server. Now from Start menu I have to select "Start Administration Server". Is there any way to set this option as Windows Service.My system:Windows 2003 SP1,Essbase 7.1.0,Essbase Admin Services 7.1.0.0 Build 261Thanks,Grofaty

    This information is in the Install Guide that comes with EAS.Running EAS as a Windows service is an option you can select when you install it. If you did not do that, you can set it up to run as service by doing the following: (From the EAS Install Guide)----------------------------------------Adding Administration Server as a Windows ServiceYou can add Administration Server as a Windows service, even if it was not installed as a Windows service.?To add Administration Server to the list of Windows services:1. From a command prompt, navigate to the following directory: EASPATH\eas\server\bin2. Run the following command: install_service.batAdministration Services installs the Windows service as Hyperion-Essbase_Administration_Server Windows service. A message displayed in the command prompt window indicates that the service is installed.3. Start the Hyperion-Essbase_Administration_Server Windows service. See ?Starting the Administration Server Windows Service? on page 49.The Hyperion-Essbase_Administration_Server Windows service is set to start automatically each time you reboot.

  • Windows Service OracleserviceDEV cannot startup

    Hi, All
    Before upgrading NW7.0 to EHP1, I Installed microsoft runtime dlls vcredist_<platform>.exe and dbghelp.dll. but after installed them, the windows service OracleServiceDEV could not startup and can startup in cmd mode. I checked the service in regedit, it was normal.
    How can I do it? Thanks.
    Best Regards
    Jiande Ding

    by defualt, Oracle's service will automatically start, but the Oracle DB will not start. This is the default from an SAP installation.
    but if you start SAP, it will start DB for you.
    so, what do you want?
    1. start Oracle automatically upon booting up,
    2. start Oracle when SAP starts
    3. start Oracle and SAP automatically upon reboot.

  • Policy Agent on BEA WebLogic when server instance runs as windows service

    hi.
    my environment is: win2k3, bea weblogic server 8.1sp4, access manager 7.1 and policy agent 2.2. installation process of policy agent asks for server startup script (startWebLogic.cmd) which i found under my server instance catalogue. the only issue is that my server instance is installed as a windows service and should not be started in a command window.
    am i safe with just specifying the path to the startup script or is there another way of dealing with this issue?
    might be a dumb question, but it would be nice to be sure that i'm doing the right thing before i go ahead and install policy agent. :)
    thanks,
    tb

    Hi,
    I have not set it up as a window service but can try to help. for one thing, this step is not permanent and if it does not work then you can undo this step by re-editting the script to remove the line you added. This step has you change the bea startup script for that domain to call the agent script setAgentEnv_AdminServer(it ws copied into bea domain directory during installation of agent) which just sets some agent resources in the classpath. If you start bea and those things are not in the classpath etc then agent wont work. So no permanent damage, you can change it if it doesnt work.
    I suggest you try it out and start the bea server as a service and see if it works - if not try again.
    I am not sure what the windows service would use to start the app server, but somehow it must specify some environment properties and things in its classpath, so if this script doesnt work then you can just do the things in the setAgentEnv_AdminServer script like setting those things in classpath.
    Please let us know if it works and if any extra steps required? Would be helpful to others to know how to configure as a windows service.
    hth,
    Sean

  • Making Server and Dispatcher as windows services

    Hi,
    How do I make server and dispatch as a part of windows services. So that they can get start when operating system starts instead of going to the folder and clicking on go.bat. Any documentation?
    Thanks in advance.
    Maya.

    Hi Maya,
    here is how to do it:
    1. Start the Config-Tool (DRIVE:\usr\sap\<J2EE_SID>\j2ee\j2ee_<INSTANCE_NR>\configtool\configtool.bat)
    2. Go to: cluster\dispatcher -> NT Service (Tab)
         choose: Enabled NT Service
    3. Go to: cluster\server -> NT Service (Tab)
         choose: Enabled NT Service
    3. Go to: cluster\state -> NT Service (Tab)
         choose: Enabled NT Service
    4. Go to: cluster\dispatcher -> services -> r3startup
         elements = 0
         -> Add
    5. Go to: File -> Aply
    6. In a Windows CommandShell (CMD) type:  DRIVE:\usr\sap\<J2EE_SID>\j2ee\j2ee_<INSTANCE_NR>\configtool\service -install
    7. Now you can start State Controler, Dispatcher, Server & from the windows services (in this sequence).
    You can also configure the services to start automatic (at windows startup) or not.
    Hope this helps,
    Robert
    PS: You can also consider installing the startup framework with the Enterprise Portal 6.0 SP2 on J2EE 6.20. It's also installed as a windows service and additionaly takes care of restarting processes, which have died/crashed as well as makes possible to unify the clustermanagement (under different operational systems).

  • Error while installing the BAM Updater Service in Windows

    Hi all,
    I am getting an error while installing the BAM updater service in Windows. When i type the "oraclebpmdatawarehouse install " command in the command prompt it gives error as follows:
    d:\OraBPMEnterpriseHome\bin>oraclebpmwarehouse install
    Installing...
    wrapper | OpenSCManager failed - Access is denied. (0x5)
    Please can anyone tell me how to get rid of this error.
    I have already done everything else like setting the database and other things.
    Thanks.

    From the error message you specified, I guess you are trying to install MS Office SP2 package. If you are then its not MS Office package its just a Service Pack; something like a patch. You need to install a Full Base package first. Again, as mentioned by Rajiv - refer to MS Support

  • When re installing iTunes on window it shows error message: Service Apple mobil divice does not start

    When re installing iTunes on window it shows error message: Service Apple mobil divice does not start

    Try the following user tip:
    Troubleshooting issues with iTunes for Windows updates

  • Itunes 11 will not install on my Windows 7 computer because it cannot start the 'Apple Mobile Device' service, what can I do?

    itunes 11 will not install on my Windows 7 computer because it cannot start the 'Apple Mobile Device' service, what can I do?

    Go to Control Panel > Add or Remove Programs (Win XP) or Programs and Features (Later)
    Remove all of these items in the following order:
    iTunes
    Apple Software Update
    Apple Mobile Device Support
    Bonjour
    Apple Application Support
    Reboot, download iTunes, then reinstall, either using an account with administrative rights, or right-clicking the downloaded installer and selecting Run as Administrator.
    See also HT1925: Removing and Reinstalling iTunes for Windows XP or HT1923: Removing and reinstalling iTunes for Windows Vista, Windows 7, or Windows 8
    Should you get the error iTunes.exe - Entry Point Not Found after the above reinstall then copy QTMovieWin.dll from:
    C:\Program Files (x86)\Common Files\Apple\Apple Application Support
    and paste into:
    C:\Program Files (x86)\iTunes
    The above paths would be for a 64-bit machine. Hopefully the same fix with the " (x86)" omitted would work on 32-bit systems with the same error.
    tt2

Maybe you are looking for