我正在开发自定义引导程序应用程序。应该传递给e.Result什么来指示msi忽略锁定的文件并要求稍后重启?
以下代码是否正确?
private void OnExecuteFilesInUse(object sender, ExecuteFilesInUseEventArgs e)
{
DialogResult answer = GetAnswer();
if (answer == DialogResult.Abort)
e.Result = Microsoft.Tools.WindowsInstallerXml.Bootstrapper.Result.Abort;
else if (answer == DialogResult.Retry)
e.Result = Microsoft.Tools.WindowsInstallerXml.Bootstrapper.Result.Retry;
else
e.Result = Microsoft.Tools.WindowsInstallerXml.Bootstrapper.Result.Ignore;
}