|
|
#46 |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 82,407
Karma: 151278869
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Why is it I cannot perform a repair install when the .msi file is in a different location then it was when it was installed?
|
|
|
|
|
|
#47 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,064
Karma: 1084520
Join Date: Sep 2017
Location: Buenos Aires, Argentina
Device: moon+ reader, kindle paperwhite
|
That's exactly why the plugin defaults to the Downloads folder. Windows Installer caches the source path of the .msi. If we let users move the installer to arbitrary or temporary folders before finishing the process, future 'Repair' or 'Uninstall' actions might fail because Windows can't find the original source. By keeping it in a standard, predictable location, we minimize these registry conflicts for the average user.
|
|
|
|
|
|
#48 | |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,064
Karma: 1084520
Join Date: Sep 2017
Location: Buenos Aires, Argentina
Device: moon+ reader, kindle paperwhite
|
Quote:
To clarify the vision behind this plugin: The main goal is to provide a 'one-click' update experience for the average user who doesn't want any complications. I want to keep the interface as clean as possible. Regarding your specific points: On the Download Location: I chose the standard Downloads folder to ensure the plugin works 'out-of-the-box' on any PC without requiring any initial configuration or path setup from the user. On the Filename and Rollbacks: I think your point about keeping previous versions is valid for some users. However, anyone needing an older version can always find the complete archive of all previous installers here: https://download.calibre-ebook.com/. Future Improvement: To balance simplicity and your suggestion, I will look into adding the version number to the filename (e.g., calibre-9.5.0-x64.msi) in a future update. This solves the 'rollback' issue without adding complex settings menus. Thanks for helping me polish this tool!" |
|
|
|
|
|
|
#49 | |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,064
Karma: 1084520
Join Date: Sep 2017
Location: Buenos Aires, Argentina
Device: moon+ reader, kindle paperwhite
|
Quote:
It’s great to have confirmation from an experienced user that the download process is identical to the manual one. I really appreciate your thoroughness; it gives me and the rest of the community peace of mind regarding the plugin's integrity. Your feedback on the installation logic is also very helpful. I’m definitely taking your suggestions into account to make this tool more robust while maintaining the simplicity I’m aiming for. Thanks again for the support and for testing the plugin so carefully! |
|
|
|
|
|
|
#50 | |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,323
Karma: 1436993
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite, Kindle Oasis
|
Quote:
Code:
@echo off
calibre-debug.exe -c "import urllib.request 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().decode('utf-8').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
)
Last edited by thiago.eec; Yesterday at 12:27 PM. |
|
|
|
|
|
|
#51 | |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 82,407
Karma: 151278869
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
|
|
|
|
|
#52 | |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,064
Karma: 1084520
Join Date: Sep 2017
Location: Buenos Aires, Argentina
Device: moon+ reader, kindle paperwhite
|
Quote:
My priority for this initial version was to ensure it worked for the 'plug-and-play' user without requiring any setup. However, I’ve noted your request. Adding an option in the plugin's configuration to choose a custom download path is a logical next step for a future 'Advanced' settings tab. For now, I’m focused on ensuring the core update engine and the progress bar are 100% stable across all Windows/Mac environments. Once that's solid, I'll look into adding more customization options like the one you suggested. Thanks for the input |
|
|
|
|
|
|
#53 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,064
Karma: 1084520
Join Date: Sep 2017
Location: Buenos Aires, Argentina
Device: moon+ reader, kindle paperwhite
|
Hi JSWolf,
After reviewing the code and the current workflow, I think there is a fundamental misunderstanding here. The plugin does NOT install calibre into the Downloads folder. The plugin simply uses the Downloads folder as a temporary bridge to fetch the official .msi file. Once the download is complete, the plugin launches that installer. It is then the official calibre setup that handles the actual installation into your standard system directory (e.g., C:\Program Files\Calibre2). The file in the Downloads folder is just the 'installer package'. You can delete it immediately after the update is finished. Using the standard Downloads folder ensures that the plugin works 'out-of-the-box' without needing initial setup. However, to satisfy all workflows, I will be adding a configuration window in the next update. This will allow users to choose a custom folder for the installer download. If no folder is configured, the plugin will simply fall back to the default Downloads folder. Thanks for the feedback! Last edited by dunhill; Yesterday at 02:10 PM. |
|
|
|
|
|
#54 | |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 82,407
Karma: 151278869
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
|
|
|
|
|
#55 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,064
Karma: 1084520
Join Date: Sep 2017
Location: Buenos Aires, Argentina
Device: moon+ reader, kindle paperwhite
|
New features in v1.2.0:
Download folder selector: You can now choose exactly where you want the installer to be saved (.msi or .dmg). Ideal for those who want to keep their downloads folder clean or use a temporary folder. Dynamic version detection: The plugin no longer uses generic names. It now queries the official calibre server directly to obtain the exact version number (e.g., calibre-64bit-9.5.0.msi). Smart forced shutdown (Windows): The `--shutdown-running-calibre` command has been implemented before launching the installer. This ensures that calibre releases all files and the database, preventing "file in use" errors during the update. |
|
|
|
|
|
#56 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 46,083
Karma: 29579912
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
@dunhill: Note that on Windows shutdown running calibre is not sufficient it can leave viewer and edit windows around. There is no general method for shutting them down. You would need to use something like psutil to search for the processes and kill them and running shutdown running calibre.
|
|
|
|
|
|
#57 |
|
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 22,480
Karma: 31000706
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
If calibre is running from a portable install the msi installer won't run 'properly' either. IIRC it pops a Cancel, Retry, Continue query, with warning that Continue will necessitate a Windows Restart.
BR |
|
|
|
|
|
#58 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,750
Karma: 13151503
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
|
Thank you, it has worked for me now. I haven't checked the download folder change because I've updated before, but I'll do the next time. And thank you for the plugin, it simplifies the update.
|
|
|
|
|
|
#59 |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 82,407
Karma: 151278869
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
One thing. If after doing the shutdown, are you are then waiting a specific time before starting the install? If so, what what about the varying time it can take to do the config backup with the backup plug-in?
|
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [GUI Plugin] Auto Datestamp and View | eater | Plugins | 3 | 04-08-2020 06:08 PM |
| Calibre needs an Auto-Updater | smartguy | Calibre | 30 | 01-23-2020 02:24 PM |
| Problem with my ScrambleEbook plugin and the Plugin Updater tool | jackie_w | Development | 14 | 01-19-2017 10:49 PM |
| Solution: Calibre AutoUpdater [Auto-Updater] | megamaniac | Calibre | 6 | 08-02-2013 09:47 PM |
| [GUI Plugin] Plugin Updater **Deprecated** | kiwidude | Plugins | 159 | 06-19-2011 12:27 PM |