protected KibanaInstallationTask(string[] args, ISession session, bool installationInProgress = true) : this(KibanaInstallationModel.Create( new WixStateProvider(Product.Kibana, Guid.Parse(session.Get <string>("ProductCode")), installationInProgress), session, args), session, new FileSystem() ) { this.Args = args; }
public void Application_Startup(object sender, StartupEventArgs e) { var wix = new DemoWixStateProvider(); var model = KibanaInstallationModel.Create(wix, NoopSession.Kibana); var window = new MainWindow(model, new ManualResetEvent(false)); model.InstallUITask = async() => { await Task.Delay(TimeSpan.FromSeconds(1)); return(Observable.Return(ClosingResult.Failed)); }; model.AllSteps.Last().IsSelected = true; window.Show(); RxApp.MainThreadScheduler = new DispatcherScheduler(Application.Current.Dispatcher); Application.Current.Resources["InstallerTitle"] = wix.CurrentVersion.ToString(); }
private IEmbeddedWindow GetMainWindow(string product, IWixStateProvider wixState, ISession session) { switch (product) { case "elasticsearch": { var model = ElasticsearchInstallationModel.Create(wixState, session); var window = new Elasticsearch.MainWindow(model, this._installStartEvent); return(window); } case "kibana": { var model = KibanaInstallationModel.Create(wixState, session); var window = new Kibana.MainWindow(model, this._installStartEvent); return(window); } default: throw new Exception($"Unknown product name {product}"); } }
protected KibanaInstallationTask(string[] args, ISession session) : this(KibanaInstallationModel.Create(new NoopWixStateProvider(), session, args), session, new FileSystem()) { this.Args = args; }