Jump to content

Get current version from Internet


Recommended Posts

do you want the current version installed on your system, or the latest version available from the vendor?  both are doable but very different animals, and the latter requires us knowing the specific app, or using something like chocolatey.

,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-.
|(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/
(_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_)
| | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) (
| | | | |)| | \ / | | | | | |)| | `--. | |) \ | |
`-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_|
'-' '-' (__) (__) (_) (__)

Link to comment
Share on other sites

Otherwise, my second option is to have a text file with the name being the current version and reading that.  Would have to keep that updated, however, hoping someone knows of something that is prewritten or something.  I have looked around, didn't see too much that I could steal.

Link to comment
Share on other sites

the search returns, organized by popularity, is usually pretty close. The nuget (chocolatey) community is rather large.

https://chocolatey.org/packages?q=&moderatorQueue=&prerelease=false&sortOrder=package-download-count

 

 

,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-.
|(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/
(_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_)
| | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) (
| | | | |)| | \ / | | | | | |)| | `--. | |) \ | |
`-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_|
'-' '-' (__) (__) (_) (__)

Link to comment
Share on other sites

I have been playing around with Chocolatey, but it only run when installed locally.  If I copy the installed files to a server and try and run it from there it doesn't run.

 

Meaning, if I copy c:\programdata\chocolatey to \\server\util\chocolatey and try and run choco install flashplayerplugin it does not run.

Edited by evansullivan
Link to comment
Share on other sites

you just have to update a text file you are reading to get versions.  Run chocolatey from anywhere that can massage the data and update the file.  I suppose you could have the file server do all the work, but it's unnecessary and more cumbersome for testing and updating imo.

,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-.
|(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/
(_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_)
| | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) (
| | | | |)| | \ / | | | | | |)| | `--. | |) \ | |
`-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_|
'-' '-' (__) (__) (_) (__)

Link to comment
Share on other sites

8 hours ago, evansullivan said:

I was hoping to put Chocolatey files on a file share that all users could access.  Then run a command on that machine to have it install, but Chocolatey does like that.

Hello @evansullivan,
I think that what @iamtheky is trying to tell you is:
In the same machine(server) where you was thinking to copy the Chocolatey file, for all the users, you should run an script that using Chocolatey generate a .txt file with all the new versions then you share this .txt file and you read it from any computer with your other script(installer)(over the network).

Kind Regards

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...