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

Or,

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]

About these ads
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….

  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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 67 other followers

%d bloggers like this: