download Custom Quick Support Module from script and recognize it as new version

Highlighted
Posted by
Henagon

download Custom Quick Support Module from script and recognize it as new version

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.

4 Replies
4 Replies
Highlighted
Posted by
Henagon

Re: download Custom Quick Support Module from script and recognize it as new version

Have you had any replies? I'm wanting to do the same. Seems to redirect then expire the link.

Highlighted
Posted by
Henagon

Re: download Custom Quick Support Module from script and recognize it as new version

Unfortunately I had no replies.

My downlaod works when I use
curl
-h "Mozilla/5.0 (Windows NT 10.0; Win64; x64)"
- f
-s
https://customdesign.teamviewer.com/download/version_14x/id_of_our_/TeamViewerQS.exe
-o TeamViewerQS.exe

but only if I tried the download whithin a browser a short time before.

Highlighted
Posted by TeamViewer Staff
TeamViewer Staff

Re: download Custom Quick Support Module from script and recognize it as new version

Hello,

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.

Team Lead Product Development (Enterprise)

Did my reply answer your question? To help others, please accept it as solution. Thanks!
Highlighted
Posted by
Henagon

Re: download Custom Quick Support Module from script and recognize it as new version

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.