如何使用Inno Setup运行Windows启动服务? [英] How to run windows start service using inno setup?

查看:459
本文介绍了如何使用Inno Setup运行Windows启动服务?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用inno setup通过命令提示符在图标部分中运行Windows启动服务.请帮助我解决此问题

i want to run windows start service in the icon section through command prompt using inno setup.pls help me to solve this problem

推荐答案

您不要通过[Icons]部分来运行事情.

You don't run things through the [Icons] section.

如果您希望图标启动服务,请使用类似以下内容的

If you want an icon to start a service, use something like:

[Icons]
Name: {group}\Start Wibble service; Filename: net.exe; Parameters: "start wibbleservice";

在问题明确后进行更新,但此处留作后代: 如果希望Inno启动服务,则可以使用AfterInstall条目或[Run]条目调用的="nofollow"> SCM API :

Update after the question was clarified, but left here for posterity: If you want Inno to start the service, you either use the SCM API called from the AfterInstall entry of the service itself or a [Run] entry:

[Run]
Filename: net.exe; Parameters: "start wibbleservice"; Description: "Starting wibble service"

这篇关于如何使用Inno Setup运行Windows启动服务?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆