Home > Smart Tip, Windows > How to Install .CAB File on Windows

How to Install .CAB File on Windows

Scenario : You downloaded a file that you required urgently but its format is .cab. What do you do with it ??

Solution : You know what to do when the files are .exe executable or .msi Windows installer file format, but what the hell do you do with .cab ??

The .cab Cabinet file is a compressed archive that cannot be ran or executed directly. However, Windows has built-in support to open and view .cab archive content, but not outright install the .cab even if it’s part of an update or hotfix. In order to install a manually downloaded .cab file, use the following trick that makes use of pkgmgr.exe (Windows Package Manager) instead.

Open an elevated privileges command prompt as administrator, and run the following command to install and integrate the Cabinet archive:

pkgmgr /ip /m:<path><file name>.cab /quiet


start /wait pkgmgr /ip /m:<path><file name>.cab /quiet

Replace <path> with the path (location) to the .cab file, and <file name> with the actual file name of the .cab file, without parenthesis. If the Cabinet file is located on the current directory (same directory where command is ran, the path can be skipped.

A complete list of the commands that can be used with pkgmgr is shown below (for the power users) :

Tip: If you intend to save an installation log, append the /l:<path><file name>.log to the end of the command. Again, replace <path><file name>.cab with the file name of log file to save to with its folder location (path). Also if you do not want to restart at the end of installation, use the switch  /norestart

If you are unable to use the command, then it might be because you are missing the Package Manager(pkgmgr.exe in Win/System32) file, in that case, i’m attaching the file here. Use it well!!!! 🙂

[Download PkgMgr.exe] [Password is Obin]

Categories: Smart Tip, Windows
  1. Nejisa
    February 17, 2012 at 10:57 am

    Hi. Well, it has been a while since you posted the article, but im going to ask anyways. I tried just what you said but i got an error:

    Error 0×80070057: The parameter is incorrect.

    I have searched a little on the web but i cannot find a correct way to fix it. If you have any idea i will be really thankfull, really~~

    • February 18, 2012 at 12:34 pm

      can you give me a bit more details regarding what command you typed in the command promptand where your cab file is located. also are you sure that the pkmgr.exe file is present or not ??

      • Nejisa
        March 1, 2012 at 2:32 am

        Im totally sure the pkmgr.exe is present and i writed just as you said:

        pkgmgr /ip /m:.cab /quiet

        later i tried the other one and i got a “this command is not for doing that” message or something like that. Thanks again for your help~

        • March 1, 2012 at 9:48 pm

          hey nejisa…you have written the command correctly but you have not written the name of the cab file….the command you should write is :
          pkgmgr /ip /m:the name of cab file.cab /quiet
          comment back if you need more help….

    • Kartik
      January 8, 2013 at 7:38 pm

      you must have not done proper spacing
      note there is spacing in the commands
      I also had the same problem, spacing did the job for me

      • January 8, 2013 at 10:45 pm

        if you look at the code, you can see that i have and if not, then clarify where the issue is…

  2. Nejisa
    March 8, 2012 at 11:05 pm

    Obin :

    hey nejisa…you have written the command correctly but you have not written the name of the cab file….the command you should write is :
    pkgmgr /ip /m:the name of cab file.cab /quiet
    comment back if you need more help….

    I know what you mean. What I mean is that i wrote everything correctly, with the name, the location/folder etc, but still the pc gives me that message.

    I don´t know what to do 😦

    Thanks again for your help~

    • March 8, 2012 at 11:54 pm

      could you just run the command using the file i have shared here and tell me whether the error comes, and if it comes, what exactly it is….i will be able to help you better then….

      • Nejisa
        March 9, 2012 at 8:29 am

        And where is the thing you shared? O_O

  3. Nejisa
    March 10, 2012 at 8:00 am

    Obin :

    Oh….the link does not work….here…..uploaded it to dropbox : http://dl.dropbox.com/u/56771153/PkgMgr.exe
    Also…will you be able to tell me what file you are trying to extract ??

    Well the pkgmgr file i already have it. And i was trying to install a game. A readme.txt file says that it can be installed in windows 7 but i have tried everything i could find and i didn´t get it to work. Anyways, i think i just give up, ahahaha.

  4. Tom
    May 7, 2012 at 8:36 pm

    Hi all, not sure if I have the format correct but I am gettin gan error returning tellin gme that the parameter is incorrect. So here you go:

    start /w pkgmgr /ip /m:C:\users\tom\downloads\aoc

  5. gautam
    September 14, 2013 at 2:49 pm

    this trick is not work….

  6. 2
    August 28, 2014 at 9:22 pm

    pkgmgr /ip /m:”C:\sdsdfbsd\file name with spaces\drvgf.cab” /quiet

  7. ze
    January 19, 2015 at 3:04 pm

    does not work……

  8. February 10, 2015 at 1:54 am

    I had the same issue, where I needed to deploy a plug in for a data discovery site. Instead of a MSI or EXE file, it was a CAB file. By opening to cab file , there were just a bunch of DLLs all I have to do was register the DLL (regsvr32….). PKGMGR did not do it for me either.

  9. April 22, 2015 at 10:49 pm

    Does anyone have a solution for the “parameter is incorrect” error?

  10. Darrell
    November 20, 2015 at 12:38 am

    copy the file to the root directory, then enter: pkgmgr /ip /m:.cab

    Although I must say, I tried that and still am getting:
    Operation failed with 0x80070002
    The system cannot find the file specified

    Even though the file is right there plain as day. In my case AMD64.cab. So I use:
    C:\>pkgmgr /ip /m:AMD64.cab, and
    C:\>pkgmgr /ip /m:\AMD64.cab, and
    C:\>pkgmgr /ip /m:”\AMD64.cab”, and
    C:\>pkgmgr /ip /m:”C:\AMD64.cab”

    And still getting “cannot find the file specified”.

    • Juslisnen
      December 3, 2015 at 6:20 pm

      Microsoft may have wrapped the .msp inside a .cab. Try using 7zip to unpack the cab file and try again

  11. April 28, 2016 at 4:59 am

    Impressive, but given the ‘fumble factor’ and all that, no need for all the ‘rocket science’.

    Just extract the CAB to a folder with 7-zip, select ‘Update Driver > Browse My Computer’, browse to the folder you extracted the .CAB to, click ‘Next’, and watch the magic…

  12. Kingoftheoffice
    May 27, 2016 at 4:56 pm

    incorrect parameter is /noreboot should have been /norestart


    • May 28, 2016 at 1:07 am

      where did you see – /noreboot ??

  13. Tyger
    April 7, 2017 at 5:31 am

    i have a question here.

    It changes the working directory for update.Will it impact System?

    If we delete Temp all those updates will be deleted

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: