{"id":1140,"date":"2011-01-11T15:39:45","date_gmt":"2011-01-11T10:09:45","guid":{"rendered":"http:\/\/198.58.113.91\/blog\/?p=1140"},"modified":"2021-05-29T09:43:27","modified_gmt":"2021-05-29T04:13:27","slug":"extract-msi-contents-add-extract-all-right-click-menu","status":"publish","type":"post","link":"https:\/\/www.winhelponline.com\/blog\/extract-msi-contents-add-extract-all-right-click-menu\/","title":{"rendered":"Extract Contents of .MSI File and Add &#8220;Extract All&#8221; to Right-Click Menu"},"content":{"rendered":"<p>There are situations when you need to pick a single file from a .msi package without going through the installation phase. One good example is that a stand-alone or portable application wrapped in a .msi package. Or, you may need to extract a particular wallpaper image from a theme installer.<\/p>\n<p>In that case, you can avoid running the setup and extract the contents of the .msi package manually. Thus there won&#8217;t be a need for a System Restore point, the addition of several registry keys, and a few temporary directories (which would be the case if you run the setup).<\/p>\n<p>No third-party tools are needed; you can do this using the Windows Installer executable <code>msiexec.exe<\/code> command-line.<!--more--><\/p>\n<h2>How to Extract the Contents of an .MSI File<\/h2>\n<p>I&#8217;ve got the ChristmasTheme .msi package downloaded from the Microsoft site and would like to extract the background wallpaper from the package.<\/p>\n<p>To extract the package, use the following command-line example from the Run dialog or Command Prompt:<\/p>\n<pre>msiexec \/a \"d:\\downloads\\ChristmasTheme.msi\" \/qb TARGETDIR=\"d:\\downloads\\theme files\"<\/pre>\n<p>And here it is!<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-24169\" src=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/2011\/01\/extract-msi-file-msiexec-cmd.png\" alt=\"extract msi file contents command-line\" width=\"700\" height=\"401\" \/><\/p>\n<p>And the wallpaper image I was looking for is this, located under the <b>Web\\Wallpaper<\/b> folder.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-24173\" src=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/2011\/01\/bg_christmas-theme.jpg\" alt=\"chrismas theme wallpaper\" width=\"600\" height=\"480\" \/><\/p>\n<p>To extract .msi file contents even easier, you can implement the command to your right-click context menu.<\/p>\n<h3>Adding &#8220;Extract All&#8221; Right-Click Option for .MSI Files<\/h3>\n<p>Download <a href=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/archived\/msi-extract-all-menu.zip\">msi-extract-all-menu.zip<\/a>, unzip and run the REG file included in the archive. This adds the &#8220;Extract All&#8221; option to the right-click menu for .msi files.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-24174\" src=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/2011\/01\/msi-extract-all-menu.png\" alt=\".msi extract all right-click menu\" width=\"719\" height=\"230\" \/><\/p>\n<p>Clicking &#8220;Extract All&#8221; is all you need to do. It runs the msiexec.exe command-line in the background. The package contents will be extracted to a folder with the same name as the source file, appended by the word &#8220;Files&#8221; &#8212; e.g., &#8220;ChristmasTheme.msi Files&#8221;<\/p>\n<hr \/>\n<h3>Third-party tools to extract .MSI file contents<\/h3>\n<h4>7-Zip<\/h4>\n<p>You can use 7-Zip, PeaZip, WinRar, or any other archive utility to view and extract the contents of .msi files.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-24170\" src=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/2011\/01\/7-zip-extract-msi-file.png\" alt=\"extract msi file contents command-line\" width=\"684\" height=\"433\" \/><\/p>\n<h4>LessMSI<\/h4>\n<p>LessMSI is another utility that can open and extract the contents of .msi files.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-24171\" src=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/2011\/01\/extract-msi-file-lessmsi.png\" alt=\"extract msi file contents command-line - lessmsi\" width=\"466\" height=\"544\" \/><\/p>\n<p>LessMSI also comes with a command-line tool (lessmsi.exe is CLI and lessmsi_gui.exe is the GUI version.)<\/p>\n<p><strong>LessMSI &#8211; Command-line example:<\/strong><\/p>\n<pre>lessmsi x d:\\downloads\\ChristmasTheme.msi d:\\downloads\\theme\\<\/pre>\n<p>The above command extracts the .msi file contents to the &#8220;d:\\downloads\\theme\\&#8221; directory.<\/p>\n<p><em>(However, if you need to extract via command-line, msiexec.exe will do the job for you, anyway. You don&#8217;t need LessMSI CLI for that purpose.)<\/em><\/p>\n<p>You can download LessMSI from <a href=\"https:\/\/github.com\/activescott\/lessmsi\/releases\/tag\/v1.8.1\" target=\"_blank\" rel=\"noopener nofollow\">GitHub<\/a>. The product&#8217;s home page is <code>https:\/\/lessmsi.activescott.com\/<\/code><\/p>\n<h4>UniExtract 2<\/h4>\n<p><a href=\"https:\/\/github.com\/Bioruebe\/UniExtract2\" target=\"_blank\" rel=\"noopener nofollow\">UniExtract2<\/a> or &#8220;Universal Extractor 2&#8221; is a tool to extract files from any type of archive or installer.:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-24175\" src=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/2011\/01\/uniextract-2.png\" alt=\".msi uniextract 2\" width=\"344\" height=\"189\" \/><\/p>\n<p>This tool is only a front-end that uses CLI binaries of different programs like 7-Zip, LesMSI, ARC, etc. The binaries are stored in the <code>UniExtract\\bin<\/code> folder.<\/p>\n<p><em>(Last reviewed on May 29, 2021. The instructions apply to all versions of Windows, including Windows 10)<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>There are situations when you need to pick a single file from a .msi package without going through the installation phase. One good example is that a stand-alone or portable application wrapped in a .msi package. Or, you may need to extract a particular wallpaper image from a theme installer. In that case, you can &#8230; <a title=\"Extract Contents of .MSI File and Add &#8220;Extract All&#8221; to Right-Click Menu\" class=\"read-more\" href=\"https:\/\/www.winhelponline.com\/blog\/extract-msi-contents-add-extract-all-right-click-menu\/\" aria-label=\"Read more about Extract Contents of .MSI File and Add &#8220;Extract All&#8221; to Right-Click Menu\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[7],"tags":[441],"class_list":["post-1140","post","type-post","status-publish","format-standard","hentry","category-windows","tag-registry"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":1041,"url":"https:\/\/www.winhelponline.com\/blog\/install-msi-packages-logging-right-click-menu\/","url_meta":{"origin":1140,"position":0},"title":"Install MSI Packages With Logging via the Right-Click Menu","author":"Ramesh","date":"May 3, 2010","format":false,"excerpt":"When a software installation that uses the Windows Installer Package fails, you enable Windows Installer logging and re-run the setup to capture the output to a log file for troubleshooting. Logging can be done using the Registry Editor, the Group Policy Editor, or the msiexec.exe command with the required parameters.\u2026","rel":"","context":"In &quot;Windows&quot;","block_context":{"text":"Windows","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/"},"img":{"alt_text":".msi with logging context menu - registry","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2010\/05\/msi-verbose-logging-registry-1.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2010\/05\/msi-verbose-logging-registry-1.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2010\/05\/msi-verbose-logging-registry-1.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2010\/05\/msi-verbose-logging-registry-1.png?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":8697,"url":"https:\/\/www.winhelponline.com\/blog\/windows-installer-folder-safe-cleanup-free-disk-space\/","url_meta":{"origin":1140,"position":1},"title":"How to Clean Up the Windows Installer Cache Folder","author":"Ramesh","date":"April 17, 2019","format":false,"excerpt":"When you install a program in Windows, the program's .msi or .msu setup package gets copied to the C:\\Windows\\Installer folder. The Installer folder is a protected folder with System & Hidden attributes and is found under your Windows folder. What is the Windows Installer folder? The Installer directory is intended\u2026","rel":"","context":"In &quot;Utilities&quot;","block_context":{"text":"Utilities","link":"https:\/\/www.winhelponline.com\/blog\/category\/utilities\/"},"img":{"alt_text":"uninstall program failed missing .msi installer","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2019\/04\/uninstall-failed-1.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2019\/04\/uninstall-failed-1.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2019\/04\/uninstall-failed-1.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2019\/04\/uninstall-failed-1.png?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":51486,"url":"https:\/\/www.winhelponline.com\/blog\/installation-package-could-not-open-verify-valid\/","url_meta":{"origin":1140,"position":2},"title":"Installation package could not be opened; verify if this is a valid package","author":"Ramesh","date":"June 4, 2023","format":false,"excerpt":"When you try to install a program by running the .msi package, the following error may occur: This installation package could not be opened. Verify that the package exists and that you can access it, or contact the application vendor to verify that this is a valid Windows Installer package.\u2026","rel":"","context":"In &quot;Windows 10&quot;","block_context":{"text":"Windows 10","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/windows-10\/"},"img":{"alt_text":"error windows installer package invalid - folder invalid character","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2023\/06\/msi-package-invalid-error-2.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2023\/06\/msi-package-invalid-error-2.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2023\/06\/msi-package-invalid-error-2.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2023\/06\/msi-package-invalid-error-2.png?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":60098,"url":"https:\/\/www.winhelponline.com\/blog\/vc-redist-error-0x80070661\/","url_meta":{"origin":1140,"position":3},"title":"Microsoft VC++ Redistributable Error 0x80070661","author":"Ramesh","date":"August 6, 2023","format":false,"excerpt":"When you run the Microsoft Visual C++ redistributable setup, the error code 0x80070661 may occur: Microsoft Visual C++ 2022 Redistributable (Arm64) Setup Failed One or more issues caused the setup to fail. Please fix the issues and then retry setup. For more informatin see the log file. 0x80070661 - This\u2026","rel":"","context":"In &quot;Windows&quot;","block_context":{"text":"Windows","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/"},"img":{"alt_text":"vc redist ARM version error","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2023\/08\/vc-redist-arm-version-error.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":9810,"url":"https:\/\/www.winhelponline.com\/blog\/word-docx-doc-files-show-generic-white-icon\/","url_meta":{"origin":1140,"position":4},"title":".Docx\/Doc Files Not Showing Word Icon but Only White Plain Icon","author":"Ramesh","date":"June 16, 2019","format":false,"excerpt":"Many users have reported that the Word icons are not showing up for .docx and .doc files on their systems. Instead, they show up with a generic (unknown) or plain white icon even though the files open in Word when double-clicked (i.e., the file association settings are intact.) Cause Blank\u2026","rel":"","context":"In &quot;Office&quot;","block_context":{"text":"Office","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/office\/"},"img":{"alt_text":"word .docx and .doc files show generic white icon - repair office","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2019\/06\/office-repair.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":31636,"url":"https:\/\/www.winhelponline.com\/blog\/remote-desktop-service-error-126-module-not-found\/","url_meta":{"origin":1140,"position":5},"title":"Remote Desktop Service Error 126 Module not found","author":"Ramesh","date":"January 9, 2023","format":false,"excerpt":"When you attempt to start the Remote Desktop Services (\"TermService\") service, Error 126 may occur. Here's the complete error message: Windows could not start the Remote Desktop Services service on Local Computer. Error 126: The specified module could not be found. Cause The error occurs if the file termsrv.dll is\u2026","rel":"","context":"In &quot;Windows 10&quot;","block_context":{"text":"Windows 10","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/windows-10\/"},"img":{"alt_text":"rdp wrapper clean uninstall using diagcab","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2023\/01\/rdpwrap-uninstall-diagcab-2.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2023\/01\/rdpwrap-uninstall-diagcab-2.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2023\/01\/rdpwrap-uninstall-diagcab-2.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]}],"_links":{"self":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/posts\/1140","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/comments?post=1140"}],"version-history":[{"count":0,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/posts\/1140\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/media?parent=1140"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/categories?post=1140"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/tags?post=1140"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}