Closed Baptistou closed 3 years ago
Thank you for reporting, but I haven't a Windows 7 box laying around any more to test it. 😬 It's hard to tell what is preventing the updater.bat execution on your system. The updater.bat is supposed to be run in the background after 3) before QOwnNotes quits. You could enable logging to a file in the settings and see if an error is logged before QOwnNotes quits.
Thank you for reporting, but I haven't a Windows 7 box laying around any more to test it. :grimacing:
That is understandable as Microsoft support of Windows 7 ended this year. I see that Windows XP is not supported anymore but I don't see any mention of Vista, 7 or 8. Could it be possible to add a System Requirements table to the documentation ?
You could enable logging to a file in the settings and see if an error is logged before QOwnNotes quits.
I already enabled logging to a file but there is no output nor error after initializeWindowsUpdateProcess
. I will try to investigate a little more on the next update.
That is understandable as Microsoft support of Windows 7 ended this year. I see that Windows XP is not supported anymore but I don't see any mention of Vista, 7 or 8.
The binary built on AppVeyor (see https://www.qownnotes.org/installation/windows.html#windows-xp) with an old Qt version still should work with WinXP. And since Qt still supports Windows 7 it should also run there.
Could it be possible to add a System Requirements table to the documentation?
There are some at https://github.com/pbek/QOwnNotes#minimum-software-requirements
I already enabled logging to a file but there is no output nor error after initializeWindowsUpdateProcess. I will try to investigate a little more on the next update.
In the Debug options in the settings dialog you can also fake an old version to trigger an update.
hum, I too had the same problem here, updating from 21.5.1 to 26.6.3 on windows 7. The logs shows:
...
[jun 17 09:09:26] [debug]: updateNoteShareStatusFromShare - 'status': "ok\n"
[jun 17 09:09:47] [debug]: dialogButtonClicked - 'releaseUrl': "https://github.com/pbek/QOwnNotes/releases/download/v21.6.3/QOwnNotes.zip"
[jun 17 09:09:58] [debug]: Reply from "/27436491/71ea6d00-cec5-11eb-9097-52f1be5bc6c2"
[jun 17 09:09:58] [debug]: slotReplyFinished - 'data.size': 39625766
[jun 17 09:10:06] [debug]: initializeWindowsUpdateProcess - 'parameters': ("C:\\Users\\martin.meier\\AppData\\Local\\Temp\\QOwnNotes-hDCfln.zip", "C:\\Programas\\QOwnNotes", "C:\\Users\\martin.meier\\AppData\\Local\\Temp\\QOwnNotes-hDCfln-unzip.exe")
[jun 17 09:10:06] [debug]: storeSettings - 'noteHistoryItem': NoteHistoryItem: <noteName>"## excluir login de cliente" <noteSubFolderPathData>"SQL" <cursorPosition>1421 <relativeScrollBarPosition>0
And it ends here.
If i use the initializeWindowsUpdateProcess - 'parameters'
at the qOwnNotes folder the update works:
C:\Programas\QOwnNotes>update.bat "C:\Users\martin.meier\AppData\Local\Temp\QOwnNotes-hDCfln.zip", "C:\Programas\QOwnNotes", "C:\Users\martin.meier\AppData\Local\Temp\QOwnNotes-hDCfln-unzip.exe"
Aguardando 0 segundos, pressione uma tecla para continuar ...
ERRO: o processo "QOwnNotes.exe" não foi encontrado.
update.bat "C:\Users\martin.meier\AppData\Local\Temp\QOwnNotes-hDCfln.zip", "C:\Programas\QOwnNotes", "C:\Users\martin.meier\AppData\Local\Temp\QOwnNotes-hDCfln-unzip.exe"
======================================
Updating QOwnNotes in folder:
"C:\Programas\QOwnNotes"
======================================
Source archive:
"C:\Users\martin.meier\AppData\Local\Temp\QOwnNotes-hDCfln.zip"
======================================
Unzip executable:
"C:\Users\martin.meier\AppData\Local\Temp\QOwnNotes-hDCfln-unzip.exe"
======================================
Executing unzip command:
"C:\Users\martin.meier\AppData\Local\Temp\QOwnNotes-hDCfln-unzip.exe" -o "C:\Users\martin.meier\AppData\Local\Temp\QOwnNotes-hDCfln.zip" -d "C:\Programas\QOwnNotes"
======================================
Uncompressing files...
Archive: C:/Users/martin.meier/AppData/Local/Temp/QOwnNotes-hDCfln.zip
inflating: C:/Programas/QOwnNotes/bearer/qgenericbearer.dll
...
inflating: C:/Programas/QOwnNotes/update.bat
======================================
Deleting temporary files
======================================
Starting QOwnNotes:
"C:\Programas\QOwnNotes"\QOwnNotes.exe --after-update update.bat
======================================
Pressione qualquer tecla para continuar. . .
So, it's not an argument issue...
Are you sure your current user has permissions to C:\\Programas\\QOwnNotes
without "Administrator Access"?
I did some tests again and even if I launch QOwnNotes as administrator, the updater does not execute on Windows 7. Same result when changing the location or the permissions of the folder, so this issue does not seem to be related to permissions.
You would need to build QOwnNotes yourself to play more with the part that starts the updater. 😅
This issue is stale because it has been open for 30 days with no activity.
This issue was closed because it has been inactive for 14 days since being marked as stale.
Expected behaviour
QOwnNotes should update.
Actual behaviour
I installed QOwnNotes on both Windows 7 and Windows 10 into the same location with the same permissions, I encounter the same issue described in #2075 on 7 but the updater works as expected on 10.
Steps to reproduce
I tried to move QOwnNotes to another location but same issue. After multiple unsuccessful attempts, I noticed that all downloaded zip files are accumulated inside
AppData\Local\Temp
. However, when I executed manuallyupdate.bat
with the 3 parameters provided in the logs, the update succeeded.Output from the debug section in the settings dialog
Expand
QOwnNotes Debug Information =========================== ## General Info **Current Date**: `mar. mai 25 22:31:14 2021` **Version**: `21.5.5` **Build date**: `May 25 2021` **Build number**: `838` **Platform**: `windows` **Operating System**: `Windows 7 Version 6.1 (Build 7601: SP 1)` **Build architecture**: `x86_64` **Current architecture**: `x86_64` **Release**: `GitHub Actions` **Qt Version (build)**: `5.15.2` **Qt Version (runtime)**: `5.15.2` **Portable mode**: `no` **Settings path / key**: `\HKEY_CURRENT_USER\Software\PBE\QOwnNotes` **Application database path**: `C:\Users\Baptiste Thémine\AppData\Roaming\PBE\QOwnNotes\QOwnNotes.sqlite` **Application arguments**: `C:\\Baptiste\\Programmes\\QOwnNotes`, `\QOwnNotes.exe`, `--after-update`, `update` **Qt Debug**: `0` **Locale (system)**: `fr_FR` **Locale (interface)**: *empty* **Primary screen resolution**: `1366x768` **Icon theme**: `breeze-dark-qownnotes` **Notes in current note folder**: `20` **Calendar items**: `0` **Enabled scripts**: `0` ## Server Info ***REMOVED SENSITIVE VALUE*** ## Spellchecking **Enabled**: `false` **Selected language**: *empty* **Language codes**: *empty* **Language names**: *empty* **Application dictionaries path**: `C:\Users\Baptiste Thémine\AppData\Roaming\PBE\QOwnNotes\dicts` ## Note folders **currentNoteFolderId**: `1` ### Note folder `Notes` **id**: `1` **isCurrent**: `yes` **activeTagId**: `-1` **localPath**: `C:\Baptiste\Notes` **remotePath**: `Notes` **cloudConnectionId**: `1` **isShowSubfolders**: `no` **isUseGit**: `no` **activeNoteSubFolder name**: *empty* **database file**: `C:\Baptiste\Notes\notes.sqlite` ## Cloud connections ***REMOVED SENSITIVE VALUE*** ## Enabled scripts ## Settings **AboutDialog/geometry** (QByteArray): `Relevant log output in the Log panel
Expand
``` [mai 25 21:57:40] [debug]: updatePanelMenu - 'updatePanelMenu' [mai 25 21:57:46] [debug]: dialogButtonClicked - 'releaseUrl': "https://github.com/pbek/QOwnNotes/releases/download/v21.5.5/QOwnNotes.zip" [mai 25 21:57:59] [debug]: Reply from "/27436491/8af77680-bd7c-11eb-8607-9c760f88b388" [mai 25 21:58:00] [debug]: slotReplyFinished - 'data.size': 39626015 [mai 25 21:58:04] [debug]: initializeWindowsUpdateProcess - 'parameters': ("C:\\Users\\Baptiste Thémine\\AppData\\Local\\Temp\\QOwnNotes-Pupnqw.zip", "C:\\Baptiste\\Programmes\\QOwnNotes", "C:\\Users\\Baptiste Thémine\\AppData\\Local\\Temp\\QOwnNotes-Pupnqw-unzip.exe") ```