Gau*_*rav 3 installer wix burn wix3.7
我正在使用WiX Burn来安装我们项目的必备条件,并且我使用ManagedBootstrapperApplicationHost来拥有自定义UI.我正在检查Windows Installer版本并将其作为先决条件安装,但需要重新启动.
如何在代码中处理重启?
我尝试在以下代码中检查它,但e.status重启时的值也是0.
private void PlanComplete(object sender, PlanCompleteEventArgs e)
{
logger.LogInfoMessage("-------------->> "+ e.Status.ToString());
if (Hresult.Succeeded(e.Status))
{
this.root.PreApplyState = this.root.State;
this.root.State = InstallationState.Applying;
WixBA.Model.Engine.Apply(this.root.ViewWindowHandle);
}
else
{
this.root.State = InstallationState.Failed;
}
}
Run Code Online (Sandbox Code Playgroud)