Automated download of RDM zip version for portable

Automated download of RDM zip version for portable

avatar

Hello, i'm trying to create a (somewhat) simple script to download/fetch the latest version of RDM zip file to create a portable version on an as needed basis. I have automated the .NET portion and the folder structure. But finding the latest version of the .zip for portable installs from your site is challenging.

I was previously able to parse the URL and filename and SHA256 hash as well from your website.
https://devolutions.net/remote-desktop-manager/download/thank-you/

Youve recently changed the download page and now the page is much different.

Can you create a simple JSON page much like Microsoft (GitHub?) does where i can pull the filename, Download URL and hash? Or do you currently already have that without having to Invoke-Webrequest the webpage and regex the content?

Thanks!

Example for DotNet
https://dotnetcli.blob.core.windows.net/dotnet/release-metadata/10.0/releases.json

PS. I understand if you dont want users automating downloads and bypassing your HTML pages, but this would be a nice nitch feature.

All Comments (3)

avatar

Hi,

You can use https://devolutions.net/productinfo.json - a nice JSON file with all the information you'd need, and it's easy to consume from a PowerShell script.

Best regards,

Marc-André Moreau

avatar

OMG! YES! Exactly what i was looking for! Thank you so much!

avatar

This took me about 30 seconds to get my answer.

$RDMJSON = (Invoke-WebRequest -UseBasicParsing https://devolutions.net/productinfo.json).content | ConvertFrom-Json
$RDMURL  = ($RDMJSON.RDMWindows.Current.Files | where {$_.type -eq "zip"}).url
$RDMHash = ($RDMJSON.RDMWindows.Current.Files | where {$_.type -eq "zip"}).hash

Ends in 6 days