So I am using InnoSetup 6 which natively supports downloading files from the internet during installation. I have figured out downloading files given a direct link, from this thread [Inno Setup: Install file from Internet](https://stackoverflow.com/questions/6887428/inno-setup-install-file-from-internet#66100456)

However, I can't for the life of me figure out how to download the latest version of a file given a permalink URL. My specific example is to download the Microsoft Hosting package.
<https://dotnet.microsoft.com/permalink/dotnetcore-current-windows-runtime-bundle-installer>

Going to this page automatically downloads the latest package.
Inno doesn't like this link (or I don't know how to get Inno to use it) since it doesn't point to the direct file. If I use the direct link (<https://download.visualstudio.microsoft.com/download/pr/24847c36-9f3a-40c1-8e3f-4389d954086d/0e8ae4f4a8e604a6575702819334d703/dotnet-hosting-5.0.6-win.exe>) this works for obvious reasons.

I'd like to always download the latest, but I'm not sure how to accomplish this. Any suggestions?
Adding super basic code being used...

```pascal
DownloadPage.Clear;
DownloadPage.Add('https://dotnet.microsoft.com/permalink/dotnetcore-current-windows-runtime-bundle-installer', 'dotnet-hosting.exe', '');
DownloadPage.Show;

```