在我的Managed Bootstrapper中,我試圖調用Engine.EvaluateCondition(「MY_PROG_FOUND」);在Run()方法中。但它從來沒有評估過,並說:「這需要一個正在運行的線程。」它從不評估。wix託管引導程序:Engine.EvaluateCondition()需要單獨的線程?
我試圖評估我的託管引導程序中的捆綁條件,但仍然沒有運氣。
MY_PROG_FOUND被捆綁代碼中定義:
<util:RegistrySearch Id="PETRELINSTALLLOCATION"
Variable="MY_PROG_FOUND"
Root="HKLM"
Key="SYSTEM\CurrentControlSet\Control\Session Manager\Environment"
Value="$(var.my_prog_env_var)"
Result="exists"
/>
<bal:Condition Message="[WixBundleName] required the installation of My Program.">
<![CDATA[Installed OR (MY_PROG_FOUND)]]>
</bal:Condition>
我如何在管理引導程序使用Engine.EvaluateCondition()?這是否需要在特定事件中調用,如DetectBegin()?
任何幫助將非常感謝... 感謝一堆。