views:

331

answers:

2

I have been using an MSI to install a WPF application using the .NET Framework 3.5 SP1. I have set up .NET 3.5 as a prerequisite in the MSI, and what has been happening for ages is that when the user does not have .NET 3.5 SP1, the MSI first has them download and install that before resuming the installation of my application.

Since yesterday when MS released .NET 4.0, when users don't have .net 3.5 SP1, the MSI is directing them to install 4.0 instead. What happens though, is that after they finish installing 4.0, the MSI still detects that they don't have 3.5, and directs them to the 4.0 install site again. So the user has 4.0, but the MSI doesn't ever get to installing my application.

What do I have to change in my application? This seems like an error with how MS is handling the prerequisites either on their server or in the MSI in VS 2008.

+1  A: 

I ran into the same problem. I found the easiest way to fix it, was to change the InstallURL in the .NET Framework Launch Condition to use a different url. Then just point it at .NET 3.5.

You can find the .NET Framwork urls in the package.xml files in the bootstrapper packages.

ie: C:\Program Files\Microsoft SDKs\Windows\v7.0A\Bootstrapper\Packages\DotNetFx35Client\en\package.xml

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

tbergelt
A: 

Thank you so much for providing the link to the .NET 3.5 Client Profile - I am having this same problem and cant believe VS doesn't automatically just change the URL when you change the target framework version for the installer to 3.5...

Chris128