Wix自定义操作dll依赖于执行时安装的文件 [英] Wix custom-action dll relies on files installed at execution

查看:89
本文介绍了Wix自定义操作dll依赖于执行时安装的文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用dll安装msi中打包的驱动程序。当我将自定义操作计划为在InstallFinalize之后成功执行时,但是如果我将其计划为1)在InstallFiles之后2)在InstallFiles之后,execute = deferred,3)在InstallFiles之后,execute = deferred,impersonate = no或4)在InstallFinalize之前

I'm using a dll to install a driver that's packaged inside the msi. When I schedule the custom-action for after InstallFinalize it succeeds, but if I schedule it either 1) after InstallFiles 2) after InstallFiles, execute=deferred, 3) after InstallFiles, execute=deferred, impersonate=no, or 4) before InstallFinalize it fails with "file not found" for the .inf file.

我已阅读此SO帖子此页面,但仍然不明白如何安装驱动程序。

I've read This SO post and this page, but still don't understand how I get my driver to be installed.

如果我在InstallFinalize之后使用,则由于其他原因而导致错误

If I use after InstallFinalize then if for some other reason an error is returned it's too late to abort the installation and it's botched.

推荐答案

根据针对您链接的问题的答案,您应该将其安排在InstallFiles之后并进行

According to this answer to the question you linked, you should schedule it after InstallFiles and make it deferred.

在安装过程中启用详细日志记录,您将能够看到何时将文件复制到硬盘驱动器以及何时调用自定义操作。

Enable verbose logging during your installation, and you'll be able to see when files are copied to the hard drive and when your custom action is called.

在InstallFinalized之后,您的安装已经完成。

After InstallFinalized, your installation is already complete.

这篇关于Wix自定义操作dll依赖于执行时安装的文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆