Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/wix/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Installation 如何在没有ICE代码的情况下抑制WiX警告?_Installation_Wix_Wix3.11 - Fatal编程技术网

Installation 如何在没有ICE代码的情况下抑制WiX警告?

Installation 如何在没有ICE代码的情况下抑制WiX警告?,installation,wix,wix3.11,Installation,Wix,Wix3.11,我正在创建一个需要在同一“新安装”配置中多次运行的安装程序。 为此,设置了以下抑制: <InstallExecuteSequence> <RegisterProduct Suppress="yes" /> <PublishFeatures Suppress="yes" /> <PublishProduct Suppress="yes" /> <RegisterUser

我正在创建一个需要在同一“新安装”配置中多次运行的安装程序。 为此,设置了以下抑制:

<InstallExecuteSequence>
  <RegisterProduct Suppress="yes" />
  <PublishFeatures Suppress="yes" />
  <PublishProduct Suppress="yes" />
  <RegisterUser Suppress="yes" />
</InstallExecuteSequence>
由于我们的政策,“已确认”警告无法显示在构建结果中,因此需要完全抑制它们

使用
可以轻松抑制带有ICE代码的警告,在这种情况下,两者都不能使用

似乎也不是一个选项,因为安装程序生成的其他警告仍必须捕获

WiX是否提供封装以忽略组内的警告

是否有办法至少捕获这些特定警告并抑制它们


提前感谢。

错误和警告来自两个地方:构建和验证。使用Voctive/Visual Studio时,ICEXX是验证,在工具设置中是可控的。其他警告是生成警告,在“生成”选项卡上进行控制。WiX允许您将警告级别设置为“无”,但会过滤所有警告。VisualStudio允许您抑制特定的警告,但WiX似乎从未给出过警告的单独代码号,因此这不可用


就我个人而言,禁用或忽略任何类型的警告都会让我感到舒服。我只注意错误。这是基于20多年的Windows Installer经验。

那么,我将由其他人来运行它。IIRTWIX在GH上,所以我也会考虑通知它们。谢谢
The action 'RegisterProduct' in the InstallExecuteSequence table is being suppressed.