Notices: This section not yet converted to new layout. Download stats are rolling back out.

This is not the latest version of 7-Zip (Install) available.

7-Zip (Install)

9.38

Package test results are passing.

This package is likely a meta/virtual (*) or an installer (*.install) or portable (*.portable) application package.
  • Meta/virtual (*) - has a dependency on the *.install or the *.portable package - it is provided for discoverability and for other packages to take a dependency on.
  • Portable (*.portable/*.commandline (deprecated naming convention)/*.tool (deprecated naming convention)) - usually zips or archives that require no administrative access to install.
  • Install (*.install/*.app (deprecated naming convention)) - uses native installers, usually requires administrative access to install.
Learn more about chocolatey's distinction of installed versus portable apps and/or learn about this kind of package.

This package was approved by moderator gep13 on 6/1/2015.

7-Zip is a file archiver with a high compression ratio.

NOTE: The installer for 7-Zip is known to close the explorer process.

This means you may lose current work. If it doesn't automatically restart explorer, type explorer on the command shell to restart it.

To install 7-Zip (Install), run the following command from the command line or from PowerShell:

C:\> choco install 7zip.install --version 9.38

To upgrade 7-Zip (Install), run the following command from the command line or from PowerShell:

C:\> choco upgrade 7zip.install --version 9.38

Files

Hide
  • tools\chocolateyInstall.ps1 Show
    Function Get-ExplorerProcessCount
    {
      $process = Get-Process explorer -ErrorAction SilentlyContinue
      $processCount = ($process | Measure-Object).Count
      return $processCount
    }
    
    $initialProcessCount = Get-ExplorerProcessCount
    
    Write-Warning "This installer is known to close the explorer process. This means `nyou may lose current work. `nIf it doesn't automatically restart explorer, type 'explorer' on the `ncommand shell to restart it."
    
    
    $packageId = '7zip.install'
    $url = 'http://www.7-zip.org/a/7z938.msi'
    $url64 = 'http://www.7-zip.org/a/7z938-x64.msi'
    
    Install-ChocolateyPackage $packageId 'msi' '/quiet' $url $url64
    
    $finalProcessCount = Get-ExplorerProcessCount
    
    if($initialProcessCount -lt $finalProcessCount)
    {
      Start-Process explorer.exe
    }
    
  • tools\chocolateyUninstall.ps1 Show
    $ErrorActionPreference = 'Stop';
    
    $packageName = '{23170F69-40C1-2702-0938-000001000000}'
    $registryUninstallerKeyName = '{23170F69-40C1-2702-0938-000001000000}'
    $msiProductCodeGuid = '{23170F69-40C1-2702-0938-000001000000}'
    $shouldUninstall = $true
    
    $local_key     = "HKCU:\Software\Microsoft\Windows\CurrentVersion\Uninstall\$registryUninstallerKeyName"
    # local key 6432 probably never exists
    $local_key6432   = "HKCU:\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\$registryUninstallerKeyName"
    $machine_key   = "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$registryUninstallerKeyName"
    $machine_key6432 = "HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\$registryUninstallerKeyName"
    
    $file = @($local_key, $local_key6432, $machine_key, $machine_key6432) `
        | ?{ Test-Path $_ } `
        | Get-ItemProperty `
        | Select-Object -ExpandProperty UninstallString
    
    if ($file -eq $null -or $file -eq '') {
        Write-Host "$packageName has already been uninstalled by other means."
        $shouldUninstall = $false
    }
    
    # The below is somewhat naive and built for MSI installers
    $installerType = 'MSI'
    # The Product Code GUID is all that should be passed for MSI, and very FIRST,
    # because it comes directly after /x, which is already set in the
    # Uninstall-ChocolateyPackage msiargs (facepalm).
    $silentArgs = "$msiProductCodeGuid /qn /norestart"
    # https://msdn.microsoft.com/en-us/library/aa376931(v=vs.85).aspx
    $validExitCodes = @(0, 3010, 1614, 1641)
    # Don't pass anything for file, it is ignored for msi (facepalm number 2)
    # Alternatively if you need to pass a path to an msi, determine that and use
    # it instead of $msiProductCodeGuid in silentArgs, still very first
    $file = ''
    
    if ($shouldUninstall) {
     Uninstall-ChocolateyPackage -PackageName $packageName -FileType $installerType -SilentArgs $silentArgs -validExitCodes $validExitCodes -File $file
    }
    

Virus Scan Results

In cases where actual malware is found, the packages are subject to removal. Software sometimes has false positives. Moderators do not necessarily validate the safety of the underlying software, only that a package retrieves software from the official distribution point and/or validate embedded software against official distribution point (where distribution rights allow redistribution).

Chocolatey Pro provides runtime protection from possible malware.

Dependencies

This package has no dependencies.

Package Maintainer(s)

Software Author(s)

  • Igor Pavlov

Tags

Version History

Version Downloads Last updated Status
7-Zip (Install) 18.5.0.20180730 878264 Monday, July 30, 2018 approved
7-Zip (Install) 18.5 501981 Tuesday, May 1, 2018 approved
7-Zip (Install) 18.3-beta 790 Monday, March 5, 2018 approved
7-Zip (Install) 18.2-beta 279 Saturday, March 3, 2018 approved
7-Zip (Install) 18.1 494539 Monday, January 29, 2018 approved
7-Zip (Install) 18.0-beta 272 Wednesday, January 24, 2018 approved
7-Zip (Install) 16.4.0.20170506 932149 Saturday, May 6, 2017 approved
7-Zip (Install) 16.4.0.20170420 72735 Thursday, April 20, 2017 approved
Show More

Discussion for the 7-Zip (Install) Package

Ground rules:

  • This discussion is only about 7-Zip (Install) and the 7-Zip (Install) package. If you have feedback for Chocolatey, please contact the google group.
  • This discussion will carry over multiple versions. If you have a comment about a particular version, please note that in your comments.
  • The maintainers of this Chocolatey Package will be notified about new comments that are posted to this Disqus thread, however, it is NOT a guarantee that you will get a response. If you do not hear back from the maintainers after posting a message below, please follow up by using the link on the left side of this page or follow this link to contact maintainers. If you still hear nothing back, please follow the package triage process.
  • Tell us what you love about the package or 7-Zip (Install), or tell us what needs improvement.
  • Share your experiences with the package, or extra configuration or gotchas that you've found.
  • If you use a url, the comment will be flagged for moderation until you've been whitelisted. Disqus moderated comments are approved on a weekly schedule if not sooner. It could take between 1-5 days for your comment to show up.

comments powered by Disqus
Chocolatey.org uses cookies to enhance the user experience of the site.
Ok