Chocolatey Community Coffee Break

Join the Chocolatey Team on our regular monthly stream where we discuss all things Community, what we do, how you can get involved and answer your Chocolatey questions.

Learn More

Chocolatey Product Spotlight

Join the Chocolatey Team on our regular monthly stream where we put a spotlight on the most recent Chocolatey product releases. You'll have a chance to have your questions answered in a live Ask Me Anything format.

Learn More

Announcing Chocolatey Central Management 0.10.0

Livestream from
Thursday, 06 October 2022

We recently released our largest update to Chocolatey Central Management so far. Join Gary and Steph to find out more about Chocolatey Central Management and the new features and fixes we've added to this release.

Watch On-Demand
Chocolatey and Intune Overview

Webinar Replay from
Wednesday, 30 March 2022

At Chocolatey Software we strive for simple, and teaching others. Let us teach you just how simple it could be to keep your 3rd party applications updated across your devices, all with Intune!

Watch On-Demand
Chocolatey For Business. In Azure. In One Click.

Livestream from
Thursday, 9 June 2022

Join James and Josh to show you how you can get the Chocolatey For Business recommended infrastructure and workflow, created, in Azure, in around 20 minutes.

Watch On-Demand
The Future of Chocolatey CLI

Livestream from
Thursday, 04 August 2022

Join Paul and Gary to hear more about the plans for the Chocolatey CLI in the not so distant future. We'll talk about some cool new features, long term asks from Customers and Community and how you can get involved!

Watch On-Demand
Hacktoberfest Tuesdays 2022

Livestreams from
October 2022

For Hacktoberfest, Chocolatey ran a livestream every Tuesday! Re-watch Cory, James, Gary, and Rain as they share knowledge on how to contribute to open-source projects such as Chocolatey CLI.

Watch On-Demand
Chocolatey Product Spotlight: Chocolatey 1.2.0 and Chocolatey Licensed Extension 5.0.0

Livestream from
Thursday, 03 November 2022

Join Paul and Gary for this months Chocolatey product livestream where we look at the latest release of Chocolatey 1.2.0, Chocolatey Licensed Extension 5.0.0 and shine a spotlight on the new hook scripts functionality. This opens up so many possibilities for Chocolatey CLI users!

Watch On-Demand
Chocolatey Coding Livestream

Livestream from
Tuesday, 29 November 2022

Join Josh as he adds the ability to manage Chocolatey GUI config and features with the Chocolatey Ansible Collection.

Watch On-Demand
Introduction into Chocolatey with Veeam

Webinar from
Tuesday, 13 December 2022

Join Gary, Paul, and Maurice as they introduce and demonstrate how to use Chocolatey! Questions will be answered live in an Ask Me Anything format.

Watch On-Demand

Downloads:

6,193,854

Downloads of v 6.20:

93,538

Last Update:

23 Jan 2023

Package Maintainer(s):

Software Author(s):

  • win.rar GmbH

Tags:

trial rar compression archive nagware admin

WinRAR

  • 1
  • 2
  • 3

6.20 | Updated: 23 Jan 2023

Downloads:

6,193,854

Downloads of v 6.20:

93,538

Software Author(s):

  • win.rar GmbH

WinRAR 6.20

  • 1
  • 2
  • 3

Some Checks Have Failed or Are Not Yet Complete

Not All Tests Have Passed


Validation Testing Passed


Verification Testing Passed

Details

Scan Testing Resulted in Flagged as a Note:

At least one file within this package has greater than 0 detections, but less than 5

Details
Learn More

Deployment Method: Individual Install, Upgrade, & Uninstall

To install WinRAR, run the following command from the command line or from PowerShell:

>

To upgrade WinRAR, run the following command from the command line or from PowerShell:

>

To uninstall WinRAR, run the following command from the command line or from PowerShell:

>

Deployment Method:

NOTE

This applies to both open source and commercial editions of Chocolatey.

1. Enter Your Internal Repository Url

(this should look similar to https://community.chocolatey.org/api/v2/)


2. Setup Your Environment

1. Ensure you are set for organizational deployment

Please see the organizational deployment guide

2. Get the package into your environment

  • Open Source or Commercial:
    • Proxy Repository - Create a proxy nuget repository on Nexus, Artifactory Pro, or a proxy Chocolatey repository on ProGet. Point your upstream to https://community.chocolatey.org/api/v2/. Packages cache on first access automatically. Make sure your choco clients are using your proxy repository as a source and NOT the default community repository. See source command for more information.
    • You can also just download the package and push it to a repository Download

3. Copy Your Script

choco upgrade winrar -y --source="'INTERNAL REPO URL'" [other options]

See options you can pass to upgrade.

See best practices for scripting.

Add this to a PowerShell script or use a Batch script with tools and in places where you are calling directly to Chocolatey. If you are integrating, keep in mind enhanced exit codes.

If you do use a PowerShell script, use the following to ensure bad exit codes are shown as failures:


choco upgrade winrar -y --source="'INTERNAL REPO URL'" 
$exitCode = $LASTEXITCODE

Write-Verbose "Exit code was $exitCode"
$validExitCodes = @(0, 1605, 1614, 1641, 3010)
if ($validExitCodes -contains $exitCode) {
  Exit 0
}

Exit $exitCode

- name: Install winrar
  win_chocolatey:
    name: winrar
    version: '6.20'
    source: INTERNAL REPO URL
    state: present

See docs at https://docs.ansible.com/ansible/latest/modules/win_chocolatey_module.html.


chocolatey_package 'winrar' do
  action    :install
  source   'INTERNAL REPO URL'
  version  '6.20'
end

See docs at https://docs.chef.io/resource_chocolatey_package.html.


cChocoPackageInstaller winrar
{
    Name     = "winrar"
    Version  = "6.20"
    Source   = "INTERNAL REPO URL"
}

Requires cChoco DSC Resource. See docs at https://github.com/chocolatey/cChoco.


package { 'winrar':
  ensure   => '6.20',
  provider => 'chocolatey',
  source   => 'INTERNAL REPO URL',
}

Requires Puppet Chocolatey Provider module. See docs at https://forge.puppet.com/puppetlabs/chocolatey.


4. If applicable - Chocolatey configuration/installation

See infrastructure management matrix for Chocolatey configuration elements and examples.

NOTE

Private CDN cached downloads available for licensed customers. Never experience 404 breakages again! Learn more...

Package Approved

This package was approved as a trusted package on 23 Jan 2023.

Description

NOTE When a new version is released, not all translations are avaialbe. Currently there is no solution to permanently fix this. For more information have a look at issue #20

WinRAR

WinRAR is a powerful archive manager. It can backup your data and reduce the size of email attachments, decompress RAR, ZIP and other files downloaded from Internet and create new archives in RAR and ZIP file format.

You can find themes for WinRAR here.

Commercial software

You can try WinRAR before you buy.

Package Parameters

The following package parameters can be set:

  • /LCID: - the language code you want to install - defaults to your current language
  • /English: - force English language to install

To pass parameters, use --params "''" (e.g. choco install packageID [other options] --params="'/ITEM:value /ITEM2:value2 /FLAG_BOOLEAN'").
To have choco remember parameters on upgrade, be sure to set choco feature enable -n=useRememberedArgumentsForUpgrades.

Please Note: This is an automatically updated package. If you find it is
out of date by more than a day or two, please contact the maintainer(s) and
let them know the package is no longer updating correctly.


tools\chocolateyInstall.ps1
$ErrorActionPreference = 'Stop';
$toolsDir       = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"

$toolsPath = Split-Path $MyInvocation.MyCommand.Definition
. $toolsPath\helpers.ps1

$LCID = (Get-UICulture).LCID
$url_version = '620'

$checksumType32 = 'sha256'
$checksumType64 = 'sha256'


$pp = Get-PackageParameters
if ($pp.LCID) {
  Write-Debug "Override local language settings."
  $LCID = $pp.LCID
}
if ($pp.English) {
    Write-Debug "Force install English version"
    $LCID = $null
}

#LCID table: https://msdn.microsoft.com/goglobal/bb964664.aspx
##Arabic - Saudi Arabia  1025
##Arabic - Algeria	5121
##Arabic - Bahrain	15361
##Arabic - Egypt	3073
##Arabic - Iraq		2049
##Arabic - Jordan	11265
##Arabic - Kuwait	13313
##Arabic - Lebanon	12289
##Arabic - Libya	4097
##Arabic - Morocco	6145
##Arabic - Oman		8193
##Arabic - Qatar	16385
##Arabic - Syria	10241
##Arabic - Tunisia	7169
##Arabic - U.A.E.	14337
##Arabic - Yemen	9217
if(($LCID -eq "1025") -or ($LCID -eq "5121") -or ($LCID -eq "15361") -or ($LCID -eq "3073") -or ($LCID -eq "2049") -or ($LCID -eq "11265") -or ($LCID -eq "13313") -or ($LCID -eq "12289") -or ($LCID -eq "4097") -or ($LCID -eq "6145") -or ($LCID -eq "8193") -or ($LCID -eq "16385") -or ($LCID -eq "10241") -or ($LCID -eq "7169") -or ($LCID -eq "14337") -or ($LCID -eq "9271")){
  $code = "ar"
}

##Armenian   1067
elseif($LCID -eq "1067"){
  $code = 'am'
}

##AAzeri (Cyrillic)   2092
##AAzeri (Latin)      1068
elseif(($LCID -eq "2092") -or ($LCID -eq "1068")){
  $code = 'az'
}

##Belarusian   1059
elseif($LCID -eq "1059"){
  $code = 'by'
}

##Bulgarian   1026
elseif($LCID -eq "1026"){
  $code = 'bg'
}

##Catalan   1027
elseif($LCID -eq "1027"){
  $code = 'by'
}

##Chinese - People's Republic of China 	 2052
##Chinese - Singapore					 4100
##Chinese - Hong Kong SAR	             3076
##Chinese - Macao SAR					 5124
elseif(($LCID -eq "2052") -or ($LCID -eq "4100") -or ($LCID -eq "3076") -or ($LCID -eq "5124")){
   $code = 'sc'
}

##Chinese - Taiwan					1028
elseif($LCID -eq "1028"){
  $code = 'tc'
}

##Croatian				          1050
##Croatian (Bosnia/Herzegovina)   4122
elseif(($LCID -eq "1050") -or ($LCID -eq "4122")){
  $code = 'cro'
}

##Czech   1029
elseif($LCID -eq "1029"){
      $code = 'cz'
}

##Danish   1030
elseif($LCID -eq "1030"){
  $code = 'dk'
}

##Dutch - Netherlands		1043
##Dutch - Belgium			2067
elseif(($LCID -eq "1043") -or ($LCID -eq "2067")){
  $code = 'nl'
}

##Estonian			1061
elseif($LCID -eq "1061"){
  $code = 'est'
}

##Finnish			1035
elseif($LCID -eq "1035"){
  $code = 'fi'
}

##French			1036
elseif($LCID -eq "1036"){
  $code = 'fr'
}

##Galician			1110
elseif($LCID -eq "1110"){
  $code = 'gl'
}

##Georgian			1079
elseif($LCID -eq "1079"){
  $code = 'ge'
}

##German			1031
elseif($LCID -eq "1031"){
  $code = 'd'
}

##Greek				1032
elseif($LCID -eq "1032"){
  $code = 'el'
}

##Hebrew			1037
elseif($LCID -eq "1037"){
  $code = 'he'
}

##Hungarian			1038
elseif($LCID -eq "1038"){
  $code = 'hu'
}

##Indonesian		1057
elseif($LCID -eq "1057"){
  $code = 'id'
}

##Italian - Italy			1040
##Italian - Switzerland		2064
elseif(($LCID -eq "1040") -or ($LCID -eq "2064")){
  $code = 'it'
}

##Japanese		1041
elseif($LCID -eq "1041"){
  $code = 'jp'
}

##Korean		1042
elseif($LCID -eq "1042"){
  $code = 'kr'
}

##Lithuanian	1063
elseif($LCID -eq "1063"){
  $code = 'lt'
}

##Macedonian											0047
##Macedonian (Former Yugoslav Republic of Macedonia)	1071
elseif(($LCID -eq "0047") -or ($LCID -eq "1071")){
  $code = 'mk'
}

##Norwegian (Bokmål)		1044
##Norwegian (Nynorsk)		2068
elseif(($LCID -eq "1044") -or ($LCID -eq "2068")){
  $code = 'no'
}

##Persian		0041
##Persian Iran	1065
elseif(($LCID -eq "0041") -or ($LCID -eq "1065")){
  $code = 'prs'
}

##Polish		1045
elseif($LCID -eq "1045"){
  $code = 'pl'
}

##Portuguese - Portugal
##Portuguese - Portugal 2070  (pt-pt)
elseif($LCID -eq "2070"){
  $code = 'pt'
}

##Portuguese - Brazil
##Portuguese - Brazil  1046   (pt-br)
elseif($LCID -eq "1046"){
  $code = 'br'
}

##Romanian			1048
##Romanian Moldava  2072
elseif(($LCID -eq "1048") -or ($LCID -eq "2072")){
  $code = 'ro'
}

##Russian (ru-ru)			1049
##Russian-Moldava (ru-mo)	2073
elseif(($LCID -eq "1049") -or ($LCID -eq "2073")){
  $code = 'ru'
}

##Serbian Cyrillic	3098
elseif($LCID -eq "3098"){
  $code = 'srbcyr'
}

##Serbian Latin		2074
elseif($LCID -eq "2074"){
  $code = 'srblat'
}

##Sinhala			1115
elseif($LCID -eq "1115"){
  $code = 'si'
}

##Slovak			1051
elseif($LCID -eq "1051"){
  $code = 'sk'
}

##Slovenian			1060
elseif($LCID -eq "1060"){
  $code = 'slv'
}

##Spanish - Spain (Modern Sort)			3082
##Spanish - Spain (Traditional Sort)    1034   (es-es)
##Spanish - Argentina   				11274
##Spanish - Bolivia   					16394
##Spanish - Chile   					13322
##Spanish - Colombia   					9226
##Spanish - Costa Rica  			 	5130
##Spanish - Dominican Republic  	 	7178
##Spanish - Ecuador  				 	12298
##Spanish - El Salvador  			 	17418
##Spanish - Guatemala  				 	4106
##Spanish - Honduras   					18442
##Spanish - Latin America 				22538
##Spanish - Mexico				   		2058
##Spanish - Nicaragua   				19466
##Spanish - Panama   					6154
##Spanish - Paraguay   					15370
##Spanish - Peru   						10250
##Spanish - Puerto Rico 		  		20490
##Spanish - United States 		  		21514
##Spanish - Uruguay 			  		14346
##Spanish - Venezuela  			 		8202
elseif(($LCID -eq "3082") -or ($LCID -eq "1034") -or ($LCID -eq "11274") -or ($LCID -eq "16394") -or ($LCID -eq "13322") -or ($LCID -eq "9226") -or ($LCID -eq "5130") -or ($LCID -eq "7178") -or ($LCID -eq "12298") -or ($LCID -eq "17418") -or ($LCID -eq "4106") -or ($LCID -eq "18442") -or ($LCID -eq "22538") -or ($LCID -eq "2058") -or ($LCID -eq "19466") -or ($LCID -eq "6154") -or ($LCID -eq "15370") -or ($LCID -eq "10250") -or ($LCID -eq "20490") -or ($LCID -eq "21514") -or ($LCID -eq "14346") -or ($LCID -eq "8202")){
  $code = 'es'
}

##Swedish					1053
##Swedish - Finland			2077
elseif(($LCID -eq "1053") -or ($LCID -eq "2077")){
  $code = 'sw'
}

##Thai						1054
elseif($LCID -eq "1054"){
  $code = 'th'
}

##Turkish					1055
elseif($LCID -eq "1055"){
  $code = 'tr'
}

##Turkmen					1090
elseif($LCID -eq "1090"){
  $code = 'tkm'
}

##Ukrainian					1058
elseif($LCID -eq "1058"){
  $code = 'ukr'
}

##Uzbek (Cyrillic)			2115
##Uzbek (Latin)				1091
elseif(($LCID -eq "2115") -or ($LCID -eq "1091")){
  $code = 'uz'
}

#Valencian
#Valencian			2051
elseif($LCID -eq "2051"){
  $code = 'va'
}

##Vietnamese		1066
elseif($LCID -eq "1066"){
  $code = 'vn'
}

##English --- all
else{
  $code = 'en'
}

$downloadInfo = GetDownloadInfo -downloadInfoFile "$toolsPath\downloadInfo.csv" -code $code -urlVersion $url_version

$packageArgs = @{
  packageName   = $env:ChocolateyPackageName
  unzipLocation = $toolsDir
  fileType      = 'exe'
  url           = $downloadInfo.URL32
  checksum      = $downloadInfo.Checksum32
  checksumType  = $checksumType32
  url64bit      = $downloadInfo.URL64
  checksum64    = $downloadInfo.Checksum64
  checksumType64= $checksumType64
  softwareName  = 'WinRAR*'
  silentArgs    = '/S'
  validExitCodes= @(0)
}
Install-ChocolateyPackage @packageArgs
tools\chocolateyUninstall.ps1
$packageName = $env:ChocolateyPackageName
$packageSearch = "WinRAR*"
$installerType = 'exe'
$silentArgs = '/S'
$validExitCodes = @(0)

Get-ItemProperty -Path @('HKLM:\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\*',
                         'HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\*',
                         'HKCU:\Software\Microsoft\Windows\CurrentVersion\Uninstall\*') `
                 -ErrorAction:SilentlyContinue `
| Where-Object   {$_.DisplayName -like $packageSearch} `
| ForEach-Object {Uninstall-ChocolateyPackage -PackageName "$packageName" `
                                              -FileType "$installerType" `
                                              -SilentArgs "$($silentArgs)" `
                                              -File "$($_.UninstallString.Replace('"',''))" `
                                              -ValidExitCodes $validExitCodes}
tools\downloadInfo.csv
en|https://www.rarlab.com/rar/winrar-x64-620.exe|859b2cd35b47d91da08ed0547ad6348e1543f153d8e225660b62a9af6c986044|https://www.rarlab.com/rar/winrar-x32-620.exe|0a2e517907034d55c971d9391d0aace868d73b5b09f9879bb1a87948d9da7baf
en|https://www.rarlab.com/rar/winrar-x64-620.exe|859b2cd35b47d91da08ed0547ad6348e1543f153d8e225660b62a9af6c986044|https://www.rarlab.com/rar/winrar-x32-620.exe|0a2e517907034d55c971d9391d0aace868d73b5b09f9879bb1a87948d9da7baf
id|https://www.rarlab.com/rar/winrar-x64-620id.exe|29d80acf20b78b231f922a07eee861068a3f738b0be534843ccd56dc4a65e362|https://www.rarlab.com/rar/winrar-x32-620id.exe|b63a2370dfb85643940abab1aa4e1129e7cd65c1881916d7a0bd40bf37c8f6b8
tools\helpers.ps1
function GetDownloadInfo {
  param(
    [string]$downloadInfoFile,
    [string]$code,
    [string]$urlVersion
  )
  Write-Debug "Reading CSV file from $downloadInfoFile"
  $downloadInfo = Get-Content -Encoding UTF8 -Path $downloadInfoFile | ConvertFrom-Csv -Delimiter '|' -Header 'Code','URL64','Checksum64','URL32','Checksum32'
  $result = $downloadInfo | Where-Object { $_.Code -eq $code } | Select-Object -first 1
  if (!$result) {
    $result = $downloadInfo | Where-Object { $_.Code -eq 'en' } | Select-Object -first 1
    $result.URL64 = $result.URL64 -replace $urlVersion, "${urlVersion}${code}"
    $result.URL32 = $result.URL32 -replace $urlVersion, "${urlVersion}${code}"
    $result.Checksum32 = ''
    $result.Checksum64 = ''
  }
  $result
}

Log in or click on link to see number of positives.

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.

Add to Builder Version Downloads Last Updated Status
WinRAR 6.11.0.20220504 340430 Wednesday, May 4, 2022 Approved
WinRAR 6.11 140821 Friday, March 4, 2022 Approved
WinRAR 6.10.0.20220128 99201 Friday, January 28, 2022 Approved
WinRAR 6.10 30206 Tuesday, January 25, 2022 Approved
WinRAR 6.02 362011 Monday, June 14, 2021 Approved
WinRAR 6.01 166696 Monday, April 12, 2021 Approved
WinRAR 6.0.0.20210102 259830 Saturday, January 2, 2021 Approved
WinRAR 6.00 75862 Monday, December 7, 2020 Approved
WinRAR 5.91.0.20200917 147270 Thursday, September 17, 2020 Approved
WinRAR 5.91 136949 Monday, June 29, 2020 Approved
WinRAR 5.90.0.20200528 51244 Thursday, May 28, 2020 Approved
WinRAR 5.90.0.20200401 91829 Wednesday, April 1, 2020 Approved
WinRAR 5.90 23491 Monday, March 30, 2020 Approved
WinRAR 5.80.0.20200219 77737 Wednesday, February 19, 2020 Approved
WinRAR 5.80.0.20200102 124888 Thursday, January 2, 2020 Approved
WinRAR 5.80 52750 Wednesday, December 11, 2019 Approved
WinRAR 5.71 294680 Wednesday, May 8, 2019 Approved
WinRAR 5.70.0.20190305 55475 Tuesday, March 5, 2019 Approved
WinRAR 5.70 35949 Wednesday, February 27, 2019 Approved

This package has no dependencies.

Discussion for the WinRAR Package

Ground Rules:

  • This discussion is only about WinRAR and the WinRAR 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 WinRAR, 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