Check for WinAutomation Updates
Samantha
![]()
- Joined: Apr 23, 2010
- Posts: 2327
thepla
![]()
- Joined: May 22, 2012
- Posts: 34
Samantha,
I know this scrpt is quite old but I want to check for updates; not sure if notifications are sent my E-mail.
This script does not find relase date, etc from webpage.
I am just learning regex and see where you are searching for release date ad version on web. I did find text in download.html but do not know how to read your script to see where problem is located.
Since it has not been modified by me I have to assume something has changed on your webpage.
thanks
thepla
Samantha
![]()
- Joined: Apr 23, 2010
- Posts: 2327
You're right Thepla,
As we have changed the website, the regular expressions were no longer valid.
I'm attaching a newer version of the script.
Don't forget to attach a daily trigger to it, so that it can check daily for updates.

Samantha
Samantha
![]()
- Joined: Apr 23, 2010
- Posts: 2327
For them who are still on version 3, the attached version can be used

Samantha
ChrisK
![]()
- Joined: Dec 30, 2010
- Posts: 95
Awesome thanks!
thepla
![]()
- Joined: May 22, 2012
- Posts: 34
I think it is broken again. I am getting an error with release date. I did see a new w release was posted a day or so ago and maybe something changed on website.
Thanks,
thepla
kimc
![]()
- Joined: Jan 13, 2011
- Posts: 298
There are several issues with the last version of this job.
1) On Action 11, the current release date of July 5, 2012 is not matching the pattern MMMM dd, yyyy .
1S) Solution : Change the pattern (for now) to MMMM d, yyyy and that will get you past this error.
2) On Action 20, Download from Web, the URL may not be active any longer.
1S) Solution: Well, we're stuck here - just manually download it for now. If you take out the download action, at least the job will tell you that there is a new version. That's my recommendation in the short term.
Cheers,
Kim c.
Samantha
![]()
- Joined: Apr 23, 2010
- Posts: 2327
Oops! Sorry ppl! Did not think about that at the time when i created this!
Just change action 11 (Convert Text to DateTime) to hold the following format and you're good to go!
MMMM d, yyyy
the download url is correct ;)

Samantha
kimc
![]()
- Joined: Jan 13, 2011
- Posts: 298
Samantha,
You may hate me for this but my recommendation since this functionality is SO INCREDIBLY USEFUL is to stick it in an Add-On (written by Samantha) with actions of "Get My Version", "Get Vendor Version", "Download Version" and, wow, that would be INCREDIBLY impressive!! Just my thoughts!
donald
![]()
- Joined: Jul 6, 2012
- Posts: 19
Having a set of built-in, or add-on, actions for this would be great, but until then I believe there's a very simple solution. If the great folks at WA could add a text file to the website that contains the current version, then we could automate everything with a 4 action, 6 line, job (attached).
Here's what I'm thinking:
A file named something like - http://www.winautomation.com/CurrentVersion.txt - could contain the current version and a URL to download it:
Example:
4.0.3.1234*www.winautomation.com/downloads/WinAutomationSetup.exe
This information can be retrieved with a Download from Web action. We'd then use a Split Text action to parse it and compare the current version to a value we store as a persistent variable. If the values don't match then we call another Download from Web action to download the file and then a Set Variable action to update the persistent variable to the current version.
Set the job to trigger on a schedule (daily, weekly, etc). When a new version is release, just update the CurrentVersion.txt file and we’re good-to-go.
Don
PS: I only have version 4.x, I have no idea of this would work in version 3.x.
Samantha
![]()
- Joined: Apr 23, 2010
- Posts: 2327
Ha ha! Sounds good! Heh!
The script is only a temporary solution Joseph, we are working on including this functionality directly within WinAutomation, so please do bear with us!!!

Samantha
Samantha
![]()
- Joined: Apr 23, 2010
- Posts: 2327
It's been noted that the script did not work as the download link is not valid, so .. attached is an updated version of it!

Samantha
kimc
![]()
- Joined: Jan 13, 2011
- Posts: 298
Actually a nicer solution would be just to call a web service that WA exposes. That's about a simple as you can get.
Samantha
![]()
- Joined: Apr 23, 2010
- Posts: 2327
Best solution will be by design support to check for updates which is coming soon!!!

Samantha
Thyzor
![]()
- Joined: Feb 26, 2010
- Posts: 38
Doesn´twork for me. Get stuckedat line 11 =(
Samantha
![]()
- Joined: Apr 23, 2010
- Posts: 2327
Are you sure to have the latest script running?
Just in case, I'm attaching the last version of this script that I have listed and just tested to be working!

Samantha