private void InstallationPromptForm_Load(object sender, EventArgs e) { Text = @$ "{_targetAssembly.Title}: prerequisites missing"; Icon = IconEx.TryExtractAssociatedIcon(Application.ExecutablePath); IconPictureBox.Image = SystemIcons.Warning.ToBitmap(); MissingPrerequisitesTextBox.Lines = _missingPrerequisites.Select(c => $"• {c.DisplayName}").ToArray(); }
private void InstallationForm_Load(object sender, EventArgs e) { Text = @$ "{_targetAssembly.Title}: installing prerequisites"; Icon = IconEx.TryExtractAssociatedIcon(Application.ExecutablePath); UpdateStatus(@"Preparing installation"); new Thread(PerformInstall) { Name = nameof(PerformInstall), IsBackground = true }.Start(); }