警告LGHT1076:ICE91:文件“doc_code_file1”将被安装到每个用户目录“cod

2019-08-31 15:19发布

Eventhough我addded注册表值设置。 它提供了以下警告

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>

怎么能禁止这种警告?

Answer 1:

如果你只是想打压你可以添加警告-sice:ICE91light.exe命令行,以防止特定ICE运行。 或者,您可以添加到您的.wixproj像一个属性:

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

如果您在使用Visual Studio打开您的.wixproj文件,你可以通过进入设置该属性, Project Properties上的Tool Settings选项卡,您可以添加ICE91那里。



文章来源: warning LGHT1076 : ICE91: The file 'doc_code_file1' will be installed to the per user directory 'code_Simple'
标签: wix