private void Install(HttpContext context) { context.Response.ContentType = "text/plain"; context.Response.Output.WriteLine("Installing..."); var updater = new Updater(new UpdateParams(this.patcherInfo.configuration, this.GetAdminConnectionString(context)), new InteractiveResponseStream(context)); int resultCode = updater.ApplyAll(); if(resultCode == 0) { this.patcherInfo.PatchesInstalled(); context.Response.Output.WriteLine("Installed"); } else { context.Response.Output.WriteLine("Failed to install: error code {0}", resultCode); } }
private void Install(HttpContext context) { context.Response.ContentType = "text/plain"; context.Response.Output.WriteLine("Installing..."); var updater = new Updater(new UpdateParams(this.patcherInfo.configuration, this.GetAdminConnectionString(context)), new InteractiveResponseStream(context)); int resultCode = updater.ApplyAll(); if (resultCode == 0) { this.patcherInfo.PatchesInstalled(); context.Response.Output.WriteLine("Installed"); } else { context.Response.Output.WriteLine("Failed to install: error code {0}", resultCode); } }