Inno Setup:如何查看Inno Setup预处理程序的输出(翻译)? [英] Inno Setup: How do I see the output (translation) of the Inno Setup Preprocessor?

查看:130
本文介绍了Inno Setup:如何查看Inno Setup预处理程序的输出(翻译)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个带有预处理程序指令(#define s,#if s等)的Inno Setup脚本

I have an Inno Setup script with preprocessor directives (#defines, #ifs, etc.)

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

I want to run the Inno Setup preprocessor on my script and see the preprocessor's output (translation in Inno-Setup-speak). That is, I want to look at the result of the preprocessor which it normally feeds into the Inno Setup Compiler, where all the references to {#something} are changed into whatever something was defined as.

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

I look at the command line options (of iscc.exe) and #pragma directives and did not find what I'm looking for. I see that I can specify not to run the compiler (#pragma -c- | /$c-) but I did not find a way to look at the output of the preprocessor.

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

In short, how do I look at the output of the Inno Setup preprocessor?

推荐答案

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

When all else fails look for the answer yourself

在脚本末尾添加以下行.

Add the following line right at the end of the script.

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

This will generate a file preprocessed.iss with all macros expanded and #defines, #ifs etc. processed.

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

这篇关于Inno Setup:如何查看Inno Setup预处理程序的输出(翻译)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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