diff --git a/Program.cs b/Program.cs index 0ddd0bf..72adb1e 100644 --- a/Program.cs +++ b/Program.cs @@ -1,6 +1,7 @@ using System; using System.Diagnostics; -using System.Net; +//using System.Net; +using System.Windows.Forms; using Microsoft.Win32; using System.IO; using System.IO.Compression; @@ -269,7 +270,19 @@ namespace AtualizadorVLibras //CONCLUSÃO Console.WriteLine("Pré-requisitos verificados."); - + DialogResult dialogResult = MessageBox.Show("Deseja iniciar o player?", @"Instalação concluída", MessageBoxButtons.YesNo); + if (dialogResult == DialogResult.Yes){ + string desktopPath = Environment.GetFolderPath(Environment.SpecialFolder.Desktop); + string lnkPath = System.IO.Path.Combine(desktopPath, "VLibras.lnk"); + if(!File.Exists(lnkPath)){ + MessageBox.Show("Por favor, execute novamente o Atualizador VLibras e repita o processo.", "Atalho do player não encontrado!", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); + }else{ + ProcessStartInfo info = new ProcessStartInfo(lnkPath); + Process process = Process.Start(info); + } + }else if (dialogResult == DialogResult.No){ + //do something else + } //RODA O VLIBRAS -- libgit2 0.21.2