Unity Hub 3.4.1 won't install any Unity version

I’ve tried installing the Unity hub with normal user permissions and admin permissions and running the hub with both permissions. It will download but always fails to install any Unity version. I’ve tried several.

I can install Unity 2021 LTS manually but then get compile errors on creating a new project. It doesn’t matter what template I use.

I would like to get help fixing the Unity hub install issues first as maybe that will fix the other issues.

Here’s part of my log info for the Unity hub:

{“timestamp”:“2023-03-24T19:01:02.273Z”,“level”:“info”,“moduleName”:“UnityInstallStepsWindows”,“message”:“[\n ‘install C:\\Users\\COMMAN~1\\AppData\\Local\\Temp\\unityhub-986120c0-ca75-11ed-84b3-4955b911d20d\\UnitySetup64-2021.3.21f1.exe /S /D=C:\\Program Files\\Unity\\Hub\\Editor\\2021.3.21f1’\n]”}
{“timestamp”:“2023-03-24T19:01:02.275Z”,“level”:“warn”,“moduleName”:“UnityInstallStepsWindows”,“message”:"[\n Error: spawn C:\WINDOWS\system32\cmd.exe ENOENT\n at ChildProcess._handle.onexit (node:internal/child_process:283:19)\n at onErrorNT (node:internal/child_process:478:16)\n at process.processTicksAndRejections (node:internal/process/task_queues:83:21) {\n errno: -4058,\n code: ‘ENOENT’,\n

Thanks for any help.

I’ve tried changing Unity hub folder and exe owner and permissions in Windows; deleting the unity hub temp files in the AddData folder and restarting my pc; even disabled UAC but nothing works.

Ok, I was able to get Unity 2021 LTS to start up and work. There are no more compile errors with a new project and I can create scripts without issues and everything seems to be working fine now.

What was the problem? I’m not sure. I did change unity folder and files ownership and permissions and also changed the cmd.exe permissions in the Windows System32 folder. The Unity Hub still won’t work correctly. I can’t install any version of Unity through the Hub. But Unity 2021 LTS is working fine now.

This instills hope