Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 03-04-2016, 03:02 PM   #1
badbob001
Fanatic
badbob001 ought to be getting tired of karma fortunes by now.badbob001 ought to be getting tired of karma fortunes by now.badbob001 ought to be getting tired of karma fortunes by now.badbob001 ought to be getting tired of karma fortunes by now.badbob001 ought to be getting tired of karma fortunes by now.badbob001 ought to be getting tired of karma fortunes by now.badbob001 ought to be getting tired of karma fortunes by now.badbob001 ought to be getting tired of karma fortunes by now.badbob001 ought to be getting tired of karma fortunes by now.badbob001 ought to be getting tired of karma fortunes by now.badbob001 ought to be getting tired of karma fortunes by now.
 
badbob001's Avatar
 
Posts: 556
Karma: 1102020
Join Date: Sep 2009
Device: Kindle Keyboard (rip), Kindle Voyage, Fire Tablet 10 '17, iPad '19
Can Portable's install result window be disabled?

After installing Portable, it pops up:
Calibre Portable successfully installed to xxxxxxx. Launch calibre?

Can this popup window be disabled?
badbob001 is offline   Reply With Quote
Old 03-04-2016, 03:36 PM   #2
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 30,984
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by badbob001 View Post
After installing Portable, it pops up:
Calibre Portable successfully installed to xxxxxxx. Launch calibre?

Can this popup window be disabled?
It is a 1 time per install (update) occurance
theducks is offline   Reply With Quote
Advert
Old 03-04-2016, 04:33 PM   #3
badbob001
Fanatic
badbob001 ought to be getting tired of karma fortunes by now.badbob001 ought to be getting tired of karma fortunes by now.badbob001 ought to be getting tired of karma fortunes by now.badbob001 ought to be getting tired of karma fortunes by now.badbob001 ought to be getting tired of karma fortunes by now.badbob001 ought to be getting tired of karma fortunes by now.badbob001 ought to be getting tired of karma fortunes by now.badbob001 ought to be getting tired of karma fortunes by now.badbob001 ought to be getting tired of karma fortunes by now.badbob001 ought to be getting tired of karma fortunes by now.badbob001 ought to be getting tired of karma fortunes by now.
 
badbob001's Avatar
 
Posts: 556
Karma: 1102020
Join Date: Sep 2009
Device: Kindle Keyboard (rip), Kindle Voyage, Fire Tablet 10 '17, iPad '19
The only reason I'm asking is that I'm automating the download and install an update after closing calibre. I can use autohotkey to click the No button, but I wonder if there is another way. Portable already accepts the destination folder as a parameter so it makes sense to make the entire process non-interactive.
badbob001 is offline   Reply With Quote
Old 03-04-2016, 11:42 PM   #4
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,276
Karma: 27111060
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
https://github.com/kovidgoyal/calibr...91ef706fbfa440
kovidgoyal is offline   Reply With Quote
Old 03-06-2016, 05:13 AM   #5
Dopedangel
Wizard
Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.
 
Dopedangel's Avatar
 
Posts: 1,792
Karma: 30548723
Join Date: Dec 2006
Location: Singapore
Device: Boyue
Quote:
Originally Posted by badbob001 View Post
The only reason I'm asking is that I'm automating the download and install an update after closing calibre. I can use autohotkey to click the No button, but I wonder if there is another way. Portable already accepts the destination folder as a parameter so it makes sense to make the entire process non-interactive.
Could you share the script now that Kovid has made the changes. Though now that I think about I will need a way to pause dropbox before installation and turning it back on after.
Dopedangel is offline   Reply With Quote
Advert
Old 03-08-2016, 12:15 PM   #6
badbob001
Fanatic
badbob001 ought to be getting tired of karma fortunes by now.badbob001 ought to be getting tired of karma fortunes by now.badbob001 ought to be getting tired of karma fortunes by now.badbob001 ought to be getting tired of karma fortunes by now.badbob001 ought to be getting tired of karma fortunes by now.badbob001 ought to be getting tired of karma fortunes by now.badbob001 ought to be getting tired of karma fortunes by now.badbob001 ought to be getting tired of karma fortunes by now.badbob001 ought to be getting tired of karma fortunes by now.badbob001 ought to be getting tired of karma fortunes by now.badbob001 ought to be getting tired of karma fortunes by now.
 
badbob001's Avatar
 
Posts: 556
Karma: 1102020
Join Date: Sep 2009
Device: Kindle Keyboard (rip), Kindle Voyage, Fire Tablet 10 '17, iPad '19
Thanks Kovid!

Quote:
Originally Posted by Dopedangel View Post
Could you share the script now that Kovid has made the changes.
Let me clarify what my workflow is like:
  1. An autohotkey script is alway running checking to see if Calibre is running.
  2. When I run Calibre, I may get an update notice. If I like, I click the link and download the update to my Downloads folder.
  3. When I exit Calibre, the autohotkey script will know that and then:
    1. Check if there is an update in the Downloads folder. If yes, run it.
    2. Backup my library files to my NAS.

autohotkey script:
Code:
loop {
	process, wait, calibre.exe
	Process, waitclose, calibre.exe
	Run, %comspec% /c "D:\Users\myname\Desktop\docs\Backup Libary.cmd"
}
backup library.cmd:
Code:
@echo off
echo Backup will occur in 10 seconds...
ping -n 10 127.0.0.1>nul

set downloadpath=D:\Users\myname\Downloads
set portablepath=d:\_Library\Calibre Portable

set found=
set upgrade=
FOR /f "tokens=1,2 delims=[] " %%a IN ('dir /od /b "%downloadpath%\calibre-portable-installer-*.exe" ^| find /n /i ".exe"') do set found=%%a& set upgrade=%%b
echo [%found%][%upgrade%]
if not "%found%"=="" call:upgradingcalibre

robocopy /np /mir /dcopy:t /copy:dat /zb /r:5 /w:60 /tee /log:"%~n0.log" "%portablepath%" "\\mynas\g\Books\_Library\calibre\Calibre Portable"
ping -n 10 127.0.0.1>nul

echo %date% %time%>"d:\_Library\daughtername_calibre\update.txt"
robocopy /np /mir /dcopy:t /copy:dat /zb /r:5 /w:60 /tee /log+:"%~n0.log" "d:\_Library\daughtername_calibre" "\\mynas\g\Books\_Library\daughtername\daughtername_calibre"
ping -n 10 127.0.0.1>nul

echo %date% %time%>"d:\_Library\myname_calibre\update.txt"
robocopy /np /mir /dcopy:t /copy:dat /zb /r:5 /w:60 /tee /log+:"%~n0.log" "d:\_Library\myname_calibre" "\\mynas\g\Books\_Library\myname\myname_calibre"
ping -n 10 127.0.0.1>nul
goto:EOF

:upgradingcalibre
REM This is no longer needed: autohotkeyscript-to-click-no-to-calibre.ahk
"%downloadpath%\%upgrade%" "%portablepath%"
ping -n 10 127.0.0.1>nul
del /q "%downloadpath%\calibre-portable-installer-*.exe"
goto:EOF
Copying my local library to the NAS is for backup purposes and also allows my daughter to download the latest changes to her computer. Calibre is compatible with being shared over the network and this syncing method is what I use to make it work.

You may wonder what is the point of putting the backup date/time into the update.txt file. On my daughter's computer, calibre is started with a batch script that:
  1. Compares the local update.txt with the update.txt on the NAS. If they are different, then use robocopy to download the changes (includind the latest update.txt file).
  2. Start Calibre.
badbob001 is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Spell Checker window on top of Editor window Calibre-Fan Editor 3 01-30-2016 11:48 AM
HELP! Unable to install Calibre into my window 7! jass Devices 5 02-09-2015 06:37 AM
I can't install calibre portable Qpit Devices 1 09-01-2012 11:22 PM
Opening a new window in calibre, and closing another window Dr. Drib Calibre 3 02-23-2012 09:27 AM
Install Calibre portable on USB stick Gary Young Calibre 1 12-14-2010 01:07 PM


All times are GMT -4. The time now is 10:09 AM.


MobileRead.com is a privately owned, operated and funded community.