从CA到Wix的Wix自定义操作设置值

编程入门 行业动态 更新时间:2024-10-27 22:23:28
本文介绍了从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自定义操作设置值

本文发布于:2023-11-14 21:39:29,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1588564.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:自定义   操作   CA   Wix

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!