Arn*_*raf 3 warnings windows-installer wix
我有一个 wix 3.8 msi 安装程序。我怎样才能摆脱这个警告?
<Property Id="DB_USER" />
...
<Control Id="UserEdit" Type="Edit" X="45" Y="45" Width="200" Height="20" Property="DB_USER" Text="{80}" />
Run Code Online (Sandbox Code Playgroud)
“UserEdit”控件初始化为空,但我收到以下构建警告:
Property 'DB_USER' does not contain a Value attribute and is not marked as Admin, Secure, or Hidden. The Property element is being ignored.
Run Code Online (Sandbox Code Playgroud)
尝试 1:
<Property Id="DB_USER" Value=""/>
Run Code Online (Sandbox Code Playgroud)
给出以下错误:
The Property/@Value attribute's value cannot be an empty string. If a value is not required, simply remove the entire attribute.
Run Code Online (Sandbox Code Playgroud)
尝试 2:
<Property Id="DB_USER" Value="[THIS_PROPERTY_DOES_NOT_EXIST]"/>
Run Code Online (Sandbox Code Playgroud)
控件使用字符串“[THIS_PROPERTY_DOES_NOT_EXIST]”初始化,而不是获取不存在的属性的值。
尝试 3:使用 CustomAction 清除 DB_USER 属性的内容,初始值为“-”。CustomAction 在 InstallExecuteSequence 中被描述为 After="CostFinalize"。属性保持为“-”
| 归档时间: |
|
| 查看次数: |
2586 次 |
| 最近记录: |