Requirement .NET 3.5 SP1, MS, providing clients 4.0

I am using MSI to install a WPF application using the .NET Framework 3.5 SP1. I installed .NET 3.5 as a prerequisite in MSI, and what has been happening for ages is that when a user does not have .NET 3.5 SP1, MSI first downloads and installs it before resuming installation of my application.

Since yesterday, when MS released .NET 4.0, when users do not have .net 3.5 SP1, MSI sends them instead of 4.0. It happens that after the installation of 4.0 is complete, MSI still detects that they do not have 3.5 and redirects them to the 4.0 installation site again. So the user has 4.0, but MSI never tries to install my application.

What do I need to change in my application? This seems like an error in how MS handles the prerequisites either on its server or in MSI in VS 2008.

+3
source share
1 answer

I ran into the same problem. I found the easiest way to fix this is to change InstallURL in the .NET Framework Launch Condition to use a different URL. Then just point it to .NET 3.5.

You can find the .NET Framework URLs in package.xml files in bootstrapper packages.

i.e.: C: \ Program Files \ Microsoft SDK \ Windows \ v7.0A \ Bootstrapper \ Packages \ DotNetFx35Client \ en \ package.xml

.NET 4.0: go.microsoft.com/fwlink/?LinkId=131000 .NET 3.5 Client Profile: go.microsoft.com/fwlink/?LinkId=119637

+3

Source: https://habr.com/ru/post/1740936/


All Articles