TUTORIAL - Automated Custom WinRAR setup with Legacy Context Menus Enabled


RickyMoose

Member
Member
Local time
4:56 PM
Posts
28
Visit site
OS
W11 Pro
Hi All,

This is partially in response to the thread:

However I also wanted to more fully solve the issue for myself than what I had before so here is my solution...
I the zip file is ~6k which appears to be too large for me to post so you can grab a copy at:
Winrar_Setup_Files_2024-04-13_16.20.28-Public.zip
and
for the md5 if needed.

MD5: 83FD09A270D6A4FC8C33402222E3CD10
SHA-1: 93D451D6087FE1883536B4F14E3DE565F2BB26D4
SHA-256: 820FB774E8025AD28DA64AD20D5A89E131CA352F4299EBE9B6D4A00664E620E7

I created an animation for this to illustrate the process as well, you can also view it at:
Winrar_setup_Usage_Animation.gif


Here is the READ ME.rtf included in the download:

WinRAR Silent install with custom settings​

By Ricky Moose (STM)

This READ ME will illustrate the process of performing a WinRAR silent install with the custom settings that I use. Under Windows 11 we have the new and LESS improved :poop:show more options:poop:” context menu. This automation will install WinRAR using the LEGACY context menus option along with some custom entries like RAR with DATE.

EG:

1713043957480.png



In the WinRAR GUI you would set these manually via these 2 options:

1713043977649.png


There are 2 main bat files you can run. Because my normal use case is running this install from within a VM via shared folders. and because of a VMware security limitation there is the file staging bat file called: “!Winrar_HighestVersion_stage_then_install.bat” which is used to stage the files to %temp% folder on my VM and then will run the primary file “Winrar_Silent_Install-HighestVersionVariant.bat” which one you run to kick off the process is up to you as they essentially have the same end result but the stager is required as a VM workaround. Under the VM, if I had instead just copied the payload to the desktop for example I could have skipped using the stager bat file.

The primary file requires elevation to import registry keys and will attempt to self-elevate, you will need to allow the UAC warning if your UAC is enabled.

1713043994073.png


Once the process starts, it will scan the current directory for the most current build of WinRAR, you will see in the example I have 3 versions with 7.0 being the most current. If for some reason I had these files and wanted a different version like 6.24 I could simply rename any of the higher builds to exclude them from winrar-x64-*.exe.

You will then be given a 10 second warning on what build the script will install, then the custom settings that I use will get imported via the files:

Winrar_Settings.reg and Winrar_Settings_Enable_Legacy_ContextMenus.reg

The Legacy reg file is meant for Windows 11, so if you are not using win11 just rename the file to skip importing it.

Moving on, WinRAR will get ran one time to allow it to do any 1st time run setup and will then be closed after a few seconds. Afterwards the custom registry files will be imported a 2nd time to re-apply any changes that WinRAR may have modified on 1st run such as the context menu settings.

Because I used the stager, it will then open %temp% so that you can manually delete the staged files if you so choose to do.



NOTE: If after the install you notice that the “show more options” context menu is still enabled for example when you right click on your desktop but not in the temp folder that opens at the end of the process, to fix this you will need to reboot OR you can run the file “RestartExplorerShell_And_CD.cmd” to apply the settings everywhere without rebooting.



IMPORTANT: You will need to download your own WinRAR binary files from WinRAR archiver, a powerful tool to process RAR and ZIP files like in the above example. The script only knows to look for x64 so you will have to modify if using 32bit builds but then you are not using Win 11 at that point.

EG: winrar-x32-700.exe VS winrar-x64-700.exe




Enjoy!!!



 

My Computer

System One

  • OS
    W11 Pro

My Computers

System One System Two

  • OS
    Windows Pro 23H2 Build 22631.4249
    Computer type
    PC/Desktop
    Manufacturer/Model
    Sin-built
    CPU
    Intel(R) Core(TM) i7-4770K CPU @ 3.50GHz (4th Gen?)
    Motherboard
    ASUS ROG Maximus VI Formula
    Memory
    32.0 GB of I forget and the box is in storage.
    Graphics Card(s)
    Gigabyte nVidia GeForce GTX 1660 Super OC 6GB
    Sound Card
    Onboard
    Monitor(s) Displays
    4 x LG 23MP75 - 2 x 24MK430H-B - 1 x Wacom Pro 22" Tablet
    Screen Resolution
    All over the place
    Hard Drives
    Too many to list.
    OS on Samsung 1TB 870 QVO SATA
    PSU
    Silverstone 1500
    Case
    NZXT Phantom 820 Full-Tower Case
    Cooling
    Noctua NH-D15 Elite Class Dual Tower CPU Cooler / 6 x EziDIY 120mm / 2 x Corsair 140mm somethings / 1 x 140mm Thermaltake something / 2 x 200mm Corsair.
    Keyboard
    Corsair K95 / Logitech diNovo Edge Wireless
    Mouse
    Logitech G402 / G502 / Mx Masters / MX Air Cordless
    Internet Speed
    100/40Mbps
    Browser
    All sorts
    Antivirus
    Kaspersky Premium
    Other Info
    I’m on a horse.
  • Operating System
    Windows 11 Pro 23H2 Build: 22631.4249
    Computer type
    Laptop
    Manufacturer/Model
    LENOVO Yoga 7i EVO OLED 14" Touchscreen i5 12 Core 16GB/512GB
    CPU
    Intel Core 12th Gen i5-1240P Processor (1.7 - 4.4GHz)
    Memory
    16GB LPDDR5 RAM
    Graphics card(s)
    Intel Iris Xe Graphics Processor
    Sound Card
    Optimized with Dolby Atmos®
    Screen Resolution
    QHD 2880 x 1800 OLED
    Hard Drives
    M.2 512GB
    Other Info
    …still on a horse.
Personally I wouldn’t run this without being able to read the source code first. You should put it on Github
But not for me, I wouldn’t use it. I don’t know anyone who uses WinRar so much that the context menue design would have any relevance. So it’s now in a neat heading of WinRar? I can’t see the drama.
But well done, I would assume.

I also gave you 10 cookies (in blind faith) 5 for the two 💩 emojis & 5 for the effort.

EDIT: And I am assuming that this script installs WinRAR as unregistered and no fake keys are added to the Registry?
 

My Computers

System One System Two

  • OS
    Windows Pro 23H2 Build 22631.4249
    Computer type
    PC/Desktop
    Manufacturer/Model
    Sin-built
    CPU
    Intel(R) Core(TM) i7-4770K CPU @ 3.50GHz (4th Gen?)
    Motherboard
    ASUS ROG Maximus VI Formula
    Memory
    32.0 GB of I forget and the box is in storage.
    Graphics Card(s)
    Gigabyte nVidia GeForce GTX 1660 Super OC 6GB
    Sound Card
    Onboard
    Monitor(s) Displays
    4 x LG 23MP75 - 2 x 24MK430H-B - 1 x Wacom Pro 22" Tablet
    Screen Resolution
    All over the place
    Hard Drives
    Too many to list.
    OS on Samsung 1TB 870 QVO SATA
    PSU
    Silverstone 1500
    Case
    NZXT Phantom 820 Full-Tower Case
    Cooling
    Noctua NH-D15 Elite Class Dual Tower CPU Cooler / 6 x EziDIY 120mm / 2 x Corsair 140mm somethings / 1 x 140mm Thermaltake something / 2 x 200mm Corsair.
    Keyboard
    Corsair K95 / Logitech diNovo Edge Wireless
    Mouse
    Logitech G402 / G502 / Mx Masters / MX Air Cordless
    Internet Speed
    100/40Mbps
    Browser
    All sorts
    Antivirus
    Kaspersky Premium
    Other Info
    I’m on a horse.
  • Operating System
    Windows 11 Pro 23H2 Build: 22631.4249
    Computer type
    Laptop
    Manufacturer/Model
    LENOVO Yoga 7i EVO OLED 14" Touchscreen i5 12 Core 16GB/512GB
    CPU
    Intel Core 12th Gen i5-1240P Processor (1.7 - 4.4GHz)
    Memory
    16GB LPDDR5 RAM
    Graphics card(s)
    Intel Iris Xe Graphics Processor
    Sound Card
    Optimized with Dolby Atmos®
    Screen Resolution
    QHD 2880 x 1800 OLED
    Hard Drives
    M.2 512GB
    Other Info
    …still on a horse.
Personally I wouldn’t run this without being able to read the source code first. You should put it on Github
But not for me, I wouldn’t use it. I don’t know anyone who uses WinRar so much that the context menue design would have any relevance. So it’s now in a neat heading of WinRar? I can’t see the drama.
But well done, I would assume.

I also gave you 10 cookies (in blind faith) 5 for the two 💩 emojis & 5 for the effort.

EDIT: And I am assuming that this script installs WinRAR as unregistered and no fake keys are added to the Registry?

All the source is bat and reg files so anyone can view it.

I just signed up for a Github account and hope I did it correctly since I guess that I am now a Git Noob ;-):

I will leave the Google drive link in case anyone wants to grab the files from there instead.


EDIT: And I am assuming that this script installs WinRAR as unregistered and no fake keys are added to the Registry?
Nope, there are no keys included in the project. The animation mentions the file WinRarKeys.exe. This is what the bat script looks for which is just a WinRAR SFX file that contains my keys. The script will just skip that step if you do not own WinRAR and that file does not exist. The SFX that I use just extracts the key files to C:\Program Files\WinRAR\ with overwrite enabled so I don't have to manually stage them after deployment.

Batch:
REM Check if the file WinRarKeys.exe exists.
REM This file is a Winrar SFX which will expand into "C:\Program Files\WinRAR\" where the key files would go.
REM If you do not create this on your own you will have to manually copy over your own files or modify this script.

if exist "WinRarKeys.exe" (
    echo.
    echo File WinRarKeys.exe found. Executing...
    rem   start "" "WinRarKeys.exe" /s -O+
    rem REMINDER: The -O+ method does not work for me so you have to add  Overwrite=1 to the sfx comments
    "WinRarKeys.exe" /s
) else (
    echo.
    echo File WinRarKeys.exe not found you will have to supply your on registration files manually.
    timeout /t 3
)



Code:
;The comment below contains SFX script commands

Path=C:\Program Files\WinRAR
Title=My personal Winrar keys install
Text
{
This will install the keys to C:\Program Files\WinRAR
}



If anyone does not trust the reg keys that are included they can simply setup their own copy of WinRAR the way they like it and then re-export the settings and replace the file, they will of course have to manually capture the context menu keys as this is not part of the built in WinRAR settings export function.

I used Total Uninstall to capture the context menuy keys because it has an easy export command to only export added or changed keys and then I can just remove the unwanted bits, but to each his own.

Cheers..
 

My Computer

System One

  • OS
    W11 Pro
  • Like
Reactions: OAT

My Computers

System One System Two

  • OS
    Windows Pro 23H2 Build 22631.4249
    Computer type
    PC/Desktop
    Manufacturer/Model
    Sin-built
    CPU
    Intel(R) Core(TM) i7-4770K CPU @ 3.50GHz (4th Gen?)
    Motherboard
    ASUS ROG Maximus VI Formula
    Memory
    32.0 GB of I forget and the box is in storage.
    Graphics Card(s)
    Gigabyte nVidia GeForce GTX 1660 Super OC 6GB
    Sound Card
    Onboard
    Monitor(s) Displays
    4 x LG 23MP75 - 2 x 24MK430H-B - 1 x Wacom Pro 22" Tablet
    Screen Resolution
    All over the place
    Hard Drives
    Too many to list.
    OS on Samsung 1TB 870 QVO SATA
    PSU
    Silverstone 1500
    Case
    NZXT Phantom 820 Full-Tower Case
    Cooling
    Noctua NH-D15 Elite Class Dual Tower CPU Cooler / 6 x EziDIY 120mm / 2 x Corsair 140mm somethings / 1 x 140mm Thermaltake something / 2 x 200mm Corsair.
    Keyboard
    Corsair K95 / Logitech diNovo Edge Wireless
    Mouse
    Logitech G402 / G502 / Mx Masters / MX Air Cordless
    Internet Speed
    100/40Mbps
    Browser
    All sorts
    Antivirus
    Kaspersky Premium
    Other Info
    I’m on a horse.
  • Operating System
    Windows 11 Pro 23H2 Build: 22631.4249
    Computer type
    Laptop
    Manufacturer/Model
    LENOVO Yoga 7i EVO OLED 14" Touchscreen i5 12 Core 16GB/512GB
    CPU
    Intel Core 12th Gen i5-1240P Processor (1.7 - 4.4GHz)
    Memory
    16GB LPDDR5 RAM
    Graphics card(s)
    Intel Iris Xe Graphics Processor
    Sound Card
    Optimized with Dolby Atmos®
    Screen Resolution
    QHD 2880 x 1800 OLED
    Hard Drives
    M.2 512GB
    Other Info
    …still on a horse.
Personally I wouldn’t run this without being able to read the source code first. You should put it on Github
But not for me, I wouldn’t use it. I don’t know anyone who uses WinRar so much that the context menue design would have any relevance. So it’s now in a neat heading of WinRar? I can’t see the drama.
But well done, I would assume.

I also gave you 10 cookies (in blind faith) 5 for the two 💩 emojis & 5 for the effort.

EDIT: And I am assuming that this script installs WinRAR as unregistered and no fake keys are added to the Registry?
I have been using WinRar for years and had never needed anything extra to have it in the context menu.
 

My Computers

System One System Two

  • OS
    Win 11 Pro 26100.2454
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell Alienware Aurora R16
    CPU
    Intel Core i9 14900F (24 -Core, 68 MB Total Cache)
    Motherboard
    Dell Alienware
    Memory
    32GB DDR5
    Graphics Card(s)
    RTX 4080 Super
    Sound Card
    Intel but not working
    Monitor(s) Displays
    Corsair
    Screen Resolution
    2560 X 1440
    Hard Drives
    1-2TB Samsung 990 Pro PCIe NVMe M2 SSD
    1-4TB Samsung 990 Pro PCIe NVMe M2 SSD
    PSU
    1000 Watt Platinum Dell
    Case
    Alieware
    Cooling
    Liquid Closed Loop
    Keyboard
    Corsair K63 Wireless
    Mouse
    Corsair M65 Pro
    Internet Speed
    1000Gb's Down-20 Up
    Browser
    Firefox 133.0
    Antivirus
    Defender
    Other Info
    Very Quiet And Fast
    CyberPower UPS CP1500PFCLCD
  • Operating System
    Optimum 11 24H2 Build 26100.2454
    Computer type
    PC/Desktop
    Manufacturer/Model
    IBuypower
    CPU
    Intel Core i3 1315u
    Motherboard
    ASRock
    Memory
    32GB DDR5
    Graphics card(s)
    PNY RTX 4017
    Sound Card
    onboard
    Monitor(s) Displays
    Dell 2419HGCF
    Screen Resolution
    1920 X 1080
    Hard Drives
    Kingston 2TB SNV2S20006 PCIe 4.0 M.2.2280
    SAMSUNG 980 PRO SSD 2TB, PCIe 4.0 M.2 2280
    PSU
    850Watt
    Case
    Small
    Cooling
    Closed loop Liquid
    Mouse
    IBP
    Keyboard
    IBP
    Internet Speed
    1GB
    Browser
    Firefox 133.0
    Antivirus
    Windows Defender
    Other Info
    Noisy but fast
I have been using WinRar for years and had never needed anything extra to have it in the context menu.
Either have I. I did prefer it without its own tier in the context menu but I don’t need to access it enough to care.
 

My Computers

System One System Two

  • OS
    Windows Pro 23H2 Build 22631.4249
    Computer type
    PC/Desktop
    Manufacturer/Model
    Sin-built
    CPU
    Intel(R) Core(TM) i7-4770K CPU @ 3.50GHz (4th Gen?)
    Motherboard
    ASUS ROG Maximus VI Formula
    Memory
    32.0 GB of I forget and the box is in storage.
    Graphics Card(s)
    Gigabyte nVidia GeForce GTX 1660 Super OC 6GB
    Sound Card
    Onboard
    Monitor(s) Displays
    4 x LG 23MP75 - 2 x 24MK430H-B - 1 x Wacom Pro 22" Tablet
    Screen Resolution
    All over the place
    Hard Drives
    Too many to list.
    OS on Samsung 1TB 870 QVO SATA
    PSU
    Silverstone 1500
    Case
    NZXT Phantom 820 Full-Tower Case
    Cooling
    Noctua NH-D15 Elite Class Dual Tower CPU Cooler / 6 x EziDIY 120mm / 2 x Corsair 140mm somethings / 1 x 140mm Thermaltake something / 2 x 200mm Corsair.
    Keyboard
    Corsair K95 / Logitech diNovo Edge Wireless
    Mouse
    Logitech G402 / G502 / Mx Masters / MX Air Cordless
    Internet Speed
    100/40Mbps
    Browser
    All sorts
    Antivirus
    Kaspersky Premium
    Other Info
    I’m on a horse.
  • Operating System
    Windows 11 Pro 23H2 Build: 22631.4249
    Computer type
    Laptop
    Manufacturer/Model
    LENOVO Yoga 7i EVO OLED 14" Touchscreen i5 12 Core 16GB/512GB
    CPU
    Intel Core 12th Gen i5-1240P Processor (1.7 - 4.4GHz)
    Memory
    16GB LPDDR5 RAM
    Graphics card(s)
    Intel Iris Xe Graphics Processor
    Sound Card
    Optimized with Dolby Atmos®
    Screen Resolution
    QHD 2880 x 1800 OLED
    Hard Drives
    M.2 512GB
    Other Info
    …still on a horse.
I have been using WinRar for years and had never needed anything extra to have it in the context menu.
I tend to agree but one must acknowledge and be thankful for the effort.
So thanks @RickyMoose.
 
Last edited:

My Computers

System One System Two

  • OS
    Windows 11 Pro for Workstations
    Computer type
    Laptop
    Manufacturer/Model
    ASUSTeK COMPUTER INC. TUF Gaming FX705GM
    CPU
    2.20 gigahertz Intel i7-8750H Hyper-threaded 12 cores
    Motherboard
    ASUSTeK COMPUTER INC. FX705GM 1.0
    Memory
    24428 Megabytes
    Graphics Card(s)
    Intel(R) UHD Graphics 630 / NVIDIA GeForce GTX 1060
    Sound Card
    Intel(R) Display Audio / Realtek(R) Audio
    Monitor(s) Displays
    Integrated Monitor (17.3"vis)
    Screen Resolution
    FHD 1920X1080 16:9
    Hard Drives
    2 SSD SATA/NVM Express 1.3
    WDS500G2B0A-00SM50 500.1 GB
    WDCSDAPNUW-1002 256 GB
    PSU
    19V DC 6.32 A 120 W
    Cooling
    Dual Fans
    Mouse
    MS Bluetooth
    Internet Speed
    Fiber 1GB Cox -us & 400MB Orange-fr
    Browser
    Edge Canary- Firefox Nightly-Chrome Dev
    Antivirus
    Windows Defender
    Other Info
    VMs of Windows 11 stable/Beta/Dev/Canary
    VM of XeroLinux- Arch based & Debian 12
  • Operating System
    Windows 11 Insider Canary
    Computer type
    Laptop
    Manufacturer/Model
    ASUS X751BP
    CPU
    AMD Dual Core A6-9220
    Motherboard
    ASUS
    Memory
    8 GB
    Graphics card(s)
    AMD Radeon R5 M420
    Sound Card
    Realtek
    Monitor(s) Displays
    17.3
    Screen Resolution
    1600X900 16:9
    Hard Drives
    1TB 5400RPM

My Computers

System One System Two

  • OS
    Win 11 Pro 26100.2454
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell Alienware Aurora R16
    CPU
    Intel Core i9 14900F (24 -Core, 68 MB Total Cache)
    Motherboard
    Dell Alienware
    Memory
    32GB DDR5
    Graphics Card(s)
    RTX 4080 Super
    Sound Card
    Intel but not working
    Monitor(s) Displays
    Corsair
    Screen Resolution
    2560 X 1440
    Hard Drives
    1-2TB Samsung 990 Pro PCIe NVMe M2 SSD
    1-4TB Samsung 990 Pro PCIe NVMe M2 SSD
    PSU
    1000 Watt Platinum Dell
    Case
    Alieware
    Cooling
    Liquid Closed Loop
    Keyboard
    Corsair K63 Wireless
    Mouse
    Corsair M65 Pro
    Internet Speed
    1000Gb's Down-20 Up
    Browser
    Firefox 133.0
    Antivirus
    Defender
    Other Info
    Very Quiet And Fast
    CyberPower UPS CP1500PFCLCD
  • Operating System
    Optimum 11 24H2 Build 26100.2454
    Computer type
    PC/Desktop
    Manufacturer/Model
    IBuypower
    CPU
    Intel Core i3 1315u
    Motherboard
    ASRock
    Memory
    32GB DDR5
    Graphics card(s)
    PNY RTX 4017
    Sound Card
    onboard
    Monitor(s) Displays
    Dell 2419HGCF
    Screen Resolution
    1920 X 1080
    Hard Drives
    Kingston 2TB SNV2S20006 PCIe 4.0 M.2.2280
    SAMSUNG 980 PRO SSD 2TB, PCIe 4.0 M.2 2280
    PSU
    850Watt
    Case
    Small
    Cooling
    Closed loop Liquid
    Mouse
    IBP
    Keyboard
    IBP
    Internet Speed
    1GB
    Browser
    Firefox 133.0
    Antivirus
    Windows Defender
    Other Info
    Noisy but fast

My Computers

System One System Two

  • OS
    Windows 11 Pro for Workstations
    Computer type
    Laptop
    Manufacturer/Model
    ASUSTeK COMPUTER INC. TUF Gaming FX705GM
    CPU
    2.20 gigahertz Intel i7-8750H Hyper-threaded 12 cores
    Motherboard
    ASUSTeK COMPUTER INC. FX705GM 1.0
    Memory
    24428 Megabytes
    Graphics Card(s)
    Intel(R) UHD Graphics 630 / NVIDIA GeForce GTX 1060
    Sound Card
    Intel(R) Display Audio / Realtek(R) Audio
    Monitor(s) Displays
    Integrated Monitor (17.3"vis)
    Screen Resolution
    FHD 1920X1080 16:9
    Hard Drives
    2 SSD SATA/NVM Express 1.3
    WDS500G2B0A-00SM50 500.1 GB
    WDCSDAPNUW-1002 256 GB
    PSU
    19V DC 6.32 A 120 W
    Cooling
    Dual Fans
    Mouse
    MS Bluetooth
    Internet Speed
    Fiber 1GB Cox -us & 400MB Orange-fr
    Browser
    Edge Canary- Firefox Nightly-Chrome Dev
    Antivirus
    Windows Defender
    Other Info
    VMs of Windows 11 stable/Beta/Dev/Canary
    VM of XeroLinux- Arch based & Debian 12
  • Operating System
    Windows 11 Insider Canary
    Computer type
    Laptop
    Manufacturer/Model
    ASUS X751BP
    CPU
    AMD Dual Core A6-9220
    Motherboard
    ASUS
    Memory
    8 GB
    Graphics card(s)
    AMD Radeon R5 M420
    Sound Card
    Realtek
    Monitor(s) Displays
    17.3
    Screen Resolution
    1600X900 16:9
    Hard Drives
    1TB 5400RPM
Uninstalled WinRAR completely , coz its a contextmenu problem .
Using latest Winzip , muuuch better , only wont remember passwords ............. :-)
 

My Computer

System One

  • OS
    Windows11 Pro
    Computer type
    PC/Desktop
    Manufacturer/Model
    Asus
    CPU
    i7
    Motherboard
    z97k
    Memory
    32GB
    Graphics Card(s)
    nVidia
    Sound Card
    Realtek
    Hard Drives
    3
    Cooling
    air

Latest Support Threads

Back
Top Bottom