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:
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 “show more options” context menu. This automation will install WinRAR using the LEGACY context menus option along with some custom entries like RAR with DATE.
EG:
In the WinRAR GUI you would set these manually via these 2 options:
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.
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!!!
This is partially in response to the thread:
Can't get Winrar in Context menu despite shell integration & reinstallation
Open WinRAR as administrator . Options---->Settings---->Integration---->Shell Intergration--->enable 'Legacy context menus' . Cheers
www.elevenforum.com
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
Winrar_Setup_Files_2024-04-13_16.20.28-Public.md5
drive.google.com
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 “show more options” context menu. This automation will install WinRAR using the LEGACY context menus option along with some custom entries like RAR with DATE.
EG:
In the WinRAR GUI you would set these manually via these 2 options:
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.
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