private static void DownloaderForm_InstallRequested(string filePath) { bool result = FFmpegDownloader.ExtractFFmpeg(filePath, Program.DefaultFFmpegFilePath); if (result) { MessageBox.Show(Resources.ScreenRecordForm_DownloaderForm_InstallRequested_FFmpeg_successfully_downloaded_, "ShareX", MessageBoxButtons.OK, MessageBoxIcon.Information); } else { MessageBox.Show(Resources.ScreenRecordForm_DownloaderForm_InstallRequested_Download_of_FFmpeg_failed_, "ShareX", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
private static void DownloaderForm_InstallRequested(string filePath) { string extractPath = Path.Combine(Program.ToolsFolder, "ffmpeg.exe"); bool result = FFmpegDownloader.ExtractFFmpeg(filePath, extractPath); if (result) { MessageBox.Show(Resources.ScreenRecordForm_DownloaderForm_InstallRequested_FFmpeg_successfully_downloaded_, "ShareX", MessageBoxButtons.OK, MessageBoxIcon.Information); } else { MessageBox.Show(Resources.ScreenRecordForm_DownloaderForm_InstallRequested_Download_of_FFmpeg_failed_, "ShareX", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
private void DownloaderForm_InstallRequested(string filePath) { string extractPath = Path.Combine(App.ToolsDir, "ffmpeg.exe"); bool result = FFmpegDownloader.ExtractFFmpeg(filePath, extractPath); if (result) { this.InvokeSafe(() => { App.Settings.FFmpegPath = extractPath; }); MessageBox.Show(Resources.MainWindow_DownloaderForm_InstallRequested_Successfully_downloaded_FFmpeg_, Application.ProductName, MessageBoxButtons.OK, MessageBoxIcon.Information); } else { MessageBox.Show(Resources.MainWindow_DownloaderForm_InstallRequested_Failed_to_download_FFmpeg_, Application.ProductName, MessageBoxButtons.OK, MessageBoxIcon.Error); } }
private void DownloaderForm_InstallRequested(string filePath) { bool result = FFmpegDownloader.ExtractFFmpeg(filePath, DefaultToolsFolder); if (result) { this.InvokeSafe(() => { txtFFmpegPath.Text = Helpers.GetVariableFolderPath(Path.Combine(DefaultToolsFolder, "ffmpeg.exe")); RefreshSourcesAsync(); UpdateUI(); }); MessageBox.Show(Resources.FFmpegOptionsForm_DownloaderForm_InstallRequested_Successfully_downloaded_FFmpeg_, "ShareX", MessageBoxButtons.OK, MessageBoxIcon.Information); } else { MessageBox.Show(Resources.FFmpegOptionsForm_DownloaderForm_InstallRequested_Download_of_FFmpeg_failed_, "ShareX", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
private void DownloaderForm_InstallRequested(string filePath) { string extractPath = DefaultToolsPath ?? "ffmpeg.exe"; bool result = FFmpegDownloader.ExtractFFmpeg(filePath, extractPath); if (result) { this.InvokeSafe(() => { txtFFmpegPath.Text = extractPath; RefreshSourcesAsync(); UpdateUI(); }); MessageBox.Show(Resources.FFmpegOptionsForm_DownloaderForm_InstallRequested_Successfully_downloaded_FFmpeg_, "ShareX", MessageBoxButtons.OK, MessageBoxIcon.Information); } else { MessageBox.Show(Resources.FFmpegOptionsForm_DownloaderForm_InstallRequested_Download_of_FFmpeg_failed_, "ShareX", MessageBoxButtons.OK, MessageBoxIcon.Error); } }