I have a custom prerequisite set up for MS WebView2, with the URL https://go.microsoft.com/fwlink/p/?LinkId=2124703. This is Microsoft's permalink that redirects to the latest version of the WebView2 runtime. It currently does a 301 redirect to https://msedge.sf.dl.delivery.mp.micros ... 2Setup.exe, but this will change next time MS updates the WebView2 runtime.
In AI 20.1, it worked. In AI 20.9, it no longer works.
The issue seems to be how AI is handling a URL that is a redirect rather than a direct link to a .exe file. It seems to be using the original URL to name the downloaded file, instead of the URL it got redirected to.
In AI 20.1, the downloaded file got saved in the temp folder as "go.microsoft.com", and I guess it ran successfully because by coincidence, .com is an executable file extension.
AI 20.9 saves the downloaded file as "LinkId=2124703". Windows doesn't know what to do with that and throws up the "How do you want to open this file" dialog.
How do I handle this? Can I tell AI what name to give the downloaded file?