C#Windows服务程序安装浅析

开发 后端
C#Windows服务程序安装的步骤是什么呢?C#Windows服务程序安装的具体操作又是什么呢?本文就向你介绍C#Windows服务程序安装的具体内容。

C#Windows服务程序安装是如何的呢?让我们开始吧:

C#Windows服务程序安装1、

在服务程序的是设计窗体中,点击右键“添加安装程序”,添加服务安装程序。否则,安装时会出现如下

错误:

正在安装程序集“C:\Program\xx.exe”。

受影响的参数是:

  1. logtoconsole =   
  2. assemblypath = C:\Program\xx\xx.exe  
  3. logfile = C:\Program\xx.InstallLog 

没有 RunInstallerAttribute.Yes 的公共安装程序。在 C:\Program\xx.exe 程序集中可能可以找到

“Yes”属性。

正在提交程序集“C:\Program\xx.exe”。

受影响的参数是:

  1. logtoconsole =   
  2. assemblypath = C:\Program\xx.exe  
  3. logfile = C:\Program\xx.InstallLog 

没有 RunInstallerAttribute.Yes 的公共安装程序。在 C:\Program\xx.exe 程序集中可能可以找到

“Yes”属性。

C#Windows服务程序安装2、

将serviceProcessInstaller1->Accout属性,设为:LocalSystem(默认是User)。

否则将会出现如下错误:

windows服务安装时,出错:System.ComponentModel.Win32Exception: 帐户名无效或不存在,或者密码对

于指定的帐户

C#Windows服务程序安装3、

安装:

C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\InstallUtil.exe  FilePath\xx.exe

卸载:
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\InstallUtil.exe -u FilePath\xx.exe

C#Windows服务程序安装的具体实现就向你介绍到这里,希望对你了解和学习C#Windows服务程序安装有所帮助。

【编辑推荐】

  1. C#Windows服务程序的快速开发
  2. C#WINDOWS服务交互的实现
  3. C#Windows服务程序编写浅析
  4. C#Windows服务程序开发软件功能需求
  5. C#Windows服务程序开发之Windows服务浅析
责任编辑:仲衡 来源: 百度空间
相关推荐

2009-08-14 14:25:09

Windows服务程序

2009-08-14 15:06:08

Windows服务程序

2009-08-14 15:19:38

Windows服务程序Windows服务

2009-08-14 14:17:16

C#Windows服务

2009-08-14 16:48:39

C#Windows服务

2009-08-14 16:13:25

C#windows服务

2009-08-14 13:41:13

C#Windows服务

2009-08-14 15:54:50

Windows服务程序C#Windows服务

2009-08-14 16:24:00

Windows服务程序

2009-08-14 14:45:03

C#Windows服务

2009-08-14 10:50:09

Windows服务介绍

2009-08-14 14:53:55

WINDOWS服务交互

2009-08-14 11:15:19

文件监视C#Windows服务

2009-08-14 11:00:16

C#创建Windows

2009-08-14 18:04:59

C#Windows应用

2009-08-14 17:27:30

C#Windows应用

2009-08-14 17:36:20

C#Windows应用

2009-08-14 16:41:22

C#启动Windows

2009-08-14 10:42:16

Timer控件的使用C#windows服务

2009-08-14 17:55:52

C#Windows应用
点赞
收藏

51CTO技术栈公众号