thelimp Posted January 26, 2023 Report Share Posted January 26, 2023 Hello, i want to add this new app to Ketarin, but i get this error : Regedix The downloaded file is not a binary file type (text/html; charset=UTF-8). Possibly there is an error page. Status code: 200 (OK) (https://regedix.webrox.fr/download.php?v=1.0.1&file=1.0.1/Regedix_installer-1.0.1-x64.exe) I understand the issue comes from the url, but i don't know how to solve it... can tou help me ? Website : https://regedix.webrox.fr/ Download url : https://regedix.webrox.fr/download.php?v={version}&file={version}/Regedix_installer-{version}-x64.exe Thank you ! Link to comment Share on other sites More sharing options...
necrox Posted March 26, 2023 Report Share Posted March 26, 2023 Hi, try something like this: Variable: version Contents from URL: https://regedix.webrox.fr Use regular expression: (?<=Regedix_installer-)([0-9.\-]{2,})(?=.exe) Variable: download Contents from URL: https://regedix.webrox.fr Use regular expression: (download.php[^']*\.exe) Variable: url Textual content: https://regedix.webrox.fr/{download} Link to comment Share on other sites More sharing options...
shawn Posted March 27, 2023 Report Share Posted March 27, 2023 @thelimpIn response to the question, "why doesn't just replacing the version number work", I suspect the reason is that in two of the version replacements it uses the version number and "major.minor.patch.build" and in one of them it uses only "major.minor.patch". You could try to anticipate this and fiddle with the version number in the download URL, but in these cases I find it is better to just collect the real download URL directly from the site as @necrox did in the previous comment. You never know when the author will change link behavior and use the full version number or an abbreviated number in one or another place. Link to comment Share on other sites More sharing options...
necrox Posted March 30, 2023 Report Share Posted March 30, 2023 You are definitely right! Thanks for the hint. Link to comment Share on other sites More sharing options...
thelimp Posted April 11, 2023 Author Report Share Posted April 11, 2023 Hi, Thank you very much to both of you. i definitely have to learn how regex works... Link to comment Share on other sites More sharing options...
Knightmare Posted April 19, 2023 Report Share Posted April 19, 2023 On 4/11/2023 at 3:58 AM, thelimp said: Hi, Thank you very much to both of you. i definitely have to learn how regex works... Same here Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now