View Single Post
Old 01-10-2019, 08:49 PM   #7
thiago.eec
Guru
thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.
 
Posts: 929
Karma: 1177583
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite
Quote:
Originally Posted by gbm View Post
About the Windows version... the code shown in this thread is slightly wrong. This worked for me:

Code:
@echo off

calibre-debug.exe -c "import urllib as u; from calibre.constants import numeric_version; raise SystemExit(int(numeric_version  < (tuple(map(int, u.urlopen('http://code.calibre-ebook.com/latest').read().split('.'))))))"

if %ERRORLEVEL%==0 (
echo calibre is up to date.
)	else (
calibre.exe --shutdown-running-calibre
msiexec /passive /i http://status.calibre-ebook.com/dist/win64
)

calibre-server [options]
  • The '/passive' option allows the program to be installed without user interaction. Without it, the installation process would get stuck, waiting for the user to confirm.
  • The 'calibre-server' command at the bottom will restart the calibre server. This is only necessary in this particular case, where it is running a server.
  • Also, while creating the task, remember to select "Run with highest privileges". This will skip the user confirmation on UAC screen.

But, as @BetterRed pointed out, this will not update the plugins.
thiago.eec is offline   Reply With Quote