How to extract .cab file and install .msp file through powershell.

D Vijayakumar VLR 126 Reputation points
2022-02-15T05:17:55.777+00:00

Hi All,

I have few .cab file if we click it shows one setup file that file extension is .MSP it means ms office 2010, 2013, 2016 related, so i want to extrat that cab file and install that extracted file it means .msp file through powershell script.

Windows Server 2012
Windows Server 2012
A Microsoft server operating system that supports enterprise-level management, data storage, applications, and communications.
1,532 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,381 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Limitless Technology 39,371 Reputation points
    2022-02-16T09:58:02.61+00:00

    Hello @D Vijayakumar VLR

    you can use the msiexec command to install this MSP files. From Powershell would looks :

    Start-Process msiexec -ArgumentList '/p yourpatchfile.msp /qn'

    You can see other parameters for msiexec at: https://learn.microsoft.com/en-us/windows/win32/msi/command-line-options

    Hope this helps with your query,

    --
    --If the reply is helpful, please Upvote and Accept as answer--


  2. 2022-08-17T11:51:48.387+00:00

    Hello, I am also looking for a solution to extract .exe or msi from cabinet file and save it one place so that I can use these to install