【问题标题】:warning LGHT1076 : ICE91: The file 'doc_code_file1' will be installed to the per user directory 'code_Simple'警告 LGHT1076:ICE91:文件“doc_code_file1”将安装到每个用户目录“code_Simple”
【发布时间】:2013-04-22 22:07:20
【问题描述】:

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

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>

如何抑制这个警告?

【问题讨论】:

    标签: wix


    【解决方案1】:

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

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

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

    【讨论】:

    • 我应该在哪里添加-sice:ICE91?我越来越糊涂了。请帮帮我
    • 抱歉,更新了答案以更清晰,并添加了有关 Votive 的详细信息。
    • @RobMensching 如何抑制 LGHT1072 警告?如何在 VS2008 中抑制除 ICE 之外的警告?请帮帮我。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-10-22
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多