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,178,702

Downloads of v 5.21:

1,227

Last Update:

07 Nov 2015

Package Maintainer(s):

Software Author(s):

  • win.rar GmbH

Tags:

trial rar compression archive nagware

WinRAR

This is not the latest version of WinRAR available.

  • 1
  • 2
  • 3

5.21 | Updated: 07 Nov 2015

Downloads:

7,178,702

Downloads of v 5.21:

1,227

Maintainer(s):

Software Author(s):

  • win.rar GmbH

WinRAR 5.21

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 Passed

Details

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 gep13 on 06 Dec 2015.

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.

Commercial software

You can try WinRAR before you buy.


tools\chocolateyInstall.ps1
$packageName = 'winrar'
$installerType = 'exe'
$url = 'http://www.rarlab.com/rar/wrar'
$url64 = 'http://www.rarlab.com/rar/winrar-x64-'
$silentArgs = '/S'
$LCID = (Get-Culture).LCID
$url_version_dot= '5.21'
$url_version = (Split-Path $url_version_dot -leaf).ToString().Replace(".", "")
$validExitCodes = @(0)

try {
  # 64 bit downloads
  
  ##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")){
    $url64 = $url64+$url_version+'ar.exe'
  }

  ##Armenian   1067
  elseif($LCID -eq "1067"){
    $url64 = $url64+$url_version+'am.exe'
  }

  ##AAzeri (Cyrillic)   2092
  ##AAzeri (Latin)      1068
  elseif(($LCID -eq "2092") -or ($LCID -eq "1068")){
    $url64 = $url64+$url_version+'az.exe'
  }

  ##Belarusian   1059
  elseif($LCID -eq "1059"){
    $url64 = $url64+$url_version+'by.exe'
  }

  ##Bulgarian   1026
  elseif($LCID -eq "1026"){
    $url64 = $url64+$url_version+'bg.exe'
  }

  ##Catalan   1027
  elseif($LCID -eq "1027"){
    $url64 = $url64+$url_version+'by.exe'
  }

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

  ##Chinese - Taiwan					1028
  elseif($LCID -eq "1028"){
    $url64 = $url64+$url_version+'tc.exe'
  }

  ##Croatian				          1050
  ##Croatian (Bosnia/Herzegovina)   4122
  elseif(($LCID -eq "1050") -or ($LCID -eq "4122")){
    $url64 = $url64+$url_version+'cro.exe'
  }

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

  ##Danish   1030
  elseif($LCID -eq "1030"){
    $url64 = $url64+$url_version+'dk.exe'
  }

  ##Dutch - Netherlands		1043
  ##Dutch - Belgium			2067
  elseif(($LCID -eq "1043") -or ($LCID -eq "2067")){
    $url64 = $url64+$url_version+'nl.exe'
  }

  ##Estonian			1061
  elseif($LCID -eq "1061"){
    $url64 = $url64+$url_version+'est.exe'
  }

  ##Finnish			1035
  elseif($LCID -eq "1035"){
    $url64 = $url64+$url_version+'fi.exe'
  }

  ##French			1036
  elseif($LCID -eq "1036"){
    $url64 = $url64+$url_version+'fr.exe'
  }

  ##Galician			1110
  elseif($LCID -eq "1110"){
    $url64 = $url64+$url_version+'gl.exe'
  }

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

  ##German			1031
  elseif($LCID -eq "1031"){
    $url64 = $url64+$url_version+'d.exe'
  }

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

  ##Hebrew			1037
  elseif($LCID -eq "1037"){
    $url64 = $url64+$url_version+'he.exe'
  }

  ##Hungarian			1038
  elseif($LCID -eq "1038"){
    $url64 = $url64+$url_version+'hu.exe'
  }

  ##Indonesian		1057
  elseif($LCID -eq "1057"){
    $url64 = $url64+$url_version+'id.exe'
  }

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

  ##Japanese		1041
  elseif($LCID -eq "1041"){
    $url64 = $url64+$url_version+'jp.exe'
  }

  ##Korean		1042
  elseif($LCID -eq "1042"){
    $url64 = $url64+$url_version+'kr.exe'
  }

  ##Lithuanian	1063
  elseif($LCID -eq "1063"){
    $url64 = $url64+$url_version+'lt.exe'
  }

  ##Macedonian											0047
  ##Macedonian (Former Yugoslav Republic of Macedonia)	1071
  elseif(($LCID -eq "0047") -or ($LCID -eq "1071")){
    $url64 = $url64+$url_version+'mk.exe'
  }

  ##Norwegian (Bokmål)		1044
  ##Norwegian (Nynorsk)		2068
  elseif(($LCID -eq "1044") -or ($LCID -eq "2068")){
    $url64 = $url64+$url_version+'no.exe'
  }

  ##Persian		0041
  ##Persian Iran	1065
  elseif(($LCID -eq "0041") -or ($LCID -eq "1065")){
    $url64 = $url64+$url_version+'prs.exe'
  }

  ##Polish		1045
  elseif($LCID -eq "1045"){
    $url64 = $url64+$url_version+'pl.exe'
  }

  ##Portuguese - Portugal
  ##Portuguese - Portugal 2070  (pt-pt)
  elseif($LCID -eq "2070"){
    $url64 = $url64+$url_version+'pt.exe'
  }

  ##Portuguese - Brazil
  ##Portuguese - Brazil  1046   (pt-br)
  elseif($LCID -eq "1046"){
    $url64 = $url64+$url_version+'br.exe'
  }

  ##Romanian			1048
  ##Romanian Moldava  2072
  elseif(($LCID -eq "1048") -or ($LCID -eq "2072")){
    $url64 = $url64+$url_version+'ro.exe'
  }

  ##Russian (ru-ru)			1049    
  ##Russian-Moldava (ru-mo)	2073
  elseif(($LCID -eq "1049") -or ($LCID -eq "2073")){
    $url64 = $url64+$url_version+'ru.exe'
  }

  ##Serbian Cyrillic	3098
  elseif($LCID -eq "3098"){
    $url64 = $url64+$url_version+'srbcyr.exe'
  }

  ##Serbian Latin		2074
  elseif($LCID -eq "2074"){
    $url64 = $url64+$url_version+'srblat.exe'
  }

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

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

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

  ##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")){
    $url64 = $url64+$url_version+'es.exe'
  }

  ##Swedish					1053
  ##Swedish - Finland			2077
  elseif(($LCID -eq "1053") -or ($LCID -eq "2077")){
    $url64 = $url64+$url_version+'sw.exe'
  }

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

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

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

  ##Ukrainian					1058
  elseif($LCID -eq "1058"){
    $url64 = $url64+$url_version+'ukr.exe'
  }

  ##Uzbek (Cyrillic)			2115
  ##Uzbek (Latin)				1091
  elseif(($LCID -eq "2115") -or ($LCID -eq "1091")){
    $url64 = $url64+$url_version+'uz.exe'
  }

  #Valencian
  #Valencian			2051
  elseif($LCID -eq "2051"){
    $url64 = $url64+$url_version+'va.exe'
  }

  ##Vietnamese		1066
  elseif($LCID -eq "1066"){
    $url64 = $url64+$url_version+'vn.exe'
  }

  ##English --- all
  else{
    $url64 = $url64+$url_version+'.exe'
  }  
   

  # 32 bit downloads

  ##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 = $url+$url_version+'ar.exe'
  }

  ##Armenian   1067
  elseif($LCID -eq "1067"){
    $url = $url+$url_version+'am.exe'
  }

  ##AAzeri (Cyrillic)   2092
  ##AAzeri (Latin)      1068
  elseif(($LCID -eq "2092") -or ($LCID -eq "1068")){
    $url = $url+$url_version+'az.exe'
  }

  ##Belarusian   1059
  elseif($LCID -eq "1059"){
    $url = $url+$url_version+'by.exe'
  }

  ##Bulgarian   1026
  elseif($LCID -eq "1026"){
    $url = $url+$url_version+'bg.exe'
  }

  ##Catalan   1027
  elseif($LCID -eq "1027"){
    $url = $url+$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 = $url+$url_version+'tc.exe'
  }

  ##Croatian				          1050
  ##Croatian (Bosnia/Herzegovina)   4122
  elseif(($LCID -eq "1050") -or ($LCID -eq "4122")){
    $url = $url+$url_version+'cro.exe'
  }

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

  ##Danish   1030
  elseif($LCID -eq "1030"){
    $url = $url+$url_version+'dk.exe'
  }

  ##Dutch - Netherlands		1043
  ##Dutch - Belgium			2067
  elseif(($LCID -eq "1043") -or ($LCID -eq "2067")){
    $url = $url+$url_version+'nl.exe'
  }

  ##Estonian			1061
  elseif($LCID -eq "1061"){
    $url = $url+$url_version+'est.exe'
  }

  ##Finnish			1035
  elseif($LCID -eq "1035"){
    $url = $url+$url_version+'fi.exe'
  }

  ##French			1036
  elseif($LCID -eq "1036"){
    $url = $url+$url_version+'fr.exe'
  }

  ##Galician			1110
  elseif($LCID -eq "1110"){
    $url = $url+$url_version+'gl.exe'
  }

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

  ##German			1031
  elseif($LCID -eq "1031"){
    $url = $url+$url_version+'d.exe'
  }

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

  ##Hebrew			1037
  elseif($LCID -eq "1037"){
    $url = $url+$url_version+'he.exe'
  }

  ##Hungarian			1038
  elseif($LCID -eq "1038"){
    $url = $url+$url_version+'hu.exe'
  }

  ##Indonesian		1057
  elseif($LCID -eq "1057"){
    $url = $url+$url_version+'id.exe'
  }

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

  ##Japanese		1041
  elseif($LCID -eq "1041"){
    $url = $url+$url_version+'j.exe'
  }

  ##Korean		1042
  elseif($LCID -eq "1042"){
    $url = $url+$url_version+'kr.exe'
  }

  ##Lithuanian	1063
  elseif($LCID -eq "1063"){
    $url = $url+$url_version+'lt.exe'
  }

  ##Macedonian											0047
  ##Macedonian (Former Yugoslav Republic of Macedonia)	1071
  elseif(($LCID -eq "0047") -or ($LCID -eq "1071")){
    $url = $url+$url_version+'mk.exe'
  }

  ##Norwegian (Bokmål)		1044
  ##Norwegian (Nynorsk)		2068
  elseif(($LCID -eq "1044") -or ($LCID -eq "2068")){
    $url = $url+$url_version+'no.exe'
  }

  ##Persian		0041
  ##Persian Iran	1065
  elseif(($LCID -eq "0041") -or ($LCID -eq "1065")){
    $url = $url+$url_version+'prs.exe'
  }

  ##Polish		1045
  elseif($LCID -eq "1045"){
    $url = $url+$url_version+'pl.exe'
  }

  ##Portuguese - Portugal
  ##Portuguese - Portugal 2070  (pt-pt)
  elseif($LCID -eq "2070"){
    $url = $url+$url_version+'pt.exe'
  }

  ##Portuguese - Brazil
  ##Portuguese - Brazil  1046   (pt-br)
  elseif($LCID -eq "1046"){
    $url = $url+$url_version+'br.exe'
  }

  ##Romanian			1048
  ##Romanian Moldava  2072
  elseif(($LCID -eq "1048") -or ($LCID -eq "2072")){
    $url = $url+$url_version+'ro.exe'
  }

  ##Russian (ru-ru)			1049    
  ##Russian-Moldava (ru-mo)	2073
  elseif(($LCID -eq "1049") -or ($LCID -eq "2073")){
    $url = $url+$url_version+'ru.exe'
  }

  ##Serbian Cyrillic	3098
  elseif($LCID -eq "3098"){
    $url = $url+$url_version+'srbcyr.exe'
  }

  ##Serbian Latin		2074
  elseif($LCID -eq "2074"){
    $url = $url+$url_version+'srblat.exe'
  }

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

  ##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 - 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 = $url+$url_version+'es.exe'
  }

  ##Swedish					1053
  ##Swedish - Finland			2077
  elseif(($LCID -eq "1053") -or ($LCID -eq "2077")){
    $url = $url+$url_version+'sw.exe'
  }

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

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

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

  ##Ukrainian					1058
  elseif($LCID -eq "1058"){
    $url = $url+$url_version+'ukr.exe'
  }

  ##Uzbek (Cyrillic)			2115
  ##Uzbek (Latin)				1091
  elseif(($LCID -eq "2115") -or ($LCID -eq "1091")){
    $url = $url+$url_version+'uz.exe'
  }

  #Valencian
  #Valencian			2051
  elseif($LCID -eq "2051"){
    $url = $url+$url_version+'va.exe'
  }

  ##Vietnamese		1066
  elseif($LCID -eq "1066"){
    $url = $url+$url_version+'vn.exe'
  }

  ##English --- all
  else{
    $url = $url+$url_version+'.exe'
  } 

  Install-ChocolateyPackage -PackageName "$packageName" `
                            -FileType "$installerType" `
                            -SilentArgs "$silentArgs" `
                            -Url "$url" `
                            -Url64bit "$url64" `
                            -ValidExitCodes $validExitCodes
} catch {
	throw 
}

#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
tools\chocolateyUninstall.ps1
$packageName = 'winrar'
$packageSearch = "$packageName *"
$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)" `
                                              -ValidExitCodes $validExitCodes}

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 246992 Thursday, October 5, 2023 Approved
WinRAR 6.23 193893 Wednesday, August 2, 2023 Approved
WinRAR 6.22 135181 Thursday, June 8, 2023 Approved
WinRAR 6.21 213926 Monday, February 20, 2023 Approved
WinRAR 6.20 157239 Monday, January 23, 2023 Approved
WinRAR 6.11.0.20220504 343297 Wednesday, May 4, 2022 Approved
WinRAR 6.11 141662 Friday, March 4, 2022 Approved
WinRAR 6.10.0.20220128 99393 Friday, January 28, 2022 Approved
WinRAR 6.10 30237 Tuesday, January 25, 2022 Approved
WinRAR 6.02 362247 Monday, June 14, 2021 Approved
WinRAR 6.01 166760 Monday, April 12, 2021 Approved
WinRAR 6.0.0.20210102 259968 Saturday, January 2, 2021 Approved
WinRAR 6.00 75949 Monday, December 7, 2020 Approved
WinRAR 5.91.0.20200917 147339 Thursday, September 17, 2020 Approved
WinRAR 5.91 137093 Monday, June 29, 2020 Approved
WinRAR 5.90.0.20200528 51286 Thursday, May 28, 2020 Approved
WinRAR 5.90.0.20200401 91896 Wednesday, April 1, 2020 Approved
WinRAR 5.90 23526 Monday, March 30, 2020 Approved
WinRAR 5.80.0.20200219 77779 Wednesday, February 19, 2020 Approved
WinRAR 5.80.0.20200102 124938 Thursday, January 2, 2020 Approved
WinRAR 5.80 52803 Wednesday, December 11, 2019 Approved
WinRAR 5.71 294816 Wednesday, May 8, 2019 Approved
WinRAR 5.70.0.20190305 56401 Tuesday, March 5, 2019 Approved
WinRAR 5.70 36027 Wednesday, February 27, 2019 Approved

Program

Package

  • Automatically built and uploaded by dtgm

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