BAT file that uses CURL to download the UnityHubSetup.exe file then install it and a chosen version of Unity
- Download the script to your machine
- Create a shortcut from the file to the desktop
- Right Click on the shortcut and select Properties
- Under Target extend the launch with arguments for the unity hub installation path, editor version and changeset. Here is an example: "C:\Users\Sam\Desktop\unity-hub-editor-installer.bat" D:\Newfolder 2018.4.36f1 6cd387d23174
- Click Apply once changes have been made
- Run the newly modified shortcut
Included with the script is a zip file with desktop shortcuts that are intended to run off the script. To use them download and extract the zip anywhere on your machine and follow these instructions:
- Open each shortcut by right clicking and selecting Properties
- Modify the path to the BAT file under the Target section
- Next modify the first agument which states where to download the UnityHubSetup.exe file
- Leave the unity version and changeset as they are unless you intend to point to a different version when installing
- Apply changes to the shortcuts and click Ok
- Licensing SDK callback errors
- These are not fatal and will not stop installation
- UAC Popups in non admin execution
- Nothing can be done at this time other than decrease UAC alert level or run as admin
- During installation if CURL_DOWNLOAD_PATH is empty do not progress
- During installation if UNITY_VERSION is empty do not progress
- During installation if UNITY_CHANGESET is empty do not progress
- During installation if UNITY_PATH is empty do not progress
- During installation if HUB_INSTALLED_PATH empty do not progress
- If UnityHubSetup.exe exists in the CURL_DOWNLOAD_PATH then proceed to editor installation
- If UnityHubSetup.exe does not exist in the CURL_DOWNLOAD_PATH then download from web
- After UnityHubSetup.exe has been downloaded call silent installation
- If the unity version is already installed at the UNITY_PATH then proceed to module installation
- If the unity version is not already installed then run installation command sequence
- After editor has been installed then proceed to install modules for target version
- Upon succesful installation of editor and modules or just modules complete installation