即使我添加了注册表值设置。它发出以下警告
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>
如何抑制此警告?
答案 0 :(得分:5)
如果您只想取消警告,可以将-sice:ICE91
添加到light.exe
命令行,以防止该特定ICE运行。或者,您可以在.wixproj中添加如下属性:
<PropertyGroup>
<SuppressIces>ICE91</SuppressIces>
</PropertyGroup>
如果您使用Visual Studio打开.wixproj文件,可以转到Project Properties
标签上的Tool Settings
设置该属性,然后在那里添加ICE91
。 / p>