Quote:
Originally Posted by gbm
|
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.