Wix 警告LGHT1076:ICE91:文件';文档代码文件1和x27;将安装到每用户目录';代码简单';

Wix 警告LGHT1076:ICE91:文件';文档代码文件1和x27;将安装到每用户目录';代码简单';,wix,Wix,即使我添加了注册表值设置。它给出了以下警告 warning LGHT1076 : ICE91: The file 'doc_code_file1' will be installed to the per user directory 'code_Simple' that doesn't vary based on ALLUSERS value . This file won't be copied to each user's profile even if a per machine ins

即使我添加了注册表值设置。它给出了以下警告

warning LGHT1076 : ICE91: The file 'doc_code_file1' will be installed to the per user directory 'code_Simple' that doesn't vary based on ALLUSERS value
. This file won't be copied to each user's profile even if a per machine installation is desired
我的代码

<Component Id='doc_code_copy' Guid='DA95057C-9866-4422-B00B-105BBF862C92' Directory='code_Simple'>
      <RegistryKey Root='HKCU' Key='Software\SimpleToolkit_2012\uninstall\Codesnipet'>
            <RegistryValue Value='Installed code snipet in Document' Type='string' KeyPath='yes'></RegistryValue>
        </RegistryKey>

      <File Id='doc_code_file1' Name='doc_code_file1' DiskId='1'
            Source='Personalfolder\Visual Studio 2012\Code Snippets\Visual C#\My Code Snippets\command.snippet' />
   </Component>
</Directory>


如何抑制该警告?

如果您只想抑制该警告,可以将
-sice:ICE91
添加到
light.exe
命令行中,以防止特定的ICE运行。或者,您可以向.wixproj添加一个属性,如:

<PropertyGroup>
  <SuppressIces>ICE91</SuppressIces>
</PropertyGroup>

ICE91

如果您使用Visual Studio打开.wixproj文件,可以通过转到
工具设置
选项卡上的
项目属性
来设置该属性,您可以在那里添加
ICE91

我应该在哪里添加-sice:ICE91?我弄糊涂了。请帮助meSorry,更新答案以使其更清晰,并添加有关还愿的详细信息。@RobMensching我如何抑制LGHT1072警告?如何在VS2008中抑制除ICE以外的警告?请帮帮我。