WiX. Run a custom action when a checkbox is checked

扶醉桌前 提交于 2019-12-06 10:29:36

问题


I have two files Product.wxc there i wrote

<Property Id="CheckBoxProp">

and Custom Action

<InstallExecuteSequence>
      <Custom Action="MyCustomAction" After="InstallInitialize">
        CheckBoxProp=1 
      </Custom>
</InstallExecuteSequence>

In another file MyCheckBoxDlg.wxc I wrote UI dialog there I described checkbox

<Control Type="CheckBox" Id="MyCheckBoxID" Width="125" Height="26" X="26" Y="124" Text="My text" Property="CheckBoxProp" CheckBoxValue="1" />

All publishs I wrote in another file where I have a DialogRef to MyCheckBoxDlg

When I start my installation customaction doesn't see change of value CheckBoxProp.

Help plz! I wait for your help.


回答1:


CheckBoxProp is a private not a secure (public) property. Change it to CHECKBOXPROP and use the Secure attribute to get it listed in the SecureCustomProperties property.



来源:https://stackoverflow.com/questions/12442670/wix-run-a-custom-action-when-a-checkbox-is-checked

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!