Add Context Menu Option to Extract / Unpack Files from MSI (Microsoft Installer) Package

A Microsoft Installer (MSI) package contains various files which are extracted and installed in your system once you run the MSI file.

If you don’t want to run MSI file but want to view its content, this tutorial will help you.

This tutorial will help you in adding “Unpack” option to MSI file context menu so that you can extract / unpack MSI package files quickly and easily.

Advertisement

Unpack_Extract_Option_MSI_Context_Menu.png

Once you select “Unpack” option from an MSI file context menu, it’ll extract the MSI package and will put all the files in a new folder with the name “MSI_file_name Content“.

So without wasting time, lets start the tutorial:

1. Type regedit in RUN or Start Menu search box and press Enter. It’ll open Registry Editor.

2. Now go to following key:

HKEY_CURRENT_USER\Software\Classes

3. Under “classes” key, create a new key Msi.Package

Advertisement

4. Under “Msi.Package” key, create a new key shell

5. Under “shell” key, create a new key Unpack

6. Under “Unpack” key, create a new key command

So the final registry path would be:

HKEY_CURRENT_USER\Software\Classes\Msi.Package\shell\Unpack\command

7. Select command key and in right-side pane, change value of default to:

msiexec.exe /a “%1″ /qb TARGETDIR=”%1 Content”

Add_Unpack_Extract_Option_MSI_Context_Menu.png

That’s it. Now you can access the option in MSI file context menu.

PS: If you want a ready-made registry script to do the task automatically, simply download following ZIP file, extract it and run the extracted REG file. It’ll ask for confirmation, accept it:

Download Registry Script

Published in: Windows 7, Windows Vista, Windows XP

About the author: Vishal Gupta (also known as VG) has been awarded with Microsoft MVP (Most Valuable Professional) award. He holds Masters degree in Computer Applications (MCA). He has written several tech articles for popular newspapers and magazines and has also appeared in tech shows on various TV channels.

Comments

NOTE: Older comments have been removed to reduce database overhead.

  1. ^^ Not tried. You can try it. Change msi.package to msu.package but most probably it won’t work.

    @IITManojit
    7-zip can extract msi files but you’ll find difference between both results.

  2. @Doc
    Yeah you could, but this method saves hard disk space and does not require a third party app to run. The download and install of the registry script is both quicker than UE.

  3. Hi VG

    Awesome man… I used to do all this on Command Prompt… You just made it so easier.
    Thanks!

  4. Can you add an icon to this? So at least it looks pretty. 🙂
    Like the take ownership key with the shield icon.

  5. ^^ When you create Unpack key in Step 5, in right-side pane create a new String “HasLUAShield” and leave its value blank.

  6. The difference between using registry method and the 7-zip is; 7-zip extracts all files in the msi file to the same folder. However, if you use registry method, it extacts files to folders where they actually copied during installation. This is a huge difference, at least for me.

Leave a Comment

Your email address will not be published. Required fields are marked *

NOTE: Your comment may not appear immediately. It'll become visible once we approve it.