我可以在Inno Setup中使用带有预处理器指令的消息使用.isl文件吗? [英] Can I use .isl files for the messages with preprocessor directives in Inno Setup?

查看:117
本文介绍了我可以在Inno Setup中使用带有预处理器指令的消息使用.isl文件吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经定义了一个变量:

I have defined a variable:

#define AppVersion "5.0"

Default.isl文件中有很多标准消息,这些消息在我脚本的[Messages]部分中被覆盖.这是一个示例:

There's a lot of standard messages from the Default.isl file overridden in the `[Messages] section of my script. Here is an example:

[Messages]
en.WelcomeLabel1=Welcome to [name] {#AppVersion} Setup program. This program will install [name] {#AppVersion} on your computer.
en.SelectDirDesc=Where should [name] {#AppVersion} be installed?
en.SelectDirLabel3=Setup will install [name] {#AppVersion} into the following folder.

我不喜欢所有这些消息都驻留在我的脚本中的事实,我想将它们传输到相应的.isl文件中.问题是我不能在.isl文件中使用{#AppVersion},因为它被解释为简单文本.考虑到其中包含{#AppVersion}的消息,有没有办法覆盖这些文件中的消息?

I don't like the fact that all those messages reside in my script and I would like to transfer them to the corresponding .isl file. The problem is that I can't use {#AppVersion} inside the .isl file as it is interpreted as simple text. Is there a way to override those messages in the .isl file taking into account that they contain {#AppVersion}?

推荐答案

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