Skip to main content
adamk82433502
Participant
June 3, 2021
Question

FTP Downloads

  • June 3, 2021
  • 2 replies
  • 3559 views

I use a CURL script that fetches the latest Adobe reader version and installs it as we install Adobe reader on all of our computers.

 

The script works fine as it always fetched the latest version.

 

however the CURL part that does the downloaded always gets stuck going extremely slow.  (We get 300mbps)

 

Not sure if the FTP server is just limited to >400kbps.  Or if it's a problem with my script?

 

Anyone else have this issue?

This topic has been closed for replies.

2 replies

try67
Community Expert
Community Expert
June 4, 2021

Are you aware that Adobe stopped uploading the latest versions of Reader to their FTP servers a while ago?

adamk82433502
Participant
June 4, 2021

No this is news to me.

Do you know where I can get the last download with a static link?
I need a link that never changes so it won't break and will continue to work.

See the script I was using before below.   If I can just download it with CURL without needing to scan an FTP server first that would be amazing.

 

Write-Host "Adobe DC Reader Install (Silent)"
Write-Host "=============================="`n

Try {
	Write-Host "Creating directory to save install files..." -NoNewLine
	New-Item -ItemType Directory -Force -Path C:\temp | Out-Null
	Write-Host "Done"

	$FTPFolderUrl = "ftp://ftp.adobe.com/pub/adobe/reader/win/AcrobatDC/"

	Write-Host "Connecting to Adobe's FTP server and getting directory listings..." -NoNewLine
	$FTPRequest = [System.Net.FtpWebRequest]::Create("$FTPFolderUrl") 
	$FTPRequest.Method = [System.Net.WebRequestMethods+Ftp]::ListDirectory
	$FTPResponse = $FTPRequest.GetResponse()
	$ResponseStream = $FTPResponse.GetResponseStream()
	$FTPReader = New-Object System.IO.Streamreader -ArgumentList $ResponseStream
	$DirList = $FTPReader.ReadToEnd()
	Write-Host "Done"

	Write-Host "Finding latest installer..." -NoNewLine
	#from Directory Listing get last entry in list, but skip one to avoid the 'misc' dir
	$LatestUpdate = $DirList -split '[\r\n]' | Where {$_} | Select -Last 1 -Skip 1
	Write-Host "Done"

	Write-Host "Building dynamic strings..." -NoNewLine
	$LatestFile = "AcroRdrDC" + $LatestUpdate + "_en_US.exe"
	$DownloadURL = "$FTPFolderUrl$LatestUpdate/$LatestFile"
	Write-Host "Done"

	Write-Host `n"Starting download using CURL (This may take some time as Adobe's FTP servers have restrictions)..."
	.\curl.exe "$DownloadURL" -o "C:\temp\$LatestFile" -NoNewLine

	Write-Host `n"Starting Unattended Install..." -NoNewLine
	Start-Process -Wait -NoNewWindow -FilePath "C:\temp\$LatestFile" -ArgumentList "/sAll /rs /msi EULA_ACCEPT=YES"
	Write-Host "Done"
} Catch {
	Write-Host "ERROR: ($_)"`n
}

 

adamk82433502
Participant
June 4, 2021

Meant to say Latest**    I need the script to get the newest version every time.

kglad
Community Expert
Community Expert
June 3, 2021

<moved from download&install>