WiX:如何获得,如果这是“安装”;状态中的c#自定义动作函数



我有一个自定义的动作c#函数,它需要知道内部的状态是"Installed"还是"NOT Installed"。如何达到这种状态?

。我需要知道这个状态(安装或未安装)在c#自定义操作

<Custom Action="CA_myfun" After="PublishProduct">NOT Installed</Custom>
    </InstallExecuteSequence>

假设自定义操作计划立即执行:

bool installed = session.EvalulateCondition("Installed");

最新更新