3

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

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>

如何抑制这个警告?

4

1 回答 1

7

如果您只想抑制警告,您可以添加-sice:ICE91light.exe命令行以防止该特定 ICE 运行。或者,您可以向 .wixproj 添加如下属性:

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

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

于 2013-04-22T12:55:56.600 回答