tribler icon indicating copy to clipboard operation
tribler copied to clipboard

tribler installer does not remember installation directory

Open kotenok2000 opened this issue 2 years ago • 1 comments

I have installed Tribler_7.10.0-RC2 at E:\Program Files\Tribler when i installed Tribler_7.10.0 it tried to install to C:\Program Files\Tribler

Please, fill all relevant items:

  • [x] I have read CONTRIBUTING.rst

  • [x] I have tried with the latest pre-release version and I still can reproduce the issue.

Tribler version/branch+revision:
Operating system and version:

Microsoft Windows [Version 10.0.19043.1083]

Steps to reproduce the behavior:
Expected behavior:
Actual behavior:
Relevant log file output:

kotenok2000 avatar Jul 12 '21 13:07 kotenok2000

Still happens when installing V7.11.0-RC2 Microsoft Windows [Version 10.0.22000.376]

kotenok2000 avatar Dec 24 '21 13:12 kotenok2000

By manually setting Software\Tribler in HKCU I managed to get our current (7.13) installer to recognize the install dir.

regedit

This tells me that our current approach to recover the value works:

https://github.com/Tribler/tribler/blob/cbd15ef5a20e6d36b1c6353c34ac84dded9c8f1d/build/win/resources/tribler.nsi#L34

However, we should still actively set/write this registry value upon successfully installing Tribler. It seems that the solution of #6244 came very close to this.

I made a test installer to confirm the following fix works:

WriteRegStr HKCU "Software\Tribler" "" "C:\PreviousTriblerDir"

Of course, "C:\PreviousTriblerDir" would be replaced with "$INSTDIR" in our actual installer.

qstokkink avatar Nov 07 '23 14:11 qstokkink