Uploaded image for project: 'Minecraft Launcher'
  1. Minecraft Launcher
  2. MCL-10562

MinecraftLauncher fails to update if %APPDATA%\.minecraft is a NTFS Junction

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 2.1.2494-2.1.2496
    • 2.1.2480-2.1.2482
    • Minecraft Launcher
    • Windows 10, Intel Core i7 3770, 16GB DDR3, Samsung SSD 860 EVO

      C:\Users\"myWindowsUser"\AppData\Roaming\.minecraft is an NTFS Junction to D:\Games\.minecraft

      Minecraft Launcher 2.1.2481 (post Update, see work-around)
    • Unconfirmed

      With MCL-5436 fixed I thought junctions would now work properly, but there seems to be an issue still when trying to update the launcher itself.

      Upon launching the old version of the launcher, it automatically proceeds to download the new version and produces the following updateLog.txt:

      23-02-2019 17:38:40 - going to update MinecraftLauncher.exe using D:/Games/.minecraft/tmp/tmpLauncher.tmp
      Launcher is definitely closed.
      Backing up previous version of the launcher...
      Previous version has been backed up as MinecraftLauncher.exe.backup.
      Installing new version of the launcher...
      Moved D:/Games/.minecraft/tmp/tmpLauncher.tmp to MinecraftLauncher.exe successfully.
      Removing backup file MinecraftLauncher.exe.backup
      Error 5, going for attempt 2...
      Removed backup MinecraftLauncher.exe.backup successfully.
      Update succeeded!

      Unfortunately after that the new MinecraftLauncher.exe will do exactly nothing. It fails to execute completely, not even spawning a visible process in the Task Manager / Process explorer. It does not produce any error message, any window, any log or anything at all. Even if run as administrator.

      Work-around:

      A work-around is deleting the NTFS junction on %APPDATA%\.minecraft with the command
      fsutil reparsepoint delete %APPDATA%\.minecraft
      Then the new MinecraftLauncher.exe will actually execute and load/update completely (with default settings and no profiles, since the %APPDATA%\.minecraft directory is empty now.

      The junction can then be reinstated {{}}and the updated launcher will continue to work and load the existing profiles again. 

       

      I assume that this behavior can be reproduced by launching an older version of the launcher with the active junction, but I can't do it because I do not keep backups of the launcher.

            Unassigned Unassigned
            wululululu Wululululu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: