同时为Windows服务安装项目有问题?项目、问题、Windows

由网友(美少女大佬)分享简介:我在VS2008中创建Windows服务项目。I have created windows service project in vs2008.在我创建了简单的serivce项目,并实施简单serivce成功地。不像其他的应用程序,我不能运行服务exe文件,所以我必须先安装服务使用的ServiceInstalle...

我在VS2008中创建Windows服务项目。

I have created windows service project in vs2008.

在我创建了简单的serivce项目,并实施简单serivce成功地。 不像其他的应用程序,我不能运行服务exe文件,所以我必须先安装服务 使用的ServiceInstaller 在我服务的项目。 现在,我建立的安装项目为我服务(MSI)。在这个安装项目我想 从我的服务项目通过以下follwing添加输出到我的安装项目 步 I have created simple serivce project and implemented simple serivce sucessfully. Unlike other application i cannot run service exe file, so I had to first installed service using ServiceInstaller in my service project. Now i am building setup project for my service (MSI). In that setup project I am trying to add the output from my service project to my setup project by follwing below step

     1.右键单击**设置roject **在Solution Explorer中,然后单击添加,然后单击项目输出。      你们现在它开辟*项目输出组对话框* ,但现在的问题是这个对话框是空的,而不是让我选择的服务项目。 现在,我不知道如何给服务谟添加到我的安装项目的任何帮助将appriciated。 感谢你们。    

1. Right Click **Setup roject** in solution explorer and then click add and then click project output. 2.Now it open up *project output group dialog box* but now problem is this dialog box is empty and not allowing me to select service project. Now i dont know how to add the service projet to my setup project any help would be appriciated. Thank you guys.

推荐答案

这里好走通过你需要做的。

Here's a good walk through of what you need to do.

我不完全知道为什么你看不到自己的服务项目的输出。请确保您的服务项目中选择下拉列表中。

I'm not entirely sure why you're not seeing your service project's output. Make sure your service project is selected in the drop down list.

另外要注意,步骤我似乎总是错过一个是自定义操作。你必须把您的服务安装程序自定义操作真正得到它安装为服务。

Also to note, one of the steps I always seem to miss is the custom actions. You have to hook up your service installer to the custom actions to actually get it to install as a service.

阅读全文

相关推荐

最新文章