if you have a shortcut (.lnk) in in your config folder and it points to non-existing app, application crashes.
Process process = Process.Start(file.FullName); <-- surround with try/catch, log error.
private void LaunchApplication(FileInfo file)
{
if (file == null)
{
MessageBox.Show("Verfiy that you have selected an item to launch.", "Sysknowlogy Instigator", MessageBoxButton.OK, MessageBoxImage.Exclamation);
return;
}
Log.Write("Execute->{0}", file.Name);
if (File.Exists(file.FullName) == false)
{
MessageBox.Show("The short-cut no longer exists.", "Sysknowlogy Instigator", MessageBoxButton.OK, MessageBoxImage.Exclamation);
return;
}
Process process = Process.Start(file.FullName);
}