Skip to content

li-zhixin/ChocoWrapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ChocoWrapper

Build NuGet NuGet

A chocolatey wrapper in windows.

Notice

Please run as administrator.

How to use

var choco = new ChocoWrapper.ChocoWrapper();
choco.InstallPackage("captura");
choco.InstallPackage("ffmpeg","4.4");
choco.InstallPackage("ffmpeg","4.4", "http://my-host:8624/nuget/private-chocolatey/");

FAQ

  1. Environment variables not refreshed after installing dependencies.

A copy of the environment variables is made when the process is started, so any environment variable changes that occur in the middle process are not sensed. For newly started processes, you can pass the environment variables, for existing processes, you need to look them up manually.

startInfo.EnvironmentVariables["PATH"] = Environment.GetEnvironmentVariable("PATH", EnvironmentVariableTarget.Machine);

About

A chocolatey wrapper in windows.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages