简体   繁体   English

使用VS2010在安装程序安装过程中安装Windows Service

[英]Install Windows Service during Setup installation using VS2010

I have windows service as separate Ser.exe file. 我有Windows服务作为单独的Ser.exe文件。 It will install using command prompt with Installutil -i "Ser.exe path". 它将使用带有Installutil -i“ Ser.exe路径”的命令提示符进行安装。

Also, I have setup project like this for windows application. 另外,我有安装项目这样的Windows应用程序。

Now , I want to install Ser.exe during setup install. 现在,我想在安装安装过程中安装Ser.exe。 How to do this? 这个怎么做?

-Firstly add your Ser.exe to the Installation Directory -In Solution exp right click set-up project >>View>>Custom Actions>>Install right-click >>Add Custom Action -now give the path of Installation Directory to reach Ser.exe then click OK(This wil execute the command prompt installation for you) -首先将您的Ser.exe添加到安装目录中-在解决方案exp中,右键单击设置项目>>查看>>自定义操作>>安装右键单击>>添加自定义操作-现在给出安装目录到达Ser的路径.exe,然后单击确定(这将为您执行命令提示符安装)

I have tried separate project for service set-up and it simply works for me 我已经尝试了一个单独的项目来进行服务设置,它对我来说很有效

-First of all create a separate service project -Then create a set-up project and select primary output from your service project. -首先创建一个单独的服务项目-然后创建一个设置项目并从您的服务项目中选择主要输出。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 使用InstallShield限量版在VS2010中为Windows窗体应用程序创建安装设置 - Create a Installation setup for a windows form application in VS2010 using InstallShield limited edition 安装使用VS2010创建的服务 - Install a service created with VS2010 远程调试Windows Service VS2010 - Remote debugging a Windows Service VS2010 VS2010安装项目冻结'选择安装文件夹' - VS2010 Setup Project Freezes on 'Select Installation Folder' 安装文件(使用Windows服务创建)在桌面位置上不起作用。 我已经使用C#创建了Windows服务(在VS2010中) - Setup file (created using Windows Service) is not working on Desktop location. I have created windows service using C# (In VS2010) 用c#.NET 4 vs2010编写的Windows服务不会安装在Server 2008 R2 Enterprise上 - windows service written in c# .NET 4 vs2010 will not install on Server 2008 R2 Enterprise VS2010安装项目-使用PostBuildEvent以管理员身份安装后启动应用程序 - VS2010 setup project - Launch application after install as administrator using PostBuildEvent 在VS2010中安装安装程序而无需询问管理员权限 - Install setup without asking admin permission in VS2010 无法调试Windows Service VS2010 Win7 - Can't debug windows Service VS2010 Win7 VS2010 ReportViewer不断加载Windows Azure Reporting Service - VS2010 ReportViewer keeps loading with Windows Azure Reporting Service
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM