WIX安装程序,用于基于INF的打印机驱动程序 [英] WIX Installer for a INF based printer Driver
问题描述
我正在尝试使用WIX为打印机驱动程序安装程序
I am trying to make a installer for a printer driver, Using WIX
我有
- 一些Dll
- *.cat文件
- *.gdp文件
- *.inf文件
我当时在考虑使用INF部署驱动程序,但不知道如何实现.
I was thinking about using the INF to deploy the driver but don't know how to implement it.
我播种此问题,(可能重复) 但是作为一个初学者,我无法完全理解该怎么做.
I sow this Question too,(possibly duplicates) but as a beginner i could't completely understand how to do it.
我需要自行将这些DLL和其他文件复制到相关文件夹并写入注册表. 还是通过WIX引擎使用INF文件执行任务的任何简单方法?如果是的话,有人可以教我应该遵循的步骤吗?
Am i need to copy those DLLs and other files to the relevant folders by my self and Write Registry. Or is their any easy way to use INF file to do the task by WIX's engine? if it is, can any one teach me steps which I should follow?
我尝试将所有必需的文件复制到文件夹
I Tried Copying all necessary files to a folder
<Component Id="PRNDRV_cat" Guid="{4fba0d21-64bb-458d-9b78-23aed7a39d14}" Directory = "PrinterFolder">
<difx:Driver Legacy='yes' />
<File Id="Catalog" Name="sielprndrv.cat" Source="Printer\prndrv.cat" />
<File Id="DataBase" Name="SIELPRNDRV.gpd" Source="Printer\PRNDRV.gpd" />
<File Id="Info" Name="SIELPRNDRV.inf" KeyPath="yes" Source="Printer\PRNDRV.inf" />
<File Id="ini" Name="SIELPRNDRV.ini" Source="Printer\PRNDRV.ini" />
</Component>
并使用以下命令进行编译
And compiled with following command
candle -ext WixDifxAppExtension SielDrivers.wxs
light -ext WixUIExtension -ext WixDifxAppExtension SielDrivers.wixobj difxapp_x64.wixlib -o Setup.msi
安装后,我可以看到它已在程序和功能"中列出,但没有作为打印机添加到设备和打印机"中.
After installing, I can see it has listed on the 'Programs and Features', but didn't add in to 'Devices and Printers' as a printer.
我错过了什么?
推荐答案
您应检查 setupapi.dev.log 或 setupapi.app.log .
您可能知道错误代码.
您可以在%SystemRoot%\ inf 中找到日志.
https://docs. microsoft.com/zh-CN/windows-hardware/drivers/install/setupapi-device-installation-log-entries
You should check setupapi.dev.log or setupapi.app.log.
You may know error code.
You can find logs at %SystemRoot%\inf.
https://docs.microsoft.com/en-us/windows-hardware/drivers/install/setupapi-device-installation-log-entries
当您使用设备和打印机"中的添加打印机"按钮时,是否成功?
如果不是,则应检查驱动程序包.
您可以复制Dll以使用INF CopyFiles
指令,也可以注册Dll以使用INF RegisterDlls
指令.
Is it succeed when you use "Add a printer" button in "Devices and Printers" ?
If not, you should check driver package.
You can copy Dlls to use INF CopyFiles
directive, and can register Dlls to use INF RegisterDlls
directive.
这篇关于WIX安装程序,用于基于INF的打印机驱动程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!