Unpacking Software Livestream

Join our monthly Unpacking Software livestream to hear about the latest news, chat and opinion on packaging, software deployment and lifecycle management!

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

Chocolatey Coding Livestream

Join us for the Chocolatey Coding Livestream, where members of our team dive into the heart of open source development by coding live on various Chocolatey projects. Tune in to witness real-time coding, ask questions, and gain insights into the world of package management. Don't miss this opportunity to engage with our team and contribute to the future of Chocolatey!

Learn More

Calling All Chocolatiers! Whipping Up Windows Automation with Chocolatey Central Management

Webinar from
Wednesday, 17 January 2024

We are delighted to announce the release of Chocolatey Central Management v0.12.0, featuring seamless Deployment Plan creation, time-saving duplications, insightful Group Details, an upgraded Dashboard, bug fixes, user interface polishing, and refined documentation. As an added bonus we'll have members of our Solutions Engineering team on-hand to dive into some interesting ways you can leverage the new features available!

Watch On-Demand
Chocolatey Community Coffee Break

Join the Chocolatey Team as we discuss all things Community, what we do, how you can get involved and answer your Chocolatey questions.

Watch The Replays
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

Downloads:

7,229,355

Downloads of v 5.20:

11,771

Last Update:

10 Dec 2014

Package Maintainer(s):

Software Author(s):

  • Rarlab

Tags:

checksifisinstalled trial-version winrar rar system compression zip

WinRAR

This is not the latest version of WinRAR available.

  • 1
  • 2
  • 3

5.20 | Updated: 10 Dec 2014

Downloads:

7,229,355

Downloads of v 5.20:

11,771

Maintainer(s):

Software Author(s):

  • Rarlab

WinRAR 5.20

This is not the latest version of WinRAR available.

  • 1
  • 2
  • 3

Some Checks Have Failed or Are Not Yet Complete

Not All Tests Have Passed


Validation Testing Unknown


Verification Testing Unknown


Scan Testing Resulted in Flagged:

This package was submitted (and approved) prior to automated virus scanning integration into the package moderation processs.

We recommend clicking the "Details" link to make your own decision on installing this package.

Details
Package Approved

This package was approved by moderator ferventcoder on 15 Dec 2014.

WARNING

This package is unlisted and hidden from package listings.

Description

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 try WinRAR before buy, its trial version is available.


tools\chocolateyInstall.ps1
$packageName = 'winrar'
$version_x64 = "WinRAR 5.20 (64-bit)"
$version_x86 = "WinRAR 5.20 (32-bit)"
$uninstallRegistryPath = "HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\WinRAR archiver"
$installerType = 'EXE'
$url = 'http://www.rarlab.com/rar/winrar-x64-520.exe'
$silentArgs = '/S'
$validExitCodes = @(0) #please insert other valid exit codes here, exit codes for ms http://msdn.microsoft.com/en-us/library/aa368542(VS.85).aspx
$LCID = (Get-UICulture).LCID
$url_version_dot= '5.20'
$url_version = (Split-Path $url_version_dot -leaf).ToString().Replace(".", "")
$mantainer = 'tonigellida'

try {
 	if (Test-Path $uninstallRegistryPath) {
		$installedVersion = (Get-ItemProperty $uninstallRegistryPath).DisplayName
			
	}
	
	if (($installedVersion -gt $version_x64) -Or ($installedVersion -gt $version_x86)) {
		Write-Host "Your $packageName $installedVersion is higher than the $version proporcionated by chocolatey repo."
		Write-Host "Please wait or contact the mantainer $mantainer to update this package."
		Write-Host "When the package is updated try another time. Thanks."
	
	} elseif (($installedVersion -eq $version_x64) -Or ($installedVersion -eq $version_x86)){
		Write-Host "$packageName $version is already installed."
		
	} else {

		# Download and install the program
	    $processor = Get-WmiObject Win32_Processor
	    $is64bit = $processor.AddressWidth -eq 64
  
  if ($is64bit) {
  
		# If you' ve a 64-bit platform and 32-bit winrar version installed, now your 32-bit version is removed and 64-bit version is installed
	    $unpath_x86_not = "${Env:ProgramFiles(x86)}\WinRAR\Uninstall.exe"	
		
		if (Test-Path $unpath_x86_not) {
			Uninstall-ChocolateyPackage "$packageName" "$installerType" "$silentArgs" "$unpath" -validExitCodes $validExitCodes
		}
  

  
###################################################### 64 bits downloads #################################################################  

##Arabic
##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")){
$url = 'http://www.rarlab.com/rar/winrar-x64-'+$url_version+'ar.exe'
}

##Armenian
##Armenian   1067
elseif($LCID -eq "1067"){
$url = 'http://www.rarlab.com/rar/winrar-x64-'+$url_version+'am.exe'
}

##Azerbaijani
##AAzeri (Cyrillic)   2092
##AAzeri (Latin)      1068
elseif(($LCID -eq "2092") -or ($LCID -eq "1068")){
$url = 'http://www.rarlab.com/rar/winrar-x64-'+$url_version+'az.exe'
}

##Belarusian
##Belarusian   1059
elseif($LCID -eq "1059"){
$url = 'http://www.rarlab.com/rar/winrar-x64-'+$url_version+'by.exe'
}

##Bulgarian
##Bulgarian   1026
elseif($LCID -eq "1026"){
$url = 'http://www.rarlab.com/rar/winrar-x64-'+$url_version+'bg.exe'
}

##Catalan
##Catalan   1027
elseif($LCID -eq "1027"){
$url = 'http://www.rarlab.com/rar/winrar-x64-'+$url_version+'by.exe'
}

##Chinese Simplified
##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")){
#$url = 'http://www.rarlab.com/rar/winrar-x64-510sc.exe'
#}

##Chinese Traditional
##Chinese - Taiwan					1028
elseif($LCID -eq "1028"){
$url = 'http://www.rarlab.com/rar/winrar-x64-'+$url_version+'tc.exe'
}

##Croatian
##Croatian				          1050
##Croatian (Bosnia/Herzegovina)   4122
elseif(($LCID -eq "1050") -or ($LCID -eq "4122")){
$url = 'http://www.rarlab.com/rar/winrar-x64-'+$url_version+'cro.exe'
}

##Czech
##Czech   1029
#elseif($LCID -eq "1029"){
#$url = 'http://www.rarlab.com/rar/winrar-x64-510cz.exe'
#}

##Danish
##Danish   1030
elseif($LCID -eq "1030"){
$url = 'http://www.rarlab.com/rar/winrar-x64-'+$url_version+'dk.exe'
}

##Dutch
##Dutch - Netherlands		1043
##Dutch - Belgium			2067
elseif(($LCID -eq "1043") -or ($LCID -eq "2067")){
$url = 'http://www.rarlab.com/rar/winrar-x64-'+$url_version+'nl.exe'
}

##Estonian
##Estonian			1061
elseif($LCID -eq "1061"){
$url = 'http://www.rarlab.com/rar/winrar-x64-'+$url_version+'est.exe'
}

##Finnish
##Finnish			1035
elseif($LCID -eq "1035"){
$url = 'http://www.rarlab.com/rar/winrar-x64-'+$url_version+'fi.exe'
}

##French
##French			1036
elseif($LCID -eq "1036"){
$url = 'http://www.rarlab.com/rar/winrar-x64-'+$url_version+'fr.exe'
}

##Galician
##Galician			1110
elseif($LCID -eq "1110"){
$url = 'http://www.rarlab.com/rar/winrar-x64-'+$url_version+'gl.exe'
}

##Georgian
##Georgian			1079
#elseif($LCID -eq "1079"){
#$url = 'http://www.rarlab.com/rar/winrar-x64-501ge.exe'
#}

##German
##German			1031
elseif($LCID -eq "1031"){
$url = 'http://www.rarlab.com/rar/winrar-x64-'+$url_version+'d.exe'
}

##Greek
##Greek				1032
#elseif($LCID -eq "1032"){
#$url = 'http://www.rarlab.com/rar/winrar-x64-510el.exe'
#}

##Hebrew
##Hebrew			1037
elseif($LCID -eq "1037"){
$url = 'http://www.rarlab.com/rar/winrar-x64-'+$url_version+'he.exe'
}

##Hungarian
##Hungarian			1038
elseif($LCID -eq "1038"){
$url = 'http://www.rarlab.com/rar/winrar-x64-'+$url_version+'hu.exe'
}

##Indonesian
##Indonesian		1057
elseif($LCID -eq "1057"){
$url = 'http://www.rarlab.com/rar/winrar-x64-'+$url_version+'id.exe'
}

##Italian
##Italian - Italy			1040
##Italian - Switzerland		2064
#elseif(($LCID -eq "1040") -or ($LCID -eq "2064")){
#$url = 'http://www.rarlab.com/rar/winrar-x64-510it.exe'
#}

##Japanese
##Japanese		1041
elseif($LCID -eq "1041"){
$url = 'http://www.rarlab.com/rar/winrar-x64-'+$url_version+'j.exe'
}

##Korean
##Korean		1042
elseif($LCID -eq "1042"){
$url = 'http://www.rarlab.com/rar/winrar-x64-'+$url_version+'kr.exe'
}

##Lithuanian
##Lithuanian	1063
elseif($LCID -eq "1063"){
$url = 'http://www.rarlab.com/rar/winrar-x64-'+$url_version+'lt.exe'
}

##Macedonian
##Macedonian											0047
##Macedonian (Former Yugoslav Republic of Macedonia)	1071
elseif(($LCID -eq "0047") -or ($LCID -eq "1071")){
$url = 'http://www.rarlab.com/rar/winrar-x64-'+$url_version+'mk.exe'
}

##Norwegian
##Norwegian (Bokmål)		1044
##Norwegian (Nynorsk)		2068
elseif(($LCID -eq "1044") -or ($LCID -eq "2068")){
$url = 'http://www.rarlab.com/rar/winrar-x64-'+$url_version+'no.exe'
}

##Persian
##Persian		0041
##Persian Iran	1065
elseif(($LCID -eq "0041") -or ($LCID -eq "1065")){
$url = 'http://www.rarlab.com/rar/winrar-x64-'+$url_version+'prs.exe'
}

##Polish
##Polish		1045
elseif($LCID -eq "1045"){
$url = 'http://www.rarlab.com/rar/winrar-x64-'+$url_version+'pl.exe'
}

##Portuguese - Portugal
##Portuguese - Portugal 2070  (pt-pt)
elseif($LCID -eq "2070"){
$url = 'http://www.rarlab.com/rar/winrar-x64-'+$url_version+'pt.exe'
}

##Portuguese - Brazil
##Portuguese - Brazil  1046   (pt-br)
elseif($LCID -eq "1046"){
$url = 'http://www.rarlab.com/rar/winrar-x64-'+$url_version+'br.exe'
}

##Romanian
##Romanian			1048
##Romanian Moldava  2072
elseif(($LCID -eq "1048") -or ($LCID -eq "2072")){
$url = 'http://www.rarlab.com/rar/winrar-x64-'+$url_version+'ro.exe'
}

##Russian
##Russian (ru-ru)			1049    
##Russian-Moldava (ru-mo)	2073
elseif(($LCID -eq "1049") -or ($LCID -eq "2073")){
$url = 'http://www.rarlab.com/rar/winrar-x64-'+$url_version+'ru.exe'
}

##Serbian Cyrillic
##Serbian Cyrillic	3098
elseif($LCID -eq "3098"){
$url = 'http://www.rarlab.com/rar/winrar-x64-'+$url_version+'srbcyr.exe'
}

##Serbian Latin
##Serbian Latin		2074
elseif($LCID -eq "2074"){
$url = 'http://www.rarlab.com/rar/winrar-x64-'+$url_version+'srblat.exe'
}

##Sinhala
##Sinhala			1115
#elseif($LCID -eq "1115"){
#$url = 'http://www.rarlab.com/rar/winrar-x64-501si.exe'
#}

##Slovak
##Slovak			1051
#elseif($LCID -eq "1051"){
#$url = 'http://www.rarlab.com/rar/winrar-x64-510sk.exe'
#}

##Slovenian		
##Slovenian			1060
#elseif($LCID -eq "1060"){
#$url = 'http://www.rarlab.com/rar/winrar-x64-510slv.exe'
#}

##Spanish
##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")){
$url = 'http://www.rarlab.com/rar/winrar-x64-'+$url_version+'es.exe'
}

##Swedish
##Swedish					1053
##Swedish - Finland			2077
elseif(($LCID -eq "1053") -or ($LCID -eq "2077")){
$url = 'http://www.rarlab.com/rar/winrar-x64-'+$url_version+'sw.exe'
}

##Thai
##Thai						1054
#elseif($LCID -eq "1054"){
#$url = 'http://www.rarlab.com/rar/winrar-x64-510th.exe'
#}

##Turkish
##Turkish					1055
#elseif($LCID -eq "1055"){
#$url = 'http://www.rarlab.com/rar/winrar-x64-510tr.exe'
#}

##Turkmen
##Turkmen					1090
#elseif($LCID -eq "1090"){
#$url = 'http://www.rarlab.com/rar/winrar-x64-500tkm.exe'
#}

##Ukrainian
##Ukrainian					1058
elseif($LCID -eq "1058"){
$url = 'http://www.rarlab.com/rar/winrar-x64-'+$url_version+'ukr.exe'
}

##Uzbek
##Uzbek (Cyrillic)			2115
##Uzbek (Latin)				1091
elseif(($LCID -eq "2115") -or ($LCID -eq "1091")){
$url = 'http://www.rarlab.com/rar/winrar-x64-'+$url_version+'uz.exe'
}

#Valencian
#Valencian			2051
elseif($LCID -eq "2051"){
$url = 'http://www.rarlab.com/rar/winrar-x64-'+$url_version+'va.exe'
}

##Vietnamese
##Vietnamese		1066
elseif($LCID -eq "1066"){
$url = 'http://www.rarlab.com/rar/winrar-x64-'+$url_version+'vn.exe'
}

##English
##English --- all
else{
$url = 'http://www.rarlab.com/rar/winrar-x64-'+$url_version+'.exe'
}  
 
} else {

###################################################### 32 bits downloads #################################################################

##Arabic
##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")){
$url = 'http://www.rarlab.com/rar/wrar'+$url_version+'ar.exe'
}

##Armenian
##Armenian   1067
elseif($LCID -eq "1067"){
$url = 'http://www.rarlab.com/rar/wrar'+$url_version+'am.exe'
}

##Azerbaijani
##AAzeri (Cyrillic)   2092
##AAzeri (Latin)      1068
elseif(($LCID -eq "2092") -or ($LCID -eq "1068")){
$url = 'http://www.rarlab.com/rar/wrar'+$url_version+'az.exe'
}

##Belarusian
##Belarusian   1059
elseif($LCID -eq "1059"){
$url = 'http://www.rarlab.com/rar/wrar'+$url_version+'by.exe'
}

##Bulgarian
##Bulgarian   1026
elseif($LCID -eq "1026"){
$url = 'http://www.rarlab.com/rar/wrar'+$url_version+'bg.exe'
}

##Catalan
##Catalan   1027
elseif($LCID -eq "1027"){
$url = 'http://www.rarlab.com/rar/wrar'+$url_version+'by.exe'
}

##Chinese Simplified
##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")){
#$url = 'http://www.rarlab.com/rar/wrar510sc.exe'
#}

##Chinese Traditional
##Chinese - Taiwan					1028
elseif($LCID -eq "1028"){
$url = 'http://www.rarlab.com/rar/wrar'+$url_version+'tc.exe'
}

##Croatian
##Croatian				          1050
##Croatian (Bosnia/Herzegovina)   4122
elseif(($LCID -eq "1050") -or ($LCID -eq "4122")){
$url = 'http://www.rarlab.com/rar/wrar'+$url_version+'cro.exe'
}

##Czech
##Czech   1029
#elseif($LCID -eq "1029"){
#$url = 'http://www.rarlab.com/rar/wrar510cz.exe'
#}

##Danish
##Danish   1030
elseif($LCID -eq "1030"){
$url = 'http://www.rarlab.com/rar/wrar'+$url_version+'dk.exe'
}

##Dutch
##Dutch - Netherlands		1043
##Dutch - Belgium			2067
elseif(($LCID -eq "1043") -or ($LCID -eq "2067")){
$url = 'http://www.rarlab.com/rar/wrar'+$url_version+'nl.exe'
}

##Estonian
##Estonian			1061
elseif($LCID -eq "1061"){
$url = 'http://www.rarlab.com/rar/wrar'+$url_version+'est.exe'
}

##Finnish
##Finnish			1035
elseif($LCID -eq "1035"){
$url = 'http://www.rarlab.com/rar/wrar'+$url_version+'fi.exe'
}

##French
##French			1036
elseif($LCID -eq "1036"){
$url = 'http://www.rarlab.com/rar/wrar'+$url_version+'fr.exe'
}

##Galician
##Galician			1110
elseif($LCID -eq "1110"){
$url = 'http://www.rarlab.com/rar/wrar'+$url_version+'gl.exe'
}

##Georgian
##Georgian			1079
#elseif($LCID -eq "1079"){
#$url = 'http://www.rarlab.com/rar/wrar501ge.exe'
#}

##German
##German			1031
elseif($LCID -eq "1031"){
$url = 'http://www.rarlab.com/rar/wrar'+$url_version+'d.exe'
}

##Greek
##Greek				1032
#elseif($LCID -eq "1032"){
#$url = 'http://www.rarlab.com/rar/wrar510el.exe'
#}

##Hebrew
##Hebrew			1037
elseif($LCID -eq "1037"){
$url = 'http://www.rarlab.com/rar/wrar'+$url_version+'he.exe'
}

##Hungarian
##Hungarian			1038
elseif($LCID -eq "1038"){
$url = 'http://www.rarlab.com/rar/wrar'+$url_version+'hu.exe'
}

##Indonesian
##Indonesian		1057
elseif($LCID -eq "1057"){
$url = 'http://www.rarlab.com/rar/wrar'+$url_version+'id.exe'
}

##Italian
##Italian - Italy			1040
##Italian - Switzerland		2064
#elseif(($LCID -eq "1040") -or ($LCID -eq "2064")){
#$url = 'http://www.rarlab.com/rar/wrar510it.exe'
#}

##Japanese
##Japanese		1041
elseif($LCID -eq "1041"){
$url = 'http://www.rarlab.com/rar/wrar'+$url_version+'j.exe'
}

##Korean
##Korean		1042
elseif($LCID -eq "1042"){
$url = 'http://www.rarlab.com/rar/wrar'+$url_version+'kr.exe'
}

##Lithuanian
##Lithuanian	1063
elseif($LCID -eq "1063"){
$url = 'http://www.rarlab.com/rar/wrar'+$url_version+'lt.exe'
}

##Macedonian
##Macedonian											0047
##Macedonian (Former Yugoslav Republic of Macedonia)	1071
elseif(($LCID -eq "0047") -or ($LCID -eq "1071")){
$url = 'http://www.rarlab.com/rar/wrar'+$url_version+'mk.exe'
}

##Norwegian
##Norwegian (Bokmål)		1044
##Norwegian (Nynorsk)		2068
elseif(($LCID -eq "1044") -or ($LCID -eq "2068")){
$url = 'http://www.rarlab.com/rar/wrar'+$url_version+'no.exe'
}

##Persian
##Persian		0041
##Persian Iran	1065
elseif(($LCID -eq "0041") -or ($LCID -eq "1065")){
$url = 'http://www.rarlab.com/rar/wrar'+$url_version+'prs.exe'
}

##Polish
##Polish		1045
elseif($LCID -eq "1045"){
$url = 'http://www.rarlab.com/rar/wrar'+$url_version+'pl.exe'
}

##Portuguese - Portugal
##Portuguese - Portugal 2070  (pt-pt)
elseif($LCID -eq "2070"){
$url = 'http://www.rarlab.com/rar/wrar'+$url_version+'pt.exe'
}

##Portuguese - Brazil
##Portuguese - Brazil  1046   (pt-br)
elseif($LCID -eq "1046"){
$url = 'http://www.rarlab.com/rar/wrar'+$url_version+'br.exe'
}

##Romanian
##Romanian			1048
##Romanian Moldava  2072
elseif(($LCID -eq "1048") -or ($LCID -eq "2072")){
$url = 'http://www.rarlab.com/rar/wrar'+$url_version+'ro.exe'
}

##Russian
##Russian (ru-ru)			1049    
##Russian-Moldava (ru-mo)	2073
elseif(($LCID -eq "1049") -or ($LCID -eq "2073")){
$url = 'http://www.rarlab.com/rar/wrar'+$url_version+'ru.exe'
}

##Serbian Cyrillic
##Serbian Cyrillic	3098
elseif($LCID -eq "3098"){
$url = 'http://www.rarlab.com/rar/wrar'+$url_version+'srbcyr.exe'
}

##Serbian Latin
##Serbian Latin		2074
elseif($LCID -eq "2074"){
$url = 'http://www.rarlab.com/rar/wrar'+$url_version+'srblat.exe'
}

##Sinhala
##Sinhala			1115
#elseif($LCID -eq "1115"){
#$url = 'http://www.rarlab.com/rar/wrar501si.exe'
#}

##Slovak
##Slovak			1051
#elseif($LCID -eq "1051"){
#$url = 'http://www.rarlab.com/rar/wrar510sk.exe'
#}

##Slovenian		
##Slovenian			1060
#elseif($LCID -eq "1060"){
#$url = 'http://www.rarlab.com/rar/wrar510slv.exe'
#}

##Spanish
##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")){
$url = 'http://www.rarlab.com/rar/wrar'+$url_version+'es.exe'
}

##Swedish
##Swedish					1053
##Swedish - Finland			2077
elseif(($LCID -eq "1053") -or ($LCID -eq "2077")){
$url = 'http://www.rarlab.com/rar/wrar'+$url_version+'sw.exe'
}

##Thai
##Thai						1054
#elseif($LCID -eq "1054"){
#$url = 'http://www.rarlab.com/rar/wrar510th.exe'
#}

##Turkish
##Turkish					1055
#elseif($LCID -eq "1055"){
#$url = 'http://www.rarlab.com/rar/wrar510tr.exe'
#}

##Turkmen
##Turkmen					1090
#elseif($LCID -eq "1090"){
#$url = 'http://www.rarlab.com/rar/wrar500tkm.exe'
#}

##Ukrainian
##Ukrainian					1058
elseif($LCID -eq "1058"){
$url = 'http://www.rarlab.com/rar/wrar'+$url_version+'ukr.exe'
}

##Uzbek
##Uzbek (Cyrillic)			2115
##Uzbek (Latin)				1091
elseif(($LCID -eq "2115") -or ($LCID -eq "1091")){
$url = 'http://www.rarlab.com/rar/wrar'+$url_version+'uz.exe'
}

#Valencian
#Valencian			2051
elseif($LCID -eq "2051"){
$url = 'http://www.rarlab.com/rar/wrar'+$url_version+'va.exe'
}

##Vietnamese
##Vietnamese		1066
elseif($LCID -eq "1066"){
$url = 'http://www.rarlab.com/rar/wrar'+$url_version+'vn.exe'
}

##English
##English --- all
else{
$url = 'http://www.rarlab.com/rar/wrar'+$url_version+'.exe'
} 
}

Install-ChocolateyPackage "$packageName" "$installerType" "$silentArgs" "$url"  -validExitCodes $validExitCodes

#LCID table
#http://msdn.microsoft.com/es-es/goglobal/bb964664.aspx
#http://www.google.es/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&ved=0CDEQFjAA&url=http%3A%2F%2Fdownload.microsoft.com%2Fdownload%2F9%2F5%2FE%2F95EF66AF-9026-4BB0-A41D-A4F81802D92C%2F%5BMS-LCID%5D.pdf&ei=vSPuUtDVEofH7AbQ3oGQBA&usg=AFQjCNEREnu7-8_K7zNDzWIGGf72VKYmGw&sig2=q2n0zBluoe0zWsvQXg5N-g

#downloads location
#http://www.rarlab.com/download.htm
		
		}
	
	Write-ChocolateySuccess $packageName
	
} catch {

		Write-ChocolateyFailure $packageName "$($_.Exception.Message)"
		throw 
}
tools\chocolateyUninstall.ps1
$packageName = 'winrar'
$installerType = 'EXE'
$silentArgs = '/S'
$validExitCodes = @(0) #please insert other valid exit codes here, exit codes for ms http://msdn.microsoft.com/en-us/library/aa368542(VS.85).aspx

try {
  $processor = Get-WmiObject Win32_Processor
  $is64bit = $processor.AddressWidth -eq 64
  if ($is64bit) {
    $unpath = "${Env:ProgramFiles(x86)}\WinRAR\Uninstall.exe"
  } else {
    $unpath = "$Env:ProgramFiles\WinRAR\Uninstall.exe"
  }
  Uninstall-ChocolateyPackage "$packageName" "$installerType" "$silentArgs" "$unpath" -validExitCodes $validExitCodes
  
  # the following is all part of error handling
  Write-ChocolateySuccess "$packageName"
} catch {
  Write-ChocolateyFailure "$packageName" "$($_.Exception.Message)"
  throw 
}
winrar.png
 

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.24 247369 Thursday, October 5, 2023 Approved
WinRAR 6.23 193950 Wednesday, August 2, 2023 Approved
WinRAR 6.22 135243 Thursday, June 8, 2023 Approved
WinRAR 6.21 213952 Monday, February 20, 2023 Approved
WinRAR 6.20 157285 Monday, January 23, 2023 Approved
WinRAR 6.11.0.20220504 343318 Wednesday, May 4, 2022 Approved
WinRAR 6.11 141671 Friday, March 4, 2022 Approved
WinRAR 6.10.0.20220128 99398 Friday, January 28, 2022 Approved
WinRAR 6.10 30242 Tuesday, January 25, 2022 Approved
WinRAR 6.02 362266 Monday, June 14, 2021 Approved
WinRAR 6.01 166767 Monday, April 12, 2021 Approved
WinRAR 6.0.0.20210102 259971 Saturday, January 2, 2021 Approved
WinRAR 6.00 75967 Monday, December 7, 2020 Approved
WinRAR 5.91.0.20200917 147345 Thursday, September 17, 2020 Approved
WinRAR 5.91 137099 Monday, June 29, 2020 Approved
WinRAR 5.90.0.20200528 51290 Thursday, May 28, 2020 Approved
WinRAR 5.90.0.20200401 91896 Wednesday, April 1, 2020 Approved
WinRAR 5.90 23530 Monday, March 30, 2020 Approved
WinRAR 5.80.0.20200219 77784 Wednesday, February 19, 2020 Approved
WinRAR 5.80.0.20200102 124941 Thursday, January 2, 2020 Approved
WinRAR 5.80 52809 Wednesday, December 11, 2019 Approved
WinRAR 5.71 294823 Wednesday, May 8, 2019 Approved
WinRAR 5.70.0.20190305 56474 Tuesday, March 5, 2019 Approved
WinRAR 5.70 36032 Wednesday, February 27, 2019 Approved

Now supports a lot of languages. Some of them aren't supported by having an old version in its traduction.


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