When I try to run .NET 3.5 applications on Windows 8.1 which has not .NET 3.5 Framework, Windows will show the "An app on your PC needs the following Windows feature. .NET Framework 3.5 (includes .NET 2.0 and .NET 3.0)" dialog automatically.
But I want to show this dialog programmatically. I think that the dialog is much more friendly than DISM command.
Any help would be appreciated.
The dialogue you are searching for is provided by a tool called Fondue (Features on Demand User Experience Tool). To request .NET 3.5 you need to invoke it like this:
FONDUE.exe /enable-feature:NetFx3
Available features can be listed using DISM:
DISM.exe /Online /Get-Features
You can find additional details on Fondue invocation using FONDUE.exe /? or on Microsoft Docs.
MessageBox if the PC does not have .NET 3.5. example codeThis is predicated on the PC having a .NET Framework installed. You can't check if the .NET Framework is installed using C#.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With