是否可以将变量传递给WIX本地化文件? [英] Is it possible to pass variable to WIX localization file?

查看:143
本文介绍了是否可以将变量传递给WIX本地化文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在WIX本地化文件WIXUI_zh-cn.wxl中使用变量. 我试过像这样使用它:

I need to use variable in WIX localization file WIXUI_en-us.wxl. I tried use it like this:

<String Id="Message_SomeVersionAlreadyInstalled" Overridable="yes">A another version of product $(var.InstallationVersionForGUI) is already installed</String>

但是它不起作用.当我声明属性并以这种方式使用它时:

But it doesn't work. And when I declared property and used it this way:

>

也不起作用.

我在哪里错了?

感谢您的帮助和时间.

推荐答案

本地化字符串是在链接时处理的,因此您不能使用$(var)预处理程序变量.只要使用本地化字符串的位置支持运行时格式(例如,使用Formatted字段类型),就支持使用[property]引用.

Localization strings are processed at link time, so you can't use $(var) preprocessor variables. Using a [property] reference is supported, as long as the place where the localization string is used supports run-time formatting (e.g., using the Formatted field type).

这篇关于是否可以将变量传递给WIX本地化文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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