尽管我添加了注册表值设置.它给出了以下警告
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
Run Code Online (Sandbox Code Playgroud)
我的守则
<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>
Run Code Online (Sandbox Code Playgroud)
怎么能抑制这个警告?
如果您只想禁止警告,可以添加-sice:ICE91到light.exe命令行以防止特定的ICE运行.或者,您可以向.wixproj添加如下属性:
<PropertyGroup>
<SuppressIces>ICE91</SuppressIces>
</PropertyGroup>
Run Code Online (Sandbox Code Playgroud)
如果您使用Visual Studio打开.wixproj文件,则可以通过转到选项卡Project Properties上的设置来设置该属性Tool Settings,您可以在ICE91那里添加.
| 归档时间: |
|
| 查看次数: |
1482 次 |
| 最近记录: |