WiX。选中复选框时运行自定义操作 [英] WiX. Run a custom action when a checkbox is checked

查看:394
本文介绍了WiX。选中复选框时运行自定义操作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有两个文件Product.wxc在那里我写了

I have two files Product.wxc there i wrote

<Property Id="CheckBoxProp">

和自定义操作

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

在另一个文件中MyCheckBoxDlg.wxc我写了UI对话框,我描述了复选框

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" />

所有发布我在另一个文件中写了一个DialogRef到MyCheckBoxDlg

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

当我开始安装时,customaction没有看到值CheckBoxProp的更改。

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

帮助plz!我等待您的帮助。

Help plz! I wait for your help.

推荐答案

CheckBoxProp是一个私人不是安全将其更改为CHECKBOXPROP,并使用Secure属性将其列在 SecureCustomProperties属性

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.

这篇关于WiX。选中复选框时运行自定义操作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆