3

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.

Matt Bridges
  • 48,277
  • 7
  • 47
  • 61
  • Are you using Visual Studio's built-in Prerequisites bootstrapper packages to do the test and install of the dependency? If so, bummer... maybe M$ will release updated ones for .NET 3.5-SP1 and 4.0 RTM. If not, maybe you should, as that is likely to install the specific version you need. – ewall Apr 13 '10 at 15:35
  • I am using VS2008 built-in prerequisite checking -- i.e., right-click on the installer project, click "Prerequisites...", put a check next to .NET 3.5 SP1. – Matt Bridges Apr 13 '10 at 15:56

1 Answers1

3

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
  • 2,196
  • 1
  • 14
  • 5
  • Thanks for the links. BTW what would be .NET 4.0 Full Profile? – Marcel Apr 08 '11 at 11:06
  • 1
    @Marcel, it is http://go.microsoft.com/fwlink/?linkid=182805 You can find it via C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bootstrapper\Packages\DotNetFx40\en\Package.xml – Adam Caviness Dec 16 '11 at 15:20