ChocoPM.Services.LocalChocolateyService.InstallPackageAsync C# (CSharp) Method

InstallPackageAsync() public method

Install the specific package. Optionally installs a specific version of the package.
public InstallPackageAsync ( string id, string version = null ) : Task
id string The Id of the package to be isntalled.
version string The specific Version string of the package to be installed.
return Task
        public async Task<bool> InstallPackageAsync(string id, string version = null)
        {
            return await ExecutePackageCommand("chocolatey install " + id + (version != null ? " -version " + version : ""));
        }