I installed Chocolatey without administrative permission. Then, I tried to install rsync from non-administrative shell and Chocolatey hung up.
I think the problem is calling Install-ChocolateyEnvironmentVariable. It calls Start-ChocolateyProcessAsAdmin and this function probably calls your script in another child process. Then that child process calls Install-ChocolateyEnvironmentVariable... and this loop continues infinitely. Actually, I've seen multiple powershell.exe run like a chain.
It would be great if it can be installed without administrative permission. If not, it may be helpful to show some sort of error messages and just quit.
I installed Chocolatey without administrative permission. Then, I tried to install rsync from non-administrative shell and Chocolatey hung up.
I think the problem is calling
Install-ChocolateyEnvironmentVariable
. It callsStart-ChocolateyProcessAsAdmin
and this function probably calls your script in another child process. Then that child process callsInstall-ChocolateyEnvironmentVariable
... and this loop continues infinitely. Actually, I've seen multiple powershell.exe run like a chain.It would be great if it can be installed without administrative permission. If not, it may be helpful to show some sort of error messages and just quit.