diff --git a/Source/ChocolateyGui.Subprocess/Program.cs b/Source/ChocolateyGui.Subprocess/Program.cs index aa1a60b38..5d34d2e69 100644 --- a/Source/ChocolateyGui.Subprocess/Program.cs +++ b/Source/ChocolateyGui.Subprocess/Program.cs @@ -17,7 +17,9 @@ using ILogger = Serilog.ILogger; namespace ChocolateyGui.Subprocess -{ +{ + using chocolatey; + public class Program { public static ManualResetEventSlim CanceledEvent { get; private set; } @@ -48,7 +50,11 @@ public static int Main(string[] args) e.Cancel = true; CanceledEvent.Set(); source.Cancel(); - }; + }; + + // do not remove! Load Chocolatey once so all config gets set + // properly for future calls + var choco = Lets.GetChocolatey(); CanceledEvent = new ManualResetEventSlim();