WIX installer for INF-based printer driver

I am trying to make an installer for a printer driver using WIX

I have

  • some dlls
  • a * .cat file
  • a * .gdp file
  • * .inf file

I was thinking about using INF to deploy the driver, but I don't know how to implement it.

I sow this question too (maybe duplicates) but as a beginner I could not fully understand how to do this.

I need to copy these DLLs and other files to the appropriate folders myself and write the registry. Or is this their easy way to use the INF file to complete a task using the WIX engine? if so, can someone teach me the steps that I should follow?


I tried copying all the 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 the following command

candle -ext WixDifxAppExtension SielDrivers.wxs
light -ext WixUIExtension -ext WixDifxAppExtension SielDrivers.wixobj difxapp_x64.wixlib -o Setup.msi

, " ", " " .

?

+6
1

setupapi.dev.log setupapi.app.log.
.
% SystemRoot%\inf.
https://docs.microsoft.com/en-us/windows-hardware/drivers/install/setupapi-device-installation-log-entries


" " " "?
, .
Dlls, INF CopyFiles, Dll INF RegisterDlls.

+1

All Articles