Search Unity

  1. Improved Prefab workflow (includes Nested Prefabs!), 2D isometric Tilemap and more! Get the 2018.3 Beta now.
    Dismiss Notice
  2. The Unity Pro & Visual Studio Professional Bundle gives you the tools you need to develop faster & collaborate more efficiently. Learn more.
    Dismiss Notice
  3. Let us know a bit about your interests, and if you'd like to become more directly involved. Take our survey!
    Dismiss Notice
  4. Improve your Unity skills with a certified instructor in a private, interactive classroom. Watch the overview now.
    Dismiss Notice
  5. Want to see the most recent patch releases? Take a peek at the patch release page.
    Dismiss Notice

0.17 broke uninstalls

Discussion in 'Unity Hub' started by sxa, May 24, 2018.

  1. sxa

    sxa

    Joined:
    Aug 8, 2014
    Posts:
    56
    (Windows 7 x64)

    Opened Unity Hub 0.16, jumped through usual machine identification hoops
    Prompted to upgrade to Unity Hub 0.17, did so
    Opened Unity Hub 0.17, jumped through usual machine identification hoops (so thats still not fixed)
    Saw two new Unity version updates (2017.4.4 and 2018.1.1), so set a custom path (yay!) and installed them both.
    All fine. Time to uninstall the versions theyve replaced.
    Tried to uninstall 2017.4.3. from the Hub
    Unity Hub tells me it cant be uninstalled.
    Look in both the paths the Hub lists; no sign of the folder.
    Unity Hub still lists it as being on my system.
    Sigh.
    Checked for the 2018.1.0 folder. Definitely there.
    Tried to uninstall 2018.1.0 from the Hub
    Unity Hub tells me it cant be uninstalled.
    Look in both the paths the Hub lists
    This time the folder -is- there.
    Manually run the uninstaller.
    Uninstall runs fine.
    Unity Hub still lists it as being on my system.
    Double Sigh.
    Restart Unity Hub.
    No change. Cant remove them from the list of versions the Hub considers installed.

    Last-ditch attempt, looked for data the Unity Hub might be using. Nothing obvious in the registry. Then went through the .json files in the Unity Hub AppData folder looking to see i . All the other Unity Hub info seems to be there, like the list of available versions, which one is preferred etc. But not the list of installed version.

    Upshot : Hub cant/wont uninstall versions any more, and doesnt seem to want to accept that a version is no longer present.
     
  2. mathieub

    mathieub

    Unity Technologies

    Joined:
    Jun 28, 2017
    Posts:
    25
    Hi @sxa

    Sorry to hear that you encounter these issues.
    Could you please provide your log file to help us troubleshoot? You may find it under %USERPROFILE%\AppData\Roaming\UnityHub\logs

    Thank you for your help.
     
  3. sxa

    sxa

    Joined:
    Aug 8, 2014
    Posts:
    56
    From my emails with Mathieu, it seems like I might be a bit of an edge case with this one, but its still consistent, and 17.1 is doing it too.
    The main behaviour is that the Hub reports an error message saying that it cant do an uninstall, does it anyway(*), then fails to update the list of installed versions unless you forcibly restart UnityHub.exe by killing any leftover processes running when you close the Hub.
    Attached is a screenshot from Hub 17.1 showing the behaviour.

    (*) One new minor variation occurred with uninstalling 2018.12f, though, the installer created a 2018.1.2fEditorData folder parallel to the 2018.1.2f folder in Unity/Hub/Editor, and that was left behind after the uninstall. There's also an EditorData folder for 2018.2.0b6, never seen them before.)
     

    Attached Files:

    mathieub likes this.
  4. sxa

    sxa

    Joined:
    Aug 8, 2014
    Posts:
    56
    Update : problem persisted with 0.18, but with 0.18.1, uninstalls now appear to be behaving properly. Not sure whether that's related to the Hub version doing the uninstalling, or the Hub version that did the install, but it -seems- to be resolved.
     
  5. sxa

    sxa

    Joined:
    Aug 8, 2014
    Posts:
    56
    Sorry, happened again uninstalling 2017.4.6
     
  6. sxa

    sxa

    Joined:
    Aug 8, 2014
    Posts:
    56
    Just to update this, Ive not seen this happen at all since 0.20.1 went on. In 'regular' use and a coupe of additional tests thats been consistent across 5 or 6 uninstalls of different unity versions, and across 2 or 3 reboots of my system.