How to install CAB files on Windows IoT Device (Raspberry Pi)

Bech-Hansen, Victor 0 Reputation points
2024-01-31T22:10:19.64+00:00

I am attempting to use a raspberry pi running windows IoT core as the main computer for a portable sensor system. The pi will act as the UI host running a UWP app. One of the sensors that I need to interface with requires a driver. I have the driver files, and I have gone through the steps of using MakeCAB.exe to create a CAB file to upload through the Windows Update Tab.

Here is my issue. When I go to upload, I get an error that reads "Failure reason: Failed to install CAB file as device is in the middle of an update." Please see the picture attached. But when I check the status of my device it just says last update failed, and running the check update again button returns the same result after some time. There is no indication that anything is running. My question is , is there another way to get this CAB file installed, or get the driver files installed? Is there another way to force the windows update when it fails like this? I am wondering if it gets stuck in a loop reporting that it's updating even though it failed. Bottom line is, I don't care about the update, I just need to get these drivers installed. Thank you for your help in advance.

User's image

Windows for IoT
Windows for IoT
A family of Microsoft operating systems designed for use in Internet of Things (IoT) devices.
376 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Q&A Assist
    2024-01-31T22:10:19.6466667+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    To install CAB files on a Windows IoT device such as a Raspberry Pi, you can use the applyupdate command to stage and commit the package. Here are the steps to install the CAB file:

    1. Connect to the device using SSH or PowerShell.
    2. Copy the <filename>.cab file to the device to a directory, for example, C:\OemInstall.
    3. Initiate staging of the package using applyupdate -stage C:\OemInstall\<filename>.cab. Note that this step should be repeated for each package when you have multiple packages to install.
    4. Commit the packages using applyupdate -commit.

    If you encounter an error during the installation process, you can try to force the update by using the Windows Update > CAB Install option in Windows Device Portal. If this does not work, you may need to troubleshoot the update process further.


    References:


  2. Ian Xue (Shanghai Wicresoft Co., Ltd.) 27,266 Reputation points Microsoft Vendor
    2024-02-02T05:58:05.71+00:00

    Hi Bech, Thanks for your post. Basically, it is suggested that we resolve this issue step by step, which means installing updates and then import CAB. If the Check for update do help, you can follow the guide to install the updates offline using the Windows Update Catalog. You can locate to the Update history and see which KB number fails to be installed and type the number on the website. Here is the guide and for your reference. https://learn.microsoft.com/en-us/troubleshoot/windows-client/deployment/download-updates-drivers-hotfixes-windows-update-catalog Best Regards,

    Ian Xue


    If the Answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.