{"id":1041,"date":"2010-05-03T12:58:21","date_gmt":"2010-05-03T07:28:21","guid":{"rendered":"http:\/\/198.58.113.91\/blog\/?p=1041"},"modified":"2024-06-06T12:01:45","modified_gmt":"2024-06-06T06:31:45","slug":"install-msi-packages-logging-right-click-menu","status":"publish","type":"post","link":"https:\/\/www.winhelponline.com\/blog\/install-msi-packages-logging-right-click-menu\/","title":{"rendered":"Install MSI Packages With Logging via the Right-Click Menu"},"content":{"rendered":"<p><img decoding=\"async\" class=\"alignleft\" src=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/msi-icon.png\" \/>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.<\/p>\n<p>The first two methods are documented in the article <a href=\"https:\/\/learn.microsoft.com\/en-us\/troubleshoot\/windows-client\/application-management\/enable-windows-installer-logging\" target=\"_blank\" rel=\"noopener noreferrer\">How to Enable Windows Installer Logging<\/a>. The third method uses the msiexec.exe command-line parameter. Here is an example:<\/p>\n<pre class=\"cmd\">msiexec \/l*v \"%temp%\\verbose.log\" \/i \"C:\\Users\\Ramesh\\Downloads\\7z465-x64.msi\"<\/pre>\n<p>This starts the 7-Zip .msi installation (7z465-x64.msi) and records all the results, including verbose output, to a log file named <i>verbose.log<\/i> in the %TEMP% folder.<\/p>\n<p>Do you find it difficult to type the entire command-line every time you need to log application setups? You can implement this in the context menu for .msi files to launch the installation with verbose logging.<!--more--><\/p>\n<h2>Add &#8220;Install (with Logging)&#8221; to .MSI\u00a0Context Menu<\/h2>\n<ol>\n<li>Create a folder named &#8220;Log&#8221; on the C: drive &#8212; i.e., <strong>C:\\Log<\/strong>.<\/li>\n<li>Launch the Registry Editor by running <b>regedit.exe<\/b>.<\/li>\n<li>Navigate to the following branch:\n<pre class=\"registry\">HKEY_CLASSES_ROOT\\Msi.Package\\shell\\<\/pre>\n<\/li>\n<li>Create a subkey named <strong>Open2<\/strong>.<\/li>\n<li>Select <b>Open2<\/b>, and set the <b>(default)<\/b> value to <b>Install (with logging)<\/b>.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-75423\" src=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/2010\/05\/msi-verbose-logging-registry-1.png\" alt=\".msi with logging context menu - registry\" width=\"750\" height=\"255\" \/><\/li>\n<li>Under <b>Open2<\/b>, create a subkey named <b>command<\/b>.<\/li>\n<li>Select <strong>command<\/strong>, and set the <strong>(default)<\/strong> value as follows:\n<pre class=\"registry\">msiexec.exe \/l*v \"C:\\Log\\verbose.log\" \/i \"%1\" %*<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-75421\" src=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/2010\/05\/msi-verbose-logging-registry-2.png\" alt=\".msi with logging context menu - registry\" width=\"751\" height=\"255\" \/><\/p>\n<p><i><b>Note:<\/b> The log file path is set as &#8220;C:\\Log\\verbose.log&#8221; in the above example. You may change the output file name and path accordingly if needed. However, ensure that the path exists. That existing log file with the same name will be replaced. If you need to append data to the existing log file, you need to include an additional <a href=\"https:\/\/learn.microsoft.com\/en-us\/windows-server\/administration\/windows-commands\/msiexec\" target=\"_blank\" rel=\"noopener nofollow noreferrer\">command-line switch<\/a>.<\/i><\/li>\n<li>Exit the Registry Editor.<\/li>\n<li>This adds the <b>Install (with logging)<\/b> option to the right-click menu for .msi files.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-75422\" src=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/2010\/05\/msi-verbose-logging-rc-menu.png\" alt=\".msi with logging context menu - registry\" width=\"523\" height=\"235\" \/><\/li>\n<li>Now, right-click on the software package you want to install with logging, and click <b>Install (with logging)<\/b>.This starts the installation with logging. To confirm, you can check the <i>msiexec.exe<\/i> process and its command-line in Task Manager. (<i>Ref: <a href=\"https:\/\/www.winhelponline.com\/blog\/configure-task-manager-to-display-full-path-of-running-processes\/\">Configure Task Manager to display full path of running processes<\/a><\/i>)\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-75420\" src=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/2010\/05\/msi-verbose-logging-taskmgr.png\" alt=\".msi with logging - taskmgr\" width=\"750\" height=\"143\" \/><\/li>\n<li>After the setup completes, open the log file (&#8220;C:\\Logs\\verbose.log&#8221;) to analyze what went wrong during the setup.<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-75419\" src=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/2010\/05\/msi-verbose-logging-log-file.png\" alt=\".msi with logging\" width=\"441\" height=\"113\" \/>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-75418\" src=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/2010\/05\/msi-verbose-logging-log-file-contents.png\" alt=\".msi with logging\" width=\"750\" height=\"250\" \/><\/li>\n<\/ol>\n<div class=\"qt\">If you receive the following error message when clicking on the &#8220;Install (with logging)&#8221; context menu, it means the log file path specified in the registry is missing. To fix the problem, create the folder you mentioned in the registry, i.e., <strong>C:\\Log<\/strong>, in this example.<\/p>\n<pre class=\"err\">Error opening installation log file.  Verify that the specified log file location exists and is writable.<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-75424\" src=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/2010\/05\/msi-verbose-logging-error.png\" alt=\"msi logging error path not found\" width=\"362\" height=\"171\" \/><\/p>\n<\/div>\n<hr \/>\n<h3>Reading a Windows Installer log file<\/h3>\n<p>Analyzing and interpreting a Windows Installer log is another skill. For more information on working with Windows Installer logs, check out the following articles:<\/p>\n<p><a href=\"https:\/\/web.archive.org\/web\/20071229040306\/http:\/\/blogs.technet.com\/richard_macdonald\/archive\/2007\/04\/02\/how-to-interpret-windows-installer-logs.aspx\" target=\"_blank\" rel=\"noopener nofollow noreferrer\">Richard&#8217;s Weblog: How to Interpret Windows Installer Logs<\/a><\/p>\n<p><a href=\"https:\/\/learn.microsoft.com\/en-us\/previous-versions\/windows\/it-pro\/windows-2000-server\/bb742606(v=technet.10)?redirectedfrom=MSDN#EEAA\" target=\"_blank\" rel=\"noopener nofollow noreferrer\">Windows Installer: Reading a Windows Installer log file<\/a>.<\/p>\n<p><a href=\"https:\/\/www.advancedinstaller.com\/user-guide\/qa-read-log.html\" target=\"_blank\" rel=\"noopener nofollow noreferrer\">Windows Installer Log File &#8211; How to read, analyze, and debug it<\/a><\/p>\n<p><a href=\"https:\/\/learn.microsoft.com\/en-us\/windows\/win32\/msi\/wilogutl-exe?redirectedfrom=MSDN\" target=\"_blank\" rel=\"noopener nofollow noreferrer\">Wilogutl.exe &#8211; Win32 apps | Microsoft Learn<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>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. The first two methods are &#8230; <a title=\"Install MSI Packages With Logging via the Right-Click Menu\" class=\"read-more\" href=\"https:\/\/www.winhelponline.com\/blog\/install-msi-packages-logging-right-click-menu\/\" aria-label=\"Read more about Install MSI Packages With Logging via the 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_memberships_contains_paid_content":false,"footnotes":""},"categories":[7],"tags":[441],"class_list":["post-1041","post","type-post","status-publish","format-standard","hentry","category-windows","tag-registry"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":51486,"url":"https:\/\/www.winhelponline.com\/blog\/installation-package-could-not-open-verify-valid\/","url_meta":{"origin":1041,"position":0},"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":1140,"url":"https:\/\/www.winhelponline.com\/blog\/extract-msi-contents-add-extract-all-right-click-menu\/","url_meta":{"origin":1041,"position":1},"title":"Extract Contents of .MSI File and Add &#8220;Extract All&#8221; to Right-Click Menu","author":"Ramesh","date":"January 11, 2011","format":false,"excerpt":"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.\u2026","rel":"","context":"In &quot;Windows&quot;","block_context":{"text":"Windows","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/"},"img":{"alt_text":".msi extract all right-click menu","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2011\/01\/msi-extract-all-menu.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2011\/01\/msi-extract-all-menu.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2011\/01\/msi-extract-all-menu.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2011\/01\/msi-extract-all-menu.png?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":75757,"url":"https:\/\/www.winhelponline.com\/blog\/error-0x80070652-installation-in-progress\/","url_meta":{"origin":1041,"position":2},"title":"Fix: Error 0x80070652 &#8211; Another installation is already in progress","author":"Ramesh","date":"July 1, 2024","format":false,"excerpt":"When you install a software package that uses the Windows Installer technology, the error code 0x80070652 appears. The entire error message is below: Setup Failed 0x80070652 - Another installation is already in progress. Complete that installation before proceeding with this install. This error may occur even though no other installation\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":"installer error 0x80070652 - another installation is already in progress","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2024\/07\/msi-error-0x80070652-1.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2024\/07\/msi-error-0x80070652-1.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2024\/07\/msi-error-0x80070652-1.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":76068,"url":"https:\/\/www.winhelponline.com\/blog\/error-2203-epic-games-launcher\/","url_meta":{"origin":1041,"position":3},"title":"Fix: Error 2203 when installing Epic Games Launcher","author":"Ramesh","date":"July 24, 2024","format":false,"excerpt":"When installing Epic Games Launcher, you may get the following error code: The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2203. RELATED: Error 0x80070660: The Temp folder is full or inaccessible Cause This error code occurs\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":"icacls temp folder permissions","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2024\/07\/temp-folder-permissions.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2024\/07\/temp-folder-permissions.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2024\/07\/temp-folder-permissions.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2024\/07\/temp-folder-permissions.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":1041,"position":4},"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":74682,"url":"https:\/\/www.winhelponline.com\/blog\/0x80070660-temp-folder-full-inaccessible\/","url_meta":{"origin":1041,"position":5},"title":"Error 0x80070660: The Temp folder is full or inaccessible","author":"Ramesh","date":"April 5, 2024","format":false,"excerpt":"When you install software that uses the Microsoft Installer (.msi), the error code 0x80070660 may occur. The following is the entire error message: 0x80070660 - The Temp folder is on a drive that is full or is inaccessible. Free up space on the drive or verify that you have write\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 0x80070660 - he Temp folder is on a drive that is full","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2024\/04\/0x80070660-installer-error.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2024\/04\/0x80070660-installer-error.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2024\/04\/0x80070660-installer-error.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]}],"_links":{"self":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/posts\/1041","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=1041"}],"version-history":[{"count":0,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/posts\/1041\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/media?parent=1041"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/categories?post=1041"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/tags?post=1041"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}