Bug #2724
Updates may fail on some Windows versions due to user file permissions
Status: | New | Start date: | 01/17/2020 | ||
---|---|---|---|---|---|
Priority: | High | Due date: | |||
Assignee: | - | % Done: | 80% |
||
Category: | Update | Spent time: | - | ||
Target version: | TXM 0.8.2 |
Description
Updates may fail on some Window versions due of user file permissions.
Issue reported on Windows 10.
Error:
Le contexte de la session était :(profil=profile, phase=org.eclipse.equinox.internal.p2.engine.phases.Uninstall, operande=[R]org.txm.rcp.app_root.win32.win32.x86_64 0.8.0.201908301442 --> null, action=org.eclipse.equinox.internal.p2.touchpoint.natives.actions.CleanupzipAction). Backup of file C:\Program Files\TXM-0.8.0_2019-09-03\TXM.exe failed. File that was copied to backup could not be deleted: C:\Program Files\TXM-0.8.0_2019-09-03\TXM.exe
Temporary workaround to update¶
- quit TXM if launched
- copy the "jre" directory of the TXM installation directory (eg. C:\Program Files\TXM-0.8.0_2019-09-03\jre) to "C:/jre"
- edit the file "C:/Users/User/.TXM-0.8.0/TXM.ini" to add the two following lines just before "-vmargs" :
-vm
C:/jre/bin/javaw.exe
- go to TXM installation directory, eg. "C:\Program Files\TXM-0.8.0_2019-09-03"
- right click on "TXM.bat" and select "Run as administrator"
- TXM will start with some errors in console
- do the "File\Check for updates" command and install the available update
- when the update is done let TXM restarts by clicking on "Restart Now"
- TXM will restart with some errors in console
- quit TXM
- edit the file ".TXM-0.8.0/TXM.ini" to remove the 2 lines added
- restart TXM
- after that you can delete the created directory "C:/jre""
Solution¶
- TBD
Improvements¶
The TXMUpdate handler file rights test fails on Windows: it does not detect the missing rights.
Add:
!installDirectory.canWrite() || !installDirectory.canExecute()
Related issues
History
#1 Updated by Sebastien Jacquot over 3 years ago
- Subject changed from Updates may failed on some Windows versions because of user files rights to Updates may failed on some Windows versions because of user files rights and JRE in use
- Description updated (diff)
#2 Updated by Sebastien Jacquot over 3 years ago
- Description updated (diff)
#3 Updated by Sebastien Jacquot over 3 years ago
- Description updated (diff)
#4 Updated by Sebastien Jacquot over 3 years ago
- File TXM.ini
added
#5 Updated by Matthieu Decorde over 3 years ago
- Description updated (diff)
#6 Updated by Sebastien Jacquot over 3 years ago
- Description updated (diff)
#7 Updated by Sebastien Jacquot over 3 years ago
- Subject changed from Updates may failed on some Windows versions because of user files rights and JRE in use to Updates may fail on some Window versions due of user files rights and JRE in use
- Description updated (diff)
#8 Updated by Serge Heiden over 3 years ago
- Subject changed from Updates may fail on some Window versions due of user files rights and JRE in use to Updates may fail on some Windows versions due to user file permissions and JRE file being used
#9 Updated by Sebastien Jacquot over 3 years ago
- Subject changed from Updates may fail on some Windows versions due to user file permissions and JRE file being used to Updates may fail on some Windows versions due to user file permissions
- Description updated (diff)
#10 Updated by Sebastien Jacquot over 3 years ago
- Description updated (diff)
#11 Updated by Sebastien Jacquot over 3 years ago
- Description updated (diff)