WIX:回滚卸载时的状态未本地化为法语 [英] WIX: Statuses while rolling back uninstall are not localized in French

查看:116
本文介绍了WIX:回滚卸载时的状态未本地化为法语的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经使用WIX V3创建了本地化为法语的安装. 安装工作正常,但随后我们发现了一件奇怪的事情:

I've created installation using WIX V3 with localization to French. The installation works fine, but then we found out a weird thing:

安装农产品后,我们尝试将其卸载. 在卸载过程中,我们按取消",然后按安装进行回滚(可以).问题在于,在回滚期间,状态以英文显示...

After installing the produce we try to uninstall it. During the uninstall we press cancel, and then the installation performing rollback (which is fine). The problem is that during the rollback the statuses appears in English...

例如:

我已经搜索了英文&中的字符串法语wxl,但无法对其进行罚款.

I've search for the strings in English & French wxl but couldn't fine them.

该安装程序已在法语操作系统上进行了测试.

The installation was tested on French OS.

有人知道这些字符串可能来自哪里吗?

Does anyone have an idea, where those strings could come from?

推荐答案

默认情况下未创建ActionText表.

The ActionText table is not created by default.

您必须通过将UI元素添加到一个wxs文件中来自己创建它.此UI元素必须包含ProgressText元素.将每个ProgressText元素的Id属性设置为标准操作的名称.这样的元素的内部文本将覆盖针对该特定操作显示的字符串.

You have to create it yourself by adding a UI element to one of your wxs files. This UI element has to contain ProgressText elements. Set the Id attribute of each ProgressText element to the name of a standard action. The inner text of such an element will overwrite the string that is shown for that particular action.

ProgressText元素还具有Template属性.请查看在此处定义相应模板的每个标准操作的文档:

The ProgressText element also has a Template attribute. Take a look at the documentation for each standard action to define the appropriate template here: Standard Actions Reference. I don't know which specific action is displaying the string you are looking for.

最好不要对每个ProgressText元素的值进行硬编码,而应使用本地化文件.为每个ProgressText元素创建两个本地化字符串.一个用于模板,一个用于实际值.

It's best to not hardcode the values for each ProgressText element but instead use a localization file. Create two localization strings for each ProgressText element. One for the Template and one for the actual value.

示例

wxs文件

<UI>
  <ProgressText Action="InstallFiles" Template="!(loc.InstallFilesTemplate)">!(loc.InstallFiles)</ProgressText>
  <ProgressText Action="CreateShortcuts" Template="!(loc.CreateShortcutsTemplate)">!(loc.CreateShortcuts)</ProgressText>
  <ProgressText Action="WriteRegistryValues" Template="!(loc.WriteRegistryValuesTemplate)">!(loc.WriteRegistryValues)</ProgressText>
  <ProgressText Action="RegisterUser" Template="!(loc.RegisterUserTemplate)">!(loc.WriteRegistryValues)</ProgressText>
  <ProgressText Action="RegisterProduct" Template="!(loc.RegisterProductTemplate)">!(loc.RegisterProduct)</ProgressText>
  <ProgressText Action="PublishFeatures" Template="!(loc.PublishFeaturesTemplate)">!(loc.PublishFeatures)</ProgressText>
  <ProgressText Action="PublishProduct" Template="!(loc.PublishProductTemplate)">!(loc.PublishFeatures)</ProgressText>
  <ProgressText Action="InstallFinalize" Template="!(loc.InstallFinalizeTemplate)">!(loc.InstallFinalize)</ProgressText>
</UI>

本地化文件

<String Id="InstallFiles">Installazione del archivos</String>
<String Id="InstallFilesTemplate">Archivo: [1], Tamaño de archivo: [6], Directorio: [9]</String>
<String Id="CreateShortcuts">Creacion de los atajos</String>
<String Id="CreateShortcutsTemplate">Atajo [1] creado</String>
<String Id="WriteRegistryValues">Escribir en registro</String>
<String Id="WriteRegistryValuesTemplate">Camino: [1], Nombre: [2], valor: [3]</String>
<String Id="RegisterUser">Registrar a los usuarios</String>
<String Id="RegisterUserTemplate">Usario: [1]</String>
<String Id="RegisterProduct">Registrar producto</String>
<String Id="RegisterProductTemplate">Producto: [1]</String>
<String Id="PublishFeatures">Publicar las características</String>
<String Id="PublishFeaturesTemplate">Caraterística: [1]</String>
<String Id="PublishProduct">Publicar el producto</String>
<String Id="PublishProductTemplate">Producto: [1]</String>
<String Id="InstallFinalize">Finalizar la instalación</String>
<String Id="InstallFinalizeTemplate">Finalizar [ProductName]</String>

注意:我不懂西班牙语,我只是让Google翻译它.

note: i don't know spanish, i just let google translate it.

以下是您可能要查看的按正确顺序执行的标准操作的列表:

Here is list of the standard actions occuring in the correct order you might want to take a look at:

  • InstallInitialize操作
  • ProcessComponents操作
  • InstallFiles操作
  • CreateShortcuts操作
  • WriteRegistryValues操作
  • RegisterUser操作
  • 注册产品操作
  • PublishFeatures操作
  • PublishProduct操作
  • InstallFinalize操作
  • InstallInitialize Action
  • ProcessComponents Action
  • InstallFiles Action
  • CreateShortcuts Action
  • WriteRegistryValues Action
  • RegisterUser Action
  • RegisterProduct Action
  • PublishFeatures Action
  • PublishProduct Action
  • InstallFinalize Action

我的知识是基于具有以下ISBN的书:978-1782160427

My knowledge is based on a book with the following ISBN: 978-1782160427

这篇关于WIX:回滚卸载时的状态未本地化为法语的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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