在延迟(使用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自定义操作设置值
发布评论