WiX silent install unable to launch built in .EXE: WiX v3
Solution 1:
Faulty Configuration: This line would never run - regardless of silent or interactive mode:
<Custom Action="SilentExecExample" After="TheActionYouWantItAfter"/>
The After attribute must specify a valid StandardAction or CustomAction name.
Silent Mode Failure: The line below will fail in silent mode because you run it after InstallFinalize
. In this case it will not run with elevation (unless you launch the setup from an elevated cmd.exe
prompt) and the setup can therefore not complete (the setup runs elevated only between InstallInitialize
and InstallFinalize
in the InstallExecuteSequence
):
<Custom Action="LaunchFile" After="InstallFinalize">NOT Installed</Custom>
There are a few more things you should know. Please read the below.
Windows Update Distribution: For the record, it appears Microsoft wants driver distribution to happen via Windows Update in the future, or at least via a standalone package without the need for an installer.
As of Windows 10, Version 1607:
-
DIFx tools are no longer included in the WDK (Windows Driver Kit).
- Some important tidbits if you choose to use DIFx anyway.
-
Windows Hardware Dev Center dashboard is now available for "hardware tasks":
Hardware certification
Collaborative driver development
-
Driver distribution through Windows Update
Driver Element: WiX currently has the Driver Element for driver installation. It uses the DIFx framework under the hood - as far as I know. A small, practical example found on github.com. I have never used this feature. FireGiant's WiX Expansion Pack features more advanced driver installation support. Never tried by me.
DPInst.exe: I am not familiar with INF_INSTALLER.exe
- is that a proprietary component you have created? It is also possible to install signed drivers using the DPInst.exe
tool from the DIFx framework. It can be called via custom actions inside an MSI or it can probably be run directly from Burn (WiX Bundle - in other words not part of an MSI). A fairly short example found on github.com.
A Little Tip: Searching for "DPInst.exe http://schemas.microsoft.com/wix/2006/wi"
will yield heaps of hits. You can use this github search technique to find help with pretty much anything in my experience. Be critical though, and I would use the time saved to do extra testing. Just my 2 cents.
Some Links:
- Roadmap for Device and Driver Installation
- Distributing a driver package
- Can't seem to get Wix to install driver
- How do I install drivers using Burn and DPInst after MSI installation?
- https://github.com/trondr/DpInstExitCode2ExitCode
Driver installation github