How to install prerequisites like .net framework for WPF External UI

Apr 30, 2015 at 5:08 AM
How to install prerequisites like .net framework for WPF External UI. Because without .net framework we can't run WPF Exe. Examples please thanks in advance.
Apr 30, 2015 at 6:25 AM
Edited Apr 30, 2015 at 6:26 AM
You need to create a simple native bootstrapper that need to check if you WPF exe is compatible with the target OS. Of course if your target system is a modern version of Windoes you are fine. .NET is garanteed to be there and you can use even a managed bootstrapper:
static void Main()
{
    if(!CanRunWPF())
    {
        MessageBox.Show("Pleas install .NET form this URL....") ;
    }
    else
    {
        var wpfExe = GetResource("setup.exe");
        Process.Start(wpfExe);
    }
}