[英]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.