Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adobe Reader Recipe needs update #84

Closed
jak552 opened this issue Jan 5, 2021 · 2 comments
Closed

Adobe Reader Recipe needs update #84

jak552 opened this issue Jan 5, 2021 · 2 comments

Comments

@jak552
Copy link
Contributor

jak552 commented Jan 5, 2021

#85

<PrefetchScript>$latestVersion = (((Invoke-WebRequest https://www.adobe.com/devnet-docs/acrobatetk/tools/ReleaseNotesDC/index.html) |Select-Object -ExpandProperty Links | where {$_.outertext -like "1* Planned Update, *"} |where {$_.href -like "continuous*"}|Sort-Object -Property innerText -Descending).innerText).Split(" ").replace(".","")[0]
<PrefetchScript>$latestVersion = (((Invoke-WebRequest https://www.adobe.com/devnet-docs/acrobatetk/tools/ReleaseNotesDC/index.html) |Select-Object -ExpandProperty Links | where {$_.outertext -like "2* Planned Update, *"} |where {$_.href -like "continuous*"}|Sort-Object -Property innerText -Descending).innerText).Split(" ").replace(".","")[0]

I noticed the other day my reader app hadn't updated. I did do a quick test to ensure 20.X is the continuation of 19.X. Installed 19.X and initiated an update via the app itself which took me to 20.X.

Something people can easily update themselves but seems a good idea to update the base recipe as well.

If you ever start up a donation site (paypal or whatever) shoot me the details. Your script has saved me hundreds of hours. Least I can do is buy your next cup of coffee.

@asjimene asjimene closed this as completed Jan 7, 2021
@rowbot-99
Copy link

this is actually failing with the following error: you cannot call a method on a null-valued expression.

I have trying to get it fixed but no luck.

also, thanks for this amazing tool. much appreciated.

@rowbot-99
Copy link

rowbot-99 commented Mar 29, 2021

Ok I have figured it out, this is what I used to get it to work:

$latestVersion = invoke-webrequest -Uri https://adobe.com/devnet-docs/acrobatetk/tools/ReleaseNotesDC/index.html -UseBasicParsing | select-object -ExpandProperty Links | select -ExpandProperty outerHTML
$pattern = "Planned"
$first = $latestVersion -match $pattern | Select-Object -First 1 | Select-String -Pattern "\d\d.\d\d\d.\d\d\d\d\d"
$first = $first.Matches.Value
$latestVersion = $first.replace(".","")
$URL = "https://ardownload2.adobe.com/pub/adobe/reader/win/AcrobatDC/$($latestVersion)/AcroRdrDC$($latestVersion)_en_US.exe"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants