Bug #2724

Updates may fail on some Windows versions due to user file permissions

Added by Sebastien Jacquot about 1 month ago. Updated 6 days ago.

Status:New Start date:01/17/2020
Priority:High Due date:
Assignee:- % Done:

0%

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()

TXM.ini Magnifier (508 Bytes) Sebastien Jacquot, 01/17/2020 04:49 pm


Related issues

related to Bug #2035: RCP, 0.7.7: Update fails with error and null value (win32) Closed 02/11/2017

History

#1 Updated by Sebastien Jacquot about 1 month 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 about 1 month ago

  • Description updated (diff)

#3 Updated by Sebastien Jacquot about 1 month ago

  • Description updated (diff)

#4 Updated by Sebastien Jacquot about 1 month ago

#5 Updated by Matthieu Decorde 28 days ago

  • Description updated (diff)

#6 Updated by Sebastien Jacquot 27 days ago

  • Description updated (diff)

#7 Updated by Sebastien Jacquot 27 days 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 20 days 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 6 days 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 6 days ago

  • Description updated (diff)

#11 Updated by Sebastien Jacquot 6 days ago

  • Description updated (diff)

Also available in: Atom PDF