Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Installation Commands

Discussion in 'Getting Started' started by Fraserb77, Jul 9, 2023.

  1. Fraserb77

    Fraserb77

    Joined:
    Jul 9, 2023
    Posts:
    1
    Hi all,

    As a starter, I should point out I am not a user of Unity. I work in an IT team and we have been requested to get this software pushed out to a number of PCs for students to use.

    Initially we got asked to push out Unity, we do this with SCCM to make life easier. We later got told Visual Studio was needed for Unity to work.

    I see a few ways of doing this, I can push out the two separate applications and that will work. Or we can push out Unity and then through the hub there is an option to install the Visual Studio Community 2022 module.

    Is there a way to automate this whole process? For example there is the standard assets command

    UnityStandardAssetsSetup.exe /S /D=E:\Development\Unity

    Is there similar for VS 2022?

    Thanks
     
  2. Ryiah

    Ryiah

    Joined:
    Oct 11, 2012
    Posts:
    20,084
    Unity (install path is optional):
    Code (csharp):
    1. UnitySetup.exe /S /D=E:\Development\Unity
    https://docs.unity3d.com/Manual/InstallingUnity.html


    Visual Studio (install path is optional):
    Code (csharp):
    1. vs_community.exe --installPath "C:\Program Files (x86)\Microsoft Visual Studio\2022\Community" --add Microsoft.VisualStudio.Workload.ManagedGame
    https://learn.microsoft.com/en-us/visualstudio/install/command-line-parameter-examples?view=vs-2022
    https://learn.microsoft.com/en-us/v...rkload-component-id-vs-community?view=vs-2022