API or URL to show latest or all version of RDM

API or URL to show latest or all version of RDM

0 vote

avatar

Hello,
Would it be possible to have a webpage on your site in order to query all/latest version of RDM? If yes can we query if using an API or URL that provides a JSON file containing the version info?

This would be used internally so we can query the version and auto-download the version in order to package it and have it for workstations to auto-update w/o the need of admin rights.

Thanks,

All Comments (5)

avatar

it would be great to have a script that downloads the latest version, and installs along with any dependencies. I use the following, but have to update code each time a new version or RDM or dependencies is released. Would be a little simpler if there was a permalink that allways pointed to most recent MSI for RDM, and installer had a parameter to automatically install dependencies

#Install PowerShell 7
if (-not (Test-Path "C:\Program Files\PowerShell\7\pwsh.exe"))
{
$msi = "\\fileserver.domain.local\install$\Microsoft\Powershell\v7.4\PowerShell-7.4.1-win-x64.msi"
Write-Host "Installing $msi ..."
Start-Process -FilePath ("msiexec.exe") `
-ArgumentList "/i $msi /quiet ADD_EXPLORER_CONTEXT_MENU_OPENPOWERSHELL=1 ADD_FILE_CONTEXT_MENU_RUNPOWERSHELL=1 ENABLE_PSREMOTING=1 REGISTER_MANIFEST=1 USE_MU=1 ENABLE_MU=1 ADD_PATH=1" -Wait
}

## Install Devolutions RDM
if (-not (Test-Path "C:\Program Files\Devolutions\Remote Desktop Manager\RemoteDesktopManager.exe"))
{
Write-Host "Installing .NET 8.0 Desktop Runtime (v8.0.3)..."
$url = "https://download.visualstudio.microsoft.com/download/pr/51bc18ac-0594-412d-bd63-18ece4c91ac4/90b47b97c3bfe40a833791b166697e67/windowsdesktop-runtime-8.0.3-win-x64.exe"
$exe = $env:TEMP + "\windowsdesktop-runtime-8.0.3-win-x64.exe"
Invoke-WebRequest -Uri $url -OutFile $exe -ErrorAction SilentlyContinue
Start-Process -FilePath ($exe) `
-ArgumentList "/install /quiet /norestart" -Wait -NoNewWindow

Write-Host "Installing Remote Desktop Manager..."
$url = "https://cdn.devolutions.net/download/Setup.RemoteDesktopManager.2024.1.18.0.msi"
$msi = $env:TEMP + "\rdm.msi"
Invoke-WebRequest -Uri $url -OutFile $msi -ErrorAction SilentlyContinue
Start-Process -FilePath ("msiexec.exe") `
-ArgumentList "/i $msi /qn" -Wait -NoNewWindow

Copy-Item -Path "\\fileserver.domain\install$\Devolutions\RemoteDesktopManager.cfg" -Destination "C:\Program Files\Devolutions\Remote Desktop Manager\default.cfg" -Verbose

#Force loading of default.cfg without prompting users
New-Item -Path "HKLM:\SOFTWARE\Policies" -Name "Devolutions"
New-Item -Path "HKLM:\SOFTWARE\Policies\Devolutions" -Name "RemoteDesktopManager"
Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Devolutions\RemoteDesktopManager\" -Name ForceDefaultConfigurationLoading -Value 1

Install-Module -Name Devolutions.PowerShell -Force -Scope AllUsers
#Install-Module -Name Devolutions.Server -Force -Scope AllUsers -AllowClobber

}

avatar

hi JM2,

unfortunately we are not given admin permissions and not to download the zip version everytime, our packaging team can create a package and auto-update it if they have a way to query for new version

avatar

Hello,
This is not a json file but it could be useful and it's what we use in our application

https://forum.devolutions.net/topics/38537/latest-version-download

Regards

David Hervieux

avatar

hi david,
I have asked the question on my end to see if this link would work.

Is there anything similar that would contain the version in zip format? I see the link you provided only has the exe and msi.

Thanks,

avatar

Hello,
If you take a look at productinfo.htm, it's plain text with the extension .htm and contains the zip information:

https://devolutions.net/productinfo.htm

Regards

David Hervieux