C# windowsService安装
来源:互联网 发布:it综合服务 编辑:程序博客网 时间:2024/05/29 12:22
安装windows service通常有两种工具
1.Framework目录下的installutil.exe工具。
2.visual studio命令行工具在这里我要说的是当我们使用的系统是64位的系统,Framework包含1.0,2.0,3.0,3.5,4.0以及它们的64位版本时的情况。
一、使用installutil.exe使用Visual Studio 2010创建的基于x86的4.0应用程序,在使用 installutil.exe工具安装时,你会发现在Microsoft.NET目录下有很多installutil.exe,包括不同版本Framework的x86和x64工具,这当然要使用32位版本的4.0的installutil.exe工具,一般在C:\Windows\Microsoft.NET\Framework\v4.0.30319这个目录下。使用这个工具安装和卸载程序的命令
1.安装。在命令行下,进入到C:\Windows\Microsoft.NET\Framework\v4.0.30319这个目录, installutil.exe 应用程序path,比如我的F盘有一个ServiceTest.exe程序。命令则是: installutil.exe "F:\ServiceTest.exe"2.卸载。下载只需要在应用程序名前面加上/u即可。比如:installutil.exe /u "F:\ServiceTest.exe"
二、使用visual studio 命令行工具使用visual studio 2010命令行工具比较简单,在64位系统下,visual studio 2010提供了两个工具Visual Studio Command Prompt (2010)和Visual Studio x64 Win64 Command Prompt (2010)第一个用于安装卸载x86程序,第二个用于安装卸载x64程序。但命令有稍微不同,仍然以上面F:\ServiceTest.exe为例,打开 Visual Studio Command Prompt (2010)。
1.安装。installutil "F:\ServiceTest.exe"
2.卸载。installutil "F:\ServiceTest.exe" /u
地址:http://blog.163.com/lishilin_468@126/blog/static/1629011382012117103934904/
- C# windowsService安装
- c# windowsservice安装执行用户权限控制
- c# WindowsService 的发布
- C#创建WindowsService
- 创建并安装WindowsService
- c# windowsService 的基本操作
- windowsService
- WindowsService视频
- WindowsService Demo
- WindowsService 浅学
- 使用C#创建WindowsService(Windows服务):定期执行Dos命令或Bat(批处理)文件
- VS2010 创建WindowsService服务
- VS2010 创建WindowsService服务
- windowsservice创建心得
- WindowsService监听端口
- WindowsService+.Net Remoting 实现分布式应用系统
- 如何单步调试WindowsService程序
- .net中调试WindowsService的OnStart()(
- Ubuntu开机自动开启小键盘
- 引用类型形参
- const int *const
- Ajax:拥抱JSON,让XML走开(2)
- XP安装.NET 3.5时报错的解决方法
- C# windowsService安装
- cookie 在多网站的平台下,会混乱 把名称设置复杂一下,即可解决
- 菜鸟stm32学习笔记(1)系统时钟初始化函数
- 第二十一天,其他流对象和一些程序
- Caused by: java.lang.OutOfMemoryError: PermGen space
- [设计模式]_[中级]_[模板方法C++例子实现举例]
- 下载内核映像和根文件系统到开发板
- 前后摄切换会死机 及各种sensor调试方法
- hdu 1598 find the most comfortable road(枚举+并查集)