AnthonyMastrean / chocolateypackages

Application packages for Windows
https://chocolatey.org/profiles/AnthonyMastrean
18 stars 63 forks source link

Can rsync be installed without administrative permission? #368

Open Decamark opened 4 years ago

Decamark commented 4 years ago

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.