Skip to content

Don't require ChocolateyInstall environment variable #427

@bnason-nf

Description

@bnason-nf

The extension currently identifies the location of the chocolatey install by looking at process.env.ChocolateyInstall. If that variable isn't set, it fails with the message "Chocolatey is not installed", even if it is installed and choco is in the path. It would be nice if it could instead just attempt to execute the choco command to see if it's in the path, or at least as a fallback if the environment variable isn't set. If this isn't desirable for some reason, maybe the error message could be improved to indicate that the environment variable needs to be set.

Thanks,
Benbuck

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions