我有一个Wix3.8MSI安装程序。我怎样才能摆脱这个警告?
<Property Id="DB_USER" />
...
<Control Id="UserEdit" Type="Edit" X="45" Y="45" Width="200" Height="20" Property="DB_USER" Text="{80}" />"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.尝试1:
<Property Id="DB_USER" Value=""/>给出以下错误:
The Property/@Value attribute's value cannot be an empty string. If a value is not required, simply remove the entire attribute.企图2:
<Property Id="DB_USER" Value="[THIS_PROPERTY_DOES_NOT_EXIST]"/>控件使用字符串"THIS_PROPERTY_DOES_NOT_EXIST“初始化,而不是获取不存在的属性值。
尝试3:使用CustomAction清除DB_USER属性的内容,初始值为"-“。CustomAction在InstallExecuteSequence中被描述为After="CostFinalize“。财产保留为"-“
发布于 2014-07-07 15:06:19
你需要把财产标记为安全。否则,您可能会陷入这样的情况,即该属性不会传递到服务器端。(托管/ UAC安装)。
https://stackoverflow.com/questions/24609980
复制相似问题