Mobileread
Fully automatic Calibre autoupate solution (Windows)
#1  Tscherno 09-08-2013, 09:39 AM
Hi,

because i love Calibre and because i like to keep it always up2date, i try to install every new version. And thanks to the great developers there are a lot of it. What me really annoyed was the fact to go to the website, download, start installation, click, click and start calibre again. That's why i started up NSIS and created a small autodownloader for the task.

At the moment it does the following:
- End calibre nicely (calibre.exe --shutdown-running-calibre)
- Download latest 64Bit Version to temp
- Installs via msiexec silently
- Starts calibre.exe (so you need to have it on %path%)

Attached are both the compiled .exe and the script if you like to compile it yourself. You just need to install NSIS from sourceforge.net

Have fun. PS: Maybe i can include this into a plugin for calibre.
[zip] Calibre64Autoupdate.zip (46.3 KB, 1248 views)
Reply 

#2  Jaan Ruud 09-12-2013, 11:59 PM
Genius, grate idea.
Reply 

#3  At_Libitum 09-28-2013, 08:14 AM
Alas I get the following.

Code
calibre, version 1.5.0
ERROR: Unhandled exception: <b>error</b>:(740, 'CreateProcess', 'The requested operation requires elevation.')
calibre 1.5 isfrozen: True is64bit: False
Windows-7-6.1.7600 Windows ('32bit', 'WindowsPE')
('Windows', '7', '6.1.7600')
Python 2.7.5
Windows: ('7', '6.1.7600', '', 'Multiprocessor Free')
Traceback (most recent call last): File "calibre_plugins.open_with.action", line 159, in open_with File "calibre_plugins.open_with.action", line 221, in launch_app
error: (740, 'CreateProcess', 'The requested operation requires elevation.')
Changing the program properties to tick the box "Run ad Administrator" had no effect

PS. dunno about making it a plugin, but can already be launched from OpenWith dropdown menu (use cover as file type in plugin config as dummy coz it needs a selection)

EDIT:
Nvrmind... :S peachy with a true 64bit..
Reply 

#4  Tscherno 10-05-2013, 07:49 AM
The precompiled is only for 64 Bit. If needed i can also compile one for 32Bit.
Reply 

#5  carpetmojo 10-06-2013, 05:17 AM
This sounds like a fantastic idea - I think I'd need a 32-bit, have to check should you proceed any further with it.

But, could I make a plea for it to be as simple to install as possible ??
I appreciate 99% of MobileReaders are tech savvy, but i'm afraid I'm one of the minority who sort of muddle through, often getting it right by accident !

Just had it happen with the latest ... ummm ... "Tools" kit, which has installed beautifully, without me being enough aware of what happened, to be confident of repeating it next time !
Reply 

#6  onebadpenny 12-27-2013, 12:49 AM
I just tried this autoupdater. Works GREAT! I love it!. But I couldn't get the 'Open With' plugin to work as At_Libitum suggested. Kept getting that same error. And being somewhat computer illiterate in some areas, I didn't understand the "Nvrmind... :S peachy with a true 64bit" edit from the same post, since I'm running a true 64bit :P

So I added an Empty Book using the add books dropdown and named it "***Calibre AutoUpdate" with author "*Update, *Auto". Then I gave it a cute cover image and edited the comments field to have an explanation as well as a link to the .exe file on my computer.

Now it's the first book in my library and the link runs the update perfectly
Thank you!
Reply 

#7  At_Libitum 12-27-2013, 08:39 AM
Quote onebadpenny
being somewhat computer illiterate in some areas, I didn't understand the "Nvrmind... :S peachy with a true 64bit" edit from the same post, since I'm running a true 64bit :P
the nvrmind reflected my 'blindness' to not spot that it was only for the 64bit Calibre. I was trying it on the 32bit portable...

But I must say, yours is probably the most original way to launch an external tool. I would never have thought of that option
Reply 

#8  mrmikel 12-27-2013, 09:00 AM
This tool is fine for the few people that need it. But for the most part, it is not necessary to update calibre every Friday. Kovid has to pay for the bandwidth for downloading, so there is no reason for everyone to download versions that contain trivial changes for them.

About the only people currently that might be on the every new version schedule are people who know of a particular bug that has been corrected, or those actively using the new editor feature which is currently being actively changed each week.
Reply 

#9  At_Libitum 12-27-2013, 10:17 AM
Quote mrmikel
This tool is fine for the few people that need it. But for the most part, it is not necessary to update calibre every Friday.
This tool also doesn't... the auto-update refers to the fact that you do not need to go the site, download, exit Calibre, run msi. The tool does all that in one click. That is as far as its automatic capabilities go. You're still the one that needs to make the decision to update or not.
Reply 

#10  mrmikel 12-27-2013, 11:53 AM
Sounds like a good idea to me then, especially since I am one of those following the astounding development of the editor function in Calibre.
Reply 

  Next »  Last »  (1/2)
Today's Posts | Search this Thread | Login | Register