Inno-Setup ISS 脚本可以包含外部 ISS 脚本文件吗?

发布于 2024-09-07 13:10:28 字数 308 浏览 0 评论 0原文

我正在创建一个安装脚本,我想将其分解为更小、更易于管理的部分。有没有办法让 Inno 脚本文件具有 INCLUDE 或对另一个 ISS 脚本文件的引用,该脚本文件是独立的,并且在安装过程中总体上具有不同的功能,但成为完整安装本身的集成部分?

考虑: 程序安装.iss SQL安装程序 SOAPInstall.iss

ProgramInstall 将包含其他脚本并返回一个完整的 EXE,该 EXE 完成这项工作,就好像它们都在一个大文件中一样。

这不仅有助于管理目的,而且允许我重用经过测试并与其他主要应用程序安装项目一起使用的脚本。感谢您的任何帮助。

I'm creating an installation script that I'd like to break up into smaller, more manageable pieces. Is there a way for an Inno Script file to have an INCLUDE or a reference to another ISS script file that is separate and has a different function overall to play during installation but becomes an integrated part of the full installation itself?

Consider:
ProgramInstall.iss
SQLInstall.iss
SOAPInstall.iss

ProgramInstall would have an include to the other scripts and return one full EXE that did the job as if they were all in one large file.

Not only would this be helpful for management purposes but would allow me to reuse scripts that are tested and working with other main application installation projects. Thanks for any assistance.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

甲如呢乙后呢 2024-09-14 13:10:28

好吧 - 我想找到 CHM 文件的正确部分总是有帮助的:

http: //www.jrsoftware.org/ishelp/index.php?topic=scriptformatoverview

Inno-Setup 似乎包含一个类似 C 的 #include 指令。

支持类似 C 的 #include 指令,该指令从
将文件单独放入脚本中的 #include 位置
指示。语法为:

<前><代码>#include“文件名.txt”

如果文件名不是完全限定的,编译器将查找它
与包含 #include 指令的文件位于同一目录中。
文件名可能以“compiler:”为前缀,在这种情况下它看起来
获取编译器目录中的文件。

Well - I guess finding the right section of the CHM file is always helpful:

http://www.jrsoftware.org/ishelp/index.php?topic=scriptformatoverview

Inno-Setup seems to include an C-like #include directive.

A C-like #include directive is supported, which pulls in lines from a
separate file into the script at the position of the #include
directive. The syntax is:

#include "filename.txt"

If the filename is not fully qualified, the compiler will look for it
in the same directory as the file containing the #include directive.
The filename may be prefixed by "compiler:", in which case it looks
for the file in the compiler directory.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文