是否可以在编译inno-setup脚本时调用批处理文件? [英] Is it possible to call a batch file while compiling an inno-setup script?

查看:2408
本文介绍了是否可以在编译inno-setup脚本时调用批处理文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在innosetup编译过程开始时调用批处理文件。即在它开始编译之前,执行外部操作。这是可能的,还是我的外部活动应该包装innosetup编译过程?

I'd like to call a batch file at the start of an innosetup compile process. i.e. before it starts compiling, perform an external operation. Is this possible or should my external activity be wrapping the innosetup compile process?

推荐答案

如果你有ISPP安装了Inno )现在,您可以使用 Exec() 预处理器函数运行批处理文件。编译将暂停,直到它返回。

If you have ISPP installed with Inno (It's built in now) then you can use the Exec() preprocessor function to run your batch file. The compile will be paused until it returns.

#expr Exec("c:\file.bat")

您也可以从批处理文件运行它,然后调用安装编译器。

You can also run it from a batch file that then calls the setup compiler.

这篇关于是否可以在编译inno-setup脚本时调用批处理文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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