开发者

.NET 3.5 SP1 prerequisite, MS giving the clients 4.0

开发者 https://www.devze.com 2022-12-26 11:57 出处:网络
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 d

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 开发者_JS百科.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.


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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号