在installshield中如何创建service and 启动 停止 service
来源:互联网 发布:新飞狐软件下载 编辑:程序博客网 时间:2024/05/24 01:44
今天要在安装包中安装一个service and 启动 ,
卸载时要停止 and uninstall。
查了以前公司的代码,发现可以这样做。
安装service:
if(LaunchAppAndWait( 【service 路径+name】,"/Service", LAAW_OPTION_WAIT )<0)then
MessageBox("Create service fail",INFORMATION);
endif;
启动service:
if(ServiceStartService("service name", "")< ISERR_SUCCESS)then
MessageBox("Start service fail",INFORMATION);
endif;
停止service:
if(ServiceStopService( "service name" )< ISERR_SUCCESS)then
MessageBox("stop service fail",INFORMATION);
endif;
卸载service:
if(LaunchAppAndWait( 【service 路径+name】,"/UnregServer", LAAW_OPTION_WAIT )<0)then
MessageBox("uninstall service fail",INFORMATION);
endif;
- 在installshield中如何创建service and 启动 停止 service
- 创建、配置、启动、停止Service
- Android中如何判断service是否启动并停止
- 初学Android,创建,启动,停止Service(五十八)
- 初学Android,创建,启动,停止Service(五十八)
- Android Service: 启动service, 停止service
- 启动和停止Service
- 启动和停止Service
- 实例:创建、启动、停止和绑定一个Service
- android中如何创建Service
- Windows系统下Tomcat在Service.msc中使用批处理启动和停止
- 如何在一个Service中启动一个Activity
- 如何在非Activity中启动、绑定Service(服务)
- Android的Service与BroadcastReceiver之一 Service简介、创建、配置、启动、停止与其生命周期
- c#创建windows service示例以及在asp.net中如何控制windows service
- c#创建windows service示例以及在asp.net中如何控制windows service
- android中Service的启动,停止,绑定的注意事项
- 在一个service中启动一个activity
- ARM 电源管理 4种模式
- 第十五周C++任务【三】格式输出
- LED显示屏知识序列一
- 互联网从业者推荐书目
- 第15周实验报告1
- 在installshield中如何创建service and 启动 停止 service
- 麦子:我奋斗了18年才和你坐在一起喝咖啡
- HR必看的86本书籍
- PostgreSQL共享缓冲区部分代码阅读总结(一)
- 探索Linux之—CRONTAB计划任务
- 抽象类
- 10本投行必读书籍+10个必用网站
- Database Test 2使用手记
- 痛心---为什么CSDN步支持WindowsWriter了!