使用VS 2013中的installshield LE安装后,Windows服务未显示在服务列表中 [英] Windows service is not appearing in services list after installation using installshield LE from VS 2013

查看:89
本文介绍了使用VS 2013中的installshield LE安装后,Windows服务未显示在服务列表中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

I've created a windows service in c#, using Visual Studio 2013 I pretty much followed this:







http://www.c-sharpcorner.com/UploadFile/cb88b2/simple-steps-to-create-setup-file-using-install-shield-le-fr/







I created a setup project, as instructed in the article, and ran it. It installs my service to c:\program files(*86)\Company Name\My product Name etc., however, it does not then appear in the services list.

can you please help me What am i missing?





我尝试了什么:



我已经尝试使用visual studio命令提示符手动安装此服务,并且工作正常。但是我无法使用我使用VS2013内置的Installshiled light edition创建的安装项目来安装它。



What I have tried:

I already tried to install this service manually using visual studio command prompt, and its working fine. But I am not able to install it using setup project which I created using Installshiled light edition which VS2013 provided inbuilt.

推荐答案

您好Varun,这不是专门回答您的问题,但您可能有兴趣知道您可以通过使用以下命令非常简单地安装/卸载Windows服务:



C:\ Windows \ MyMicrosoft .NET.\\Framework64\v4.0.30319\installutil.exeC:\ Program Files \ Service\ Service.exe



C :\ Windows \ microsoft.NET \ Framework64 \v4.0.30319 \installutil.exe/ uC:\ Program Files \ Service\ Service.exe



其中v4.0.30319是您为该服务定位的.Net版本。



许多人已经放弃了Windows服务的安装程序框架,因为它们很重,不易自动化。它当然取决于您的软件以及它的安装方式。
Hi Varun, this does not specifically answer your question, but you may be interested to know that you can install/uninstall a windows service quite simply by using the following commands:

"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\installutil.exe" "C:\Program Files\Service\Service.exe"

"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\installutil.exe" /u "C:\Program Files\Service\Service.exe"

where v4.0.30319 is the version of .Net you are targeting for the service.

Many people have abandoned installer frameworks for windows services because they are heavy and not as easy to automate. It of course depends on your software and how/who it is being installed by.


在设计模式下打开窗口服务类,只需从用户将ServiceProcessInstaller的Account属性设置为Local System。如果您没有添加ServiceProcessInstaller,请右键单击服务设计页面并单击AddInstaller菜单。
Open the window service class in design mode and Just set Account property of ServiceProcessInstaller to Local System from user . In case you did not add ServiceProcessInstaller kindly right click at Service design page and click on AddInstaller menu.


这篇关于使用VS 2013中的installshield LE安装后,Windows服务未显示在服务列表中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆