in discussion General discussion / ReScene » preprardir doesn't work with the latest winrar installers yet?
I threw together a powershell script inspired by XP10's snippet.
I requires WinRAR to be installed to "C:\Program Files\WinRAR\Rar.exe" (typical x64 install path for WinRAR).
It is also recommended to have a more recent WinRAR version installed, which can handle RAR5 setups (that's where the python implementation probably fails).
The script expects your setup files to look either like this: winrar-x64-<version>.exe or wrar<version>.exe
They can all be in the same folder.
Drop this script in the same folder where all your setups are and run it with this command:
powershell -executionpolicy bypass -File .\preprardir.ps1
The script will create a x86 and x64 folder and sort the extracted rar versions accordingly - I don't know that even matters for pyReScene and my implemented "logic" is crap but it works.
The script will also rename the extracted Rar.exe files just like the python version did.
It was tested against the "<=4.20 + betas" from this page: http://rescene.wikidot.com/rar-versions and pack I created with newer WinRAR version (5.50b1 up to 7.00b4) - please mirror it.
https://www.mediafire.com/file/jvgoh37eq71d6og/RARSETUP-X64-511%252B550b1-to-700b4.rar