Bug #2724
Updated by Matthieu Decorde about 1 year ago
Updates may failed on some Windows versions because of user files rights and JRE in use.
Issue reported on Windows 10.
Error:
<pre>
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
</pre>
h3. 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""
h4. Solution 1
The TXMUpdate handler rights test failed on Windows: it did not detect the missing rights.
<pre>!installDirectory.canWrite() || !installDirectory.canExecute()</pre>
Issue reported on Windows 10.
Error:
<pre>
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
</pre>
h3. 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""
h4. Solution 1
The TXMUpdate handler rights test failed on Windows: it did not detect the missing rights.
<pre>!installDirectory.canWrite() || !installDirectory.canExecute()</pre>