I have a console application which has:
- target framework ".NET Framework 4",
and app.config like this:
<?xml version="1.0" encoding="utf-8"?> <configuration> <startup> <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/> </startup> </configuration>
If I run it on two different virtual machines with Windows 7 installed I get two different dialogs, both starting with:
.NET Framework Initialization Error
To run this application, you first must install one of the following versions of the .NET Framework: v4.0
But then these dialogs start to differ, the first has only "OK" button and says:
Contact your application publisher for instructions about obtaining the appropriate version of the .NET Framework.
while the second has "YES", "NO" buttons and reads:
Would you like to download and install .NETFramework,Version=v4.0 now?
Why is this different? What to do to unify this behaviour? Is some Windows update needed in order to get the later dialog? Because I would personally expect to see the later dialog on Win7 regardless of any other conditions based on e.g. this SO thread and linked blog post.
EDIT:
I just performed clean installation of Win7 SP1 and after starting .NET v4.0 app I still receive an error on startup that I should "Contact your application publisher for instructions" instead of more suitable one with download redirect...