Bug #2724

Updated by Sebastien Jacquot over 1 year ago

Updates may failed on some Windows versions because of user files rights and JRE in use.

Issue reported on Windows 10.


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

h3. Temporary WIP: this workaround to doesn't work. The update

- quit TXM if launched
- copy the "jre" directory
then fails because of the TXM installation directory (eg. C:\Program Files\TXM-0.8.0_2019-09-03\jre) to "C:/jre" JRE files that are in use and can't be deleted.
- edit the file "C:/Users/User/.TXM-0.8.0/TXM.ini" h3. Temporary workaround to add the two following lines :

- go to TXM installation directory, eg. "C:\Program Files\TXM-0.8.0_2019-09-03" C:\Program Files\TXM-0.8.0_2019-09-03
- right click on "TXM.bat" 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""

h4. Solution 1