如何根据文件内容为 Chain 中的 ExePackage 设置 InstallCondition? [英] How to set InstallCondition for ExePackage in Chain based on file contents?

查看:23
本文介绍了如何根据文件内容为 Chain 中的 ExePackage 设置 InstallCondition?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个具有以下设置的链:ExePackage1->MsiPackage1->ExePackage2->MsiPackage2

I have a Chain with following setup: ExePackage1->MsiPackage1->ExePackage2->MsiPackage2

MsiPackage1 将一些值写入文件 File1.

MsiPackage1 writes some values to file File1.

ExePackage2 有一个 InstallCondition,它应该基于 File1 的内容.

ExePackage2 has an InstallCondition which should be based on the contents of File1.

如何读取 File1 的内容并在 InstallCondition 中设置要测试的属性?

  • 我想到了 util:FileSearch,但它确实对我有帮助.
  • 使用自定义操作读取 ExePackage2 中的内容可能是另一种方法,但我什至不想执行 ExePackage2.

更新我有一个由 MsiPackage1 和 MsiPackage2 使用的自定义操作库.它可以扩展到托管 CustomBA 并执行所需的文件读取和属性设置吗?

UPDATE I have a Custom Action Library which is used by MsiPackage1 and MsiPackage2. Can it be extended to to host a CustomBA and do the required file reading and property setting?

推荐答案

Burn 不是这样工作的.它在链开始应用之前处理 InstallCondition,因此链中发生的任何事情都不会影响链的其余部分.

Burn doesn't work that way. It processes InstallCondition before the chain starts being applied so nothing that happens during the chain affects the rest of the chain.

这篇关于如何根据文件内容为 Chain 中的 ExePackage 设置 InstallCondition?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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