从CA到Wix的Wix自定义操作设置值 [英] Wix Custom action set value from CA to wix

查看:76
本文介绍了从CA到Wix的Wix自定义操作设置值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在延迟(使用impoersonate = no)将值发送到WIX到CA的过程中,我正在使用set属性和值

In deferred ( with impoersonate = no) to send the Value to the WIX to CA, i am using set property and value

并使用session.CustomActionData [ key];

and collecting the data in CA using session.CustomActionData["key"];

有没有办法将数据从CA发送回WIX

Is there any way to send back the data to the WIX from CA

<Property Id="RESTART" Secure="yes" Value="false" />

在我刚使用时,

session["RESTART"] = "true" 

。如何在延迟的CA中实现此目的

... how to achieve this in deferred CA

推荐答案

您无法通过延迟的自定义操作修改会话;那时,MSI正在执行其脚本,因此没有会​​话可言。因此您无法设置媒体资源。您需要其他某种机制来传达状态。 WiX的本机库包含功能 WcaDeferredActionRequiresReboot 来标记需要重新启动,而功能 WcaDidDeferredActionRequireReReboot 用于在 InstallFinalize 来检测重新启动状态。

You cannot modify the session from a deferred custom action; at that point, MSI is executing its script and there's no session to speak of. So you can't set a property. You need some other mechanism to communicate status. WiX's native library includes the functions WcaDeferredActionRequiresReboot to flag that a reboot is required and WcaDidDeferredActionRequireReboot for an immediate custom action scheduled after InstallFinalize to detect the reboot status.

这篇关于从CA到Wix的Wix自定义操作设置值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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