Getting the MSIX package tool to install the needed tool drivers to work

%3CLINGO-SUB%20id%3D%22lingo-sub-2044342%22%20slang%3D%22en-US%22%3EGetting%20the%20MSIX%20package%20tool%20to%20install%20the%20needed%20tool%20drivers%20to%20work%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2044342%22%20slang%3D%22en-US%22%3E%3CP%3EI%20am%20trying%20to%20build%20a%20package%20of%20a%20command%20line%20tool%20I%20built.%20Whenever%20I%20choose%20to%20create%20one%20on%20my%20machine%2C%20it%20tells%20me%20it%20is%20unable%20to%20install%20the%20needed%20tool%20drivers%20and%20throw%20an%20exception.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThis%20is%20the%20error%20I%20get%3C%2FP%3E%3CP%3EWe%20encountered%20an%20error%20when%20trying%20to%20install%20your%20driver.%20More%20information%20is%20available%20in%20your%20logs.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20the%20drivers%20downloaded%20but%20they%20are%20not%20installing%20for%20the%20MSIX%20tool%20to%20use%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2044584%22%20slang%3D%22en-US%22%3ERe%3A%20Getting%20the%20MSIX%20package%20tool%20to%20install%20the%20needed%20tool%20drivers%20to%20work%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2044584%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F922649%22%20target%3D%22_blank%22%3E%40rkeil1910%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EDoes%20any%20of%20the%20documentation%20at%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Faka.ms%2Fdriverconsiderations%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Faka.ms%2Fdriverconsiderations%3C%2FA%3E%26nbsp%3Bhelp%20you%3F%3C%2FP%3E%0A%3CP%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3EThe%20logs%20for%20the%20tool%20could%20help%20narrow%20down%20the%20issue.%20The%20error%20prompt%20should%20contain%20a%20link%20to%20the%20log%20folder%2C%20and%20in%20there%20should%20be%20a%20Log.txt%20file.%26nbsp%3BIt%20should%20contain%20the%20exit%20code%20and%20any%20output%20from%20dism.exe%20when%20it%20failed%20to%20install%20the%20driver.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIf%20you%20are%20building%20this%20tool%20yourself%2C%20we%20recommend%20you%20build%20the%20package%20directly%20instead%20of%20converting%20it%20with%20the%20MSIX%20Packaging%20Tool%20from%20another%20installer%2C%20as%20it%20gives%20you%20better%20control%20of%20what%20will%20be%20in%20the%20package.%20For%20example%2C%20you%20can%20use%20a%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fwindows%2Fmsix%2Fdesktop%2Fdesktop-to-uwp-packaging-dot-net%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3EWindows%20Application%20Packaging%20Project%3C%2FA%3E%20in%20Visual%20Studio.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Visitor

I am trying to build a package of a command line tool I built. Whenever I choose to create one on my machine, it tells me it is unable to install the needed tool drivers and throw an exception.

 

This is the error I get

We encountered an error when trying to install your driver. More information is available in your logs.

 

I have the drivers downloaded but they are not installing for the MSIX tool to use

1 Reply

Hi @rkeil1910 

 

Does any of the documentation at https://aka.ms/driverconsiderations help you?

The logs for the tool could help narrow down the issue. The error prompt should contain a link to the log folder, and in there should be a Log.txt file. It should contain the exit code and any output from dism.exe when it failed to install the driver.

 

If you are building this tool yourself, we recommend you build the package directly instead of converting it with the MSIX Packaging Tool from another installer, as it gives you better control of what will be in the package. For example, you can use a Windows Application Packaging Project in Visual Studio.