I'm new to Enterprise level applications, and I've been used to "Caveman-style" coding.

I have a WPF application that is deployed on multiple clients. I'm tasked with querying the system and checking the installed .NET Frameworks. If v4.0 (and later) isn't installed, I'm wanting to silently install it while the application remains open.

My question is; is there a best practice for this task?

I'm not wanting to chain a forced upgrade to the installation, if it can be helped. Would Configuring Assembly Binding be a better solution, or adjusting the App config xaml?

<Configuration>
    <startup>
       <supportedRuntime version = "v2.0.50727" />
       <supportedRuntime version = "v4.0.3" />
    </startup>
</Configuration>

I've also read about creating Bootstrapper packages, and this looks like it might be useful, but I have never programmed one before.

Many thanks.

Related posts

Recent Viewed