7-Zip is a popular open-source file archiver that can compress and decompress various formats, such as ZIP, RAR, TAR, GZIP, 7z, and more. It also has a powerful command-line interface that can be used for scripting and automation.
If you want to install 7-Zip on your Windows computer, you have two options: you can download the executable file (.exe) or the Windows Installer package (.msi). The executable file is easier to install, but the Windows Installer package has some advantages, such as:
It can be deployed and managed by Group Policy or other software distribution tools.
It can be customized with command-line parameters or transforms.
It can be repaired or uninstalled by Windows Installer service.
It can be verified by its product code, which is a unique identifier for each Windows Installer package.
In this article, we will show you how to download and install 7-Zip with MSI product code, and how to find the product code of an installed MSI package.
How to Download 7-Zip MSI Package
To download 7-Zip MSI package, you can visit the official website and choose the version that matches your system architecture (32-bit or 64-bit). You can also find alternative download links from different sources on the web. However, we cannot guarantee the safety or authenticity of these links.
For example, to download 7-Zip 22.01 (2022-07-15) for 64-bit Windows x64, you can use the following link:
Size: 2.3 MB
Download: SourceForge Link
How to Install 7-Zip with MSI Product Code
To install 7-Zip with MSI product code, you can use the Windows Installer command-line tool (msiexec.exe) with the /i option and the path to the MSI package. You can also specify additional parameters to customize the installation, such as /qn for silent mode, /norestart for preventing restarts, or /log for creating a log file.
For example, to install 7-Zip 22.01 (2022-07-15) for 64-bit Windows x64 in silent mode without restarts and with a log file named install.log in the current folder, you can use the following command:
You can find more information about the Windows Installer command-line options here.
How to Find the Product Code of an Installed MSI Package
The product code of an installed MSI package is a string GUID that contains numbers and uppercase letters. It is stored in the registry under one of the following keys, depending on the installation context and system architecture:
You can use the registry editor (regedit.exe) to browse these keys and find the subkey that corresponds to your MSI package. The subkey name is the product code of the MSI package. You can also find other information about the MSI package in the subkey values, such as DisplayName, DisplayVersion, InstallLocation, etc.
Alternatively, you can use PowerShell or VBScript to query the Win32_Product class of Windows Management Instrumentation (WMI) and retrieve the product code of an installed MSI package by its name. For example, to find the product code of 7-Zip 22.01 (2022-07-15) for 64-bit Windows x64 using PowerShell, you can use the following command: