View Single Post
Old 12-30-2013, 08:04 PM   #13
sherman
Guru
sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.
 
Posts: 850
Karma: 2641698
Join Date: Aug 2008
Location: Taranaki - NZ
Device: Kobo Aura H2O, Kobo Forma
Quote:
Originally Posted by eschwartz View Post
You could always run that as a bat script. Only two command-line commands are needed:

calibre.exe --shutdown-running-calibre
msiexec /i http://status.calibre-ebook.com/dist/win32

or use win64 for the 64-bit version. No need for compiling a program to do the same thing, since msiexec can use an http location. It is (obviously) 64-bit compatible, you can switch it yourself in 8 seconds.

Then if you really need to, you can also add this as a scheduled task, to run every week at 5:00 AM Friday, just hours after it is usually released and in the middle of the night when you're not up anyway.

Based on the discussion here (although it was for linux): https://www.mobileread.com/forums/sho...3&postcount=24

You could always modify that script into a bat script. It was mainly for testing to see if the latest version was installed. The whole discussion was pretty cool though.
Oooh, I never knew you could feed msiexec a URL instead of a local file.

Currently I use a batch file that uses cURL to download the file to a temp file.
sherman is offline   Reply With Quote