警告LGHT1076:ICE91:文件'doc_code_file1'将安装到每个用户目录'code_Simple'

时间:2013-04-20 15:01:14

标签: 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 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>

如何抑制此警告?

1 个答案:

答案 0 :(得分:5)

如果您只想取消警告,可以将-sice:ICE91添加到light.exe命令行,以防止该特定ICE运行。或者,您可以在.wixproj中添加如下属性:

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

如果您使用Visual Studio打开.wixproj文件,可以转到Project Properties标签上的Tool Settings设置该属性,然后在那里添加ICE91。 / p>

相关问题