在Inno Setup中执行已安装的批处理文件 [英] Executing installed batch file in Inno Setup

查看:933
本文介绍了在Inno Setup中执行已安装的批处理文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望安装程序创建服务.通常,我只是通过以管理员身份运行命令提示符并转到.bat文件的位置并键入

I want the installer to create a service. I usually do this manually just by running the command prompt as an Administrator and going to the location of the .bat file and typing

service.bat install

是否可以在安装程序中执行此批处理文件?如果是这样,怎么办?我要在脚本中添加什么?该服务文件的位置为{the location of my installed app}\bin,并且在其中需要执行此service.bat文件.

Is there a way to execute this batch file inside an installer? If so, how? What do I add to my script? The location of this service file is {the location of my installed app}\bin and inside there is this service.bat file that needs to be executed.

推荐答案

要在安装过程中在Inno Setup中执行批处理文件,请使用

To execute a batch file in Inno Setup during installation, use the [Run] section entry:

[Run]
Filename: "{app}\bin\service.bat"; Parameters: "install"; Flags: runhidden

这篇关于在Inno Setup中执行已安装的批处理文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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