Skip to content

Installs hang when core OS components are missing from Components list. #162

Closed

Description

I'm currently using the following command to download all installer components then installing them, which has been working great.

Install-UnitySetupInstance -Verbose -Installers ( Find-UnitySetupInstaller -Version $(UnityVersion) -Verbose )

But when I attempted to cull that number down to try and get a shorter install time, for some reason hangs indefinitely and never completes.

Install-UnitySetupInstance -Verbose -Installers ( Find-UnitySetupInstaller -Version $(UnityVersion) -Components 'Windows_IL2CPP', 'UWP_IL2CPP' -Verbose )

Activity

  1. jwittner commented on Apr 1, 2019

    @jwittner
    Member

    You'll need the 'Windows' component as well for first time installs. You probably had an error box about not being able to find Unity.exe sitting there waiting for your input.

    If you can confirm that fixes it maybe we can change this ticket to enhance the installer to test if you haven't included the core installer for the platform, check if it's available, and if not error out.

  2. StephenHodgson commented on Apr 1, 2019

    @StephenHodgson
    ContributorAuthor

    Huh, I was trying to avoid the Windows component all together and just download the il2cpp version.

    What is the dependency on the Windows component?

  3. jwittner commented on Apr 1, 2019

    @jwittner
    Member

    Each OS has a core installer that installs Unity.exe. UnitySetup lumps them in with the other components. So you need Windows, not for the ability to build for Windows, but because that's the core installer for the Windows OS that installs Unity.exe. For Mac/Linux, you need the Mac/Linux components.

  4. jwittner commented on Apr 1, 2019

    @jwittner
    Member

    Stephen Hodgson (@StephenHodgson) - can we close this out?

  5. StephenHodgson commented on Apr 2, 2019

    @StephenHodgson
    ContributorAuthor

    Wondering if it's still a bug bc it doesn't automatically install the required component 💭

  6. jwittner commented on Apr 2, 2019

    @jwittner
    Member

    What's the expected behavior here? Detect that it's missing and error out? Or automatically install it?

  7. StephenHodgson commented on Apr 2, 2019

    @StephenHodgson
    ContributorAuthor

    I'd say maybe automatically install it since it's a required component. Thoughts?

  8. jwittner commented on Apr 2, 2019

    @jwittner
    Member
  9. changed the title [-]Install seems to hang when attempting to install a subset of components[/-] [+]Installs hang when core OS components are missing from Components list.[/+] on Apr 2, 2019
  10. Ziugy commented on Apr 2, 2019

    @Ziugy
    Member

    At minimum better error handling should be implemented. I would expect that this case is an error instead of assuming the intent. I see this example listed as installing extra components to a current installation.

    How we download installers has room for improvement. We should at skip download and install of components already installed. I would still expect that the platform should be specified to be more explicit on actions. If there's concern about always installing Mac when you're on Windows then perhaps that's something further to discuss.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions