MSI安装后,如何使用Burn和DPInst安装驱动程序? [英] How do I install drivers using Burn and DPInst after MSI installation?

查看:93
本文介绍了MSI安装后,如何使用Burn和DPInst安装驱动程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我为我们的应用设置了 MSI ,并且我还签署了 FTDI 驱动程序。我希望为它们安装 Burn 而不是WiX MSI来保留CustomActions在MSI之外(但是,我也尝试过CA路由)。

I have a setup MSI for our application, and I also have signed FTDI drivers that need to be installed as well. I'd like for them to be installed with Burn rather than the WiX MSI to keep CustomActions out of the MSI (however, I've tried the CA route as well).

我尝试将指令放在 ExePackage ,但 SourceFile 属性在构建过程中而不是运行时询问文件位置(例如,< ExePackage Id = InstallDrivers DisplayName =正在安装驱动程序 SourceFile = [InstallFolder] Drivers \DPInst.exe InstallCommand = / SA / SW PerMachine = yes之后= MyMSISetup Description =安装设备通信所需的FTDI驱动程序。 />

I've tried putting the instruction in an ExePackage, but the SourceFile attribute asks for the file location during build, not runtime (e.g. <ExePackage Id="InstallDrivers" DisplayName="Installing Drivers" SourceFile="[InstallFolder]Drivers\DPInst.exe" InstallCommand="/SA /SW" PerMachine="yes" After="MyMSISetup" Description="Installing the FTDI drivers needed for device communication." /> doesn't build).

有没有办法告诉Burn使用MSI安装后驱动程序所在的文件位置来执行DPInst?当前,MSI将驱动程序文件和DPInst复制到安装目录中的 Drivers 文件夹中。在网上查看并在堆栈溢出后,我似乎没有其他人在这样做。

Is there a way to tell Burn to execute DPInst using the file location of where the drivers will be after installation of the MSI? Currently the MSI copies the driver files and DPInst into a Drivers folder in the install directory. After looking online and here on Stack Overflow, I doesn't seem like anyone else is doing this.

我也尝试过使用 MSI中的CustomAction 路由,但 CustomAction 无法执行。我希望将驱动程序与Burn一起安装,但是如果它们与MSI配合使用,我会为此感到满意。当前,MSI将文件复制到Drivers文件夹,并且CustomAction看起来像这样:

I've also tried using the CustomAction route in the MSI, but the CustomAction fails to execute. I'd like the drivers to be installed with Burn, but if they work with the MSI I'd settle for that. Currently the MSI copies the files to the Drivers folder, and the CustomAction looks like this:

<InstallExecuteSequence>
    <Custom Action="Install_Signed_Driver" After="InstallFiles">NOT INSTALLED</Custom>
</InstallExecuteSequence>

<Fragment>
    <CustomAction Id=Install_Signed_Driver" Execute="deferred" Directory="Drivers" ExeCommand=&quot;[Drivers]DPInst.exe&quot; /SW /SA" Return="ignore" />
</Fragment>

据我所知,自定义操作永远不会运行。我什至取消了 / SW / SA 开关,看是否有负载,什么也没有。

As near as I can tell, the custom action never runs. I've even taken off the /SW and /SA switches to see if anything loads, and nothing.

推荐答案

每个StackOverflow的建议,我都会在这里发布。我从没能让Burn来运行DPInst来安装驱动程序,但是可以使用似乎无法让Wix安装驱动程序

Per StackOverflow's suggestion, I'm posting what I found here. I was never able to get Burn to run DPInst for the driver installation, but was able to get the CustomAction to work using Can't seem to get Wix to install driver.

这篇关于MSI安装后,如何使用Burn和DPInst安装驱动程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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