gpt4 book ai didi

preprocessor - Inno Setup : How do I see the output (translation) of the Inno Setup Preprocessor?

转载 作者:行者123 更新时间:2023-12-04 11:16:27 25 4
gpt4 key购买 nike

我有一个带有预处理器指令的Inno Setup脚本(#define#if等)。

我想在脚本上运行Inno Setup预处理器,并查看预处理器的输出(以Inno-Setup口语翻译)。也就是说,我要查看预处理器的结果,该预处理器通常将其馈送到Inno Setup Compiler中,其中所有对{#something}的引用都更改为定义为something的任何内容。

我看了(iscc.exe的)命令行选项和#pragma指令,但没有找到我想要的东西。我看到可以指定不运行编译器(#pragma -c- | /$c-),但是我没有找到查看预处理器输出的方法。

简而言之,我如何看待Inno Setup预处理器的输出?

最佳答案

当其他所有方法都失败时,请自己寻找答案

在脚本末尾添加以下行。

这将生成一个preprocessed.iss文件,其中所有宏都已扩展,并且#define#if等已处理。

#expr SaveToFile(AddBackslash(SourcePath) + "Preprocessed.iss")

关于preprocessor - Inno Setup : How do I see the output (translation) of the Inno Setup Preprocessor?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3328375/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com