How to set InstallCondition for ExePackage in Chain based on file contents?

*爱你&永不变心* 提交于 2019-12-13 06:12:54

问题


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

MsiPackage1 writes some values to file File1.

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

How can I read the contents of File1 and set a property to be tested in InstallCondition?

  • I thought of util:FileSearch but it does help me with contents.
  • Reading the contents in ExePackage2 with a custom action might be another approach but I would like to not even execute ExePackage2.

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?


回答1:


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.



来源:https://stackoverflow.com/questions/17896071/how-to-set-installcondition-for-exepackage-in-chain-based-on-file-contents

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!