public void Run(SetupContext context) { if (context.ExecuteChocolatey("install", "7zip.install") == 0) { context.UserPath.Add(InstallPath); Registry.SetValue(FMRegistryKey, "Editor", EditorPath); } }
public void Run(SetupContext context) { context.ExecuteChocolatey("install", "sublimetext3"); // TODO: Investigate whether the following choco pacakge is worth // it or not. Sublime offers to install packagecontrol in Ctrl+P // afterall. //context.ExecuteChocolatey("install", "sublimetext3.packagecontrol"); }
public void Run(SetupContext context) { if (context.ExecuteChocolatey("install", "git.install") == 0) { // Write .gitconfig string home = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile); string gitconfigPath = Path.Combine(home, ".gitconfig"); File.WriteAllText(gitconfigPath, Resources.gitconfig, Encoding.UTF8); } }
public void Run(SetupContext context) { if (!context.IsChocolateyInstalled()) { string chocoInstallScript = context.DownloadString("Chocolatey install script URL", ChocoInstallScriptUrl); context.ExecutePowershell(chocoInstallScript); context.ExecuteChocolatey("feature", "enable", "-n=allowGlobalConfirmation"); } //string chocoSavePath = context.CreateSaveDir("chocolatey"); //string chocoPackagesFilePath = Path.Combine(chocoSavePath, "choco-packages.config"); //File.WriteAllText(chocoPackagesFilePath, Resources.choco_packages, Encoding.UTF8); //ExecuteChocolatey(context, ChocoExePath, "install", chocoPackagesFilePath); }
public void Run(SetupContext context) { int compileAllValue = CompileAll ? 1 : 0; context.ExecuteChocolatey("install", "python3", $"--install-arguments=CompileAll={compileAllValue}"); }
public void Run(SetupContext context) { context.ExecuteChocolatey("install", "python2"); }
public void Run(SetupContext context) { context.ExecuteChocolatey("install", "firefox", $"-packageParameters \"l={Locale}\""); }
public void Run(SetupContext context) { context.ExecuteChocolatey("install", "visualstudio2017community"); }