-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Choco PS installation broken? #6
Comments
This is likely a duplicate, so I moved it over to home repo as it is an issue with the Chocolatey community repository - did you create the folder ahead of time? |
Duplicate of #3 |
We'll hold this open while you confirm on the folder creation. |
Ok so it get's more interesting. The reason why I'm installing manually, is because DSC failed with that same error. However DSC worked before releasing https://github.com/chocolatey/cChoco/releases/tag/v2.5.0 Now after I deleted the folder created by DSC "C:\ProgramData\Chocolatey", the manual installation works. However DSC does not (fails with 'An existing Chocolatey installation was detected') cChocoInstaller installChoco Any thoughts? |
With the new install script you can't install Chocolatey to a folder with files in there as a security precaution. If Chocolatey exists in v2.5.0 of cChoco fixes the issue where the new install script didn't work with it. See this issue. |
And that's what I mean - the new install script has broken cChoco DSC
Does not work, as it tries to download and install choco into the same location InstallDir = "C:\ProgramData\Chocolatey" |
@stevozilik If I understand what you're saying, this has been fixed in cChoco 2.5.0 so if you're using that version, and it's not working, can you raise an issue? Before you post the issue, can you also try to use a different |
@pauby I'm saying 2.5.0 (install.ps1) has broken Choco DSC I've raised an issue, this is it no? (as requested I've tried other InstallDir, same outcome) |
This isn't the place to raise issues for cChoco. Can you raise an issue over at the repository I linked to in my last comment? |
@stevozilik we haven't heard back from you about this issue, so going to assume that everything is working for you now. If not, reply back, and we can offer additional help. |
I am following this conversation thread. I have issues installing Chocolatey exactly the same as "Chocolatey installation was detected" (error msg indicated above). My c:\ProgramData\Chocolatey directory and Chocolatey footprints in Environment Variables are already deleted. I even rebooted my computer just to be sure the deletion take into effect before I install Chocolatey again. Unfortunately, I still get the same error. Do you have any updates about this issue or any resolution? |
I just ran into this issue as well. I can see the directory tree of chocolatey at |
The checks the script performs are:
If any of those are present, we can't be assured that it will be a clean install, and there are security hazards with allowing the install to proceed in those cases. Check those on your systems and see what you can find; these are the only checks the script performs, so if it's not working for you it's one of these.
I would recommend clearing out the |
Following the install guide, latest https://chocolatey.org/install.ps1 seems to incorrectly detect Choco already installed in an environment where Choco is not installed:
PowerShell:
This is on Win 10 Enterprise, 19041.685
The text was updated successfully, but these errors were encountered: