简体   繁体   English

无法在WiX安装程序的自定义UI对话框中获取定义的属性

[英]Unable to get the Property defined in custom UI dialog in WiX Installer

I am using a custom UI dialog for my WiX installer. 我正在为WiX安装程序使用自定义UI对话框。 In the custom dialog, I am having an Edit Text like : 在自定义对话框中,我的编辑文本如下:

<Control Id="NameEdit" Type="Edit" X="45" Y="85" Width="220" Height="18" Property="MyVal" Text="{80}" />

Now when I am using this property to set the registry, it is giving me null value. 现在,当我使用此属性设置注册表时,它为我提供了空值。

<RegistryValue Type="string" Name="VPIP" Value="[MyVal]"/>

I have tried with other property, there it is working fine, but when I use the property from custom dialog file, it is setting null. 我尝试使用其他属性,但该属性工作正常,但是当我使用自定义对话框文件中的属性时,它将设置为null。

Can someone point out, what am I missing ? 有人可以指出,我在想什么吗?

UI中的属性名称必须是大写的(以便它们是公共的),并在其声明中标记为secure ='yes',以便它们可以转移到服务的执行阶段。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM