I want to automate the distribution of the latest version of our Custom Quick Support Module.
When I open "https://get.teamviewer.com/OurCustomQSName" with any browser, the download starts immediately.
In my script I use curl. The download from the original URL does not work.
Which parameters do I have to specify to get the current version in my language?
I found that I can use the URL "https://customdesign.teamviewer.com/download/version_14x/ourqssupportid/TeamViewerQS.exe" and have to specify a UserAgent, e.g. "Mozilla/5.0 (Windows NT 10.0; Win64; x64)" to get version 14.x.
I would like to have the script working with the next version without change.
After the download I want to check the version number of the downloaded file to make sure it is a newer version before making the new file available.
Have you had any replies? I'm wanting to do the same. Seems to redirect then expire the link.
Unfortunately I had no replies.
My downlaod works when I use
-h "Mozilla/5.0 (Windows NT 10.0; Win64; x64)"
but only if I tried the download whithin a browser a short time before.
I've just tried it with the following Powershell script and I got the correct executable directly:
Invoke-WebRequest -Uri https://customdesign.teamviewer.com/download/version_14x/%CUSTOMIZATIONID%/TeamViewerQS.exe -OutFile "$env:Temp\TeamViewer_QS.exe"
You need to replace "%CUSTOMIZATIONID%" with your customization id.
The funny thing about this:
this link only works a short time after you tried to download the qs with your browser.
It looks as it is build just in time and remains available only for a short time.
A "cold" call of the link causes a 404 message:
Invoke-WebRequest : Server Error - 404
File or directory not found.