Example #1
0
 public void Run(SetupContext context)
 {
     if (context.ExecuteChocolatey("install", "7zip.install") == 0)
     {
         context.UserPath.Add(InstallPath);
         Registry.SetValue(FMRegistryKey, "Editor", EditorPath);
     }
 }
Example #2
0
        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");
        }
Example #3
0
 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);
     }
 }
Example #4
0
        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);
        }
Example #5
0
        public void Run(SetupContext context)
        {
            int compileAllValue = CompileAll ? 1 : 0;

            context.ExecuteChocolatey("install", "python3", $"--install-arguments=CompileAll={compileAllValue}");
        }
Example #6
0
 public void Run(SetupContext context)
 {
     context.ExecuteChocolatey("install", "python2");
 }
Example #7
0
 public void Run(SetupContext context)
 {
     context.ExecuteChocolatey("install", "firefox", $"-packageParameters \"l={Locale}\"");
 }
Example #8
0
 public void Run(SetupContext context)
 {
     context.ExecuteChocolatey("install", "visualstudio2017community");
 }