.Net Framework 4.0 Installer Fails

Windows 208 R2 Server

Had .Net Framework 4.5.1 installed originally. Client has a proprietary software that requires .Net Framework 4.0. We tried it with 4.5.1 but it did not work and 4.0 also did not want to cohabitate with 4.5.1.

I removed 4.5.1, restarted the server and now 4.0 installer fails about 30% into the setup process. The log file shows the error below. I need to get this resolved a.s.a.p. since the client has a deadline on Monday for this to work before the rest of their project can continue.

If anyone has any ideas I would greatly appreciate it!

Log Error that kicks off the setup roll-back about 30% after starting:

Creating new Performer for MSI item Action: Performing Action on MSI at C:\68100a5d237bf199cd\netfx_Core_x64.msiLog File C:\Users\ADMINI~1\AppData\Local\Temp\2\Microsoft .NET Framework 4 Setup_20150605_160451473-MSI_netfx_Core_x64.msi.txt does not yet exist but may do at Watson upload time Calling MsiInstallProduct(C:\68100a5d237bf199cd\netfx_Core_x64.msi, EXTUI=1  Returning IDOK. INSTALLMESSAGE_ERROR [Error occurred while initializing fusion. ] MSI (C:\68100a5d237bf199cd\netfx_Core_x64.msi) Installation failed. Msi Log: Microsoft .NET Framework 4 Setup_20150605_160451473-MSI_netfx_Core_x64.msi.txt PerformOperation returned 1603 (translates to HRESULT = 0x80070643)Action complete OnFailureBehavior for this item is to Rollback. Action: Performing actions on all Items
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

KatfisAuthor Commented:
I should mention I have already run Aaron Stebner's .NET Framework Cleanup Tool (http://blogs.msdn.com/b/astebner/archive/2008/08/28/8904493.aspx), cleared out the temp folders, and restarted the system. Result remains the same; the installer still fails exactly as it has before.
JohnBusiness Consultant (Owner)Commented:
.NET Framework 4.0 should work alongside V4.5 . I have this running on several machines and I use Stebner's tool to verify.

Try with Windows Features (you may need to add this into your server) to remove .NET 4.51 leaving just 3.5.  I think you will now to restart the Server so wait for a convenient moment to do this.

Then go back to the same spot and add V4.51 back in. Restart again and I think you should wind up with V4 as well.
KatfisAuthor Commented:
Thanks for the reply John.

I was also under the impression that 4.0 and 4.51 should cohabitate but now I am not so sure and since I have never needed to run those particular two in this way. I tried installing 4.0 before I removed 4.5.1 and it complained about .Net already being installed. Looking deeper into this on Microsoft's site it seems that 4.5 is an in-place update to 4.0 so it's something like a service pack update to 4.5. As such it seems reasonable to me to deduce that 4.5 then might be overwriting 4.0 which then makes sense of the concurrent installation problems.

According to Microsoft 4.5.1. should be 100% backward compatible to 4.0 software builds. In practice however, it might not be that simple. See http://weblog.west-wind.com/posts/2012/Mar/13/NET-45-is-an-inplace-replacement-for-NET-40

Are you running 4.5.1 side by side with 4.0 currently on a Windows 2008 R2 server? There are also no options in Windows features that make any mention to anything other .Net versions besides 3.5.1 so unless I am not looking in the right place I do not see how to add or remove anything besides 3.5.1 using Windows Features.

Any ideas?
Creating Active Directory Users from a Text File

If your organization has a need to mass-create AD user accounts, watch this video to see how its done without the need for scripting or other unnecessary complexities.

JohnBusiness Consultant (Owner)Commented:
I do not have any more Server 2008 - just Server 2012, so I cannot check that. But otherwise all my systems have both 4 and 4.5 running together.
KatfisAuthor Commented:
I decided to reinstall .Net Framework 4.5.1 and it installed without any problems.

I wrote a quick registry query app in C# to query the available .Net F/work versions on the server. The app was compiled for .Net 4.0. It ran without a problem on the server and the attached screenshot shows the output. It appears that my suspicion earlier that 4.0 is part of 4.5.1 was correct. .Net 3.5 is installed under Windows Features and then I only have .Net 4.5.1. installed using the full standalone installer. Version 4.0 shows up as a result.

If anyone can shine some more light on this and tell me if I am off the tracks on this, please do so. I am going to have to talk to the client's developer in the morning and I'd like to have the facts straight since it is likely that they will need to do some code reworking on their end (something they will be reluctant to do for obvious reasons).

Thank you!
JohnBusiness Consultant (Owner)Commented:
You have confirmed what I said:  If you start with .NET 3.5 and install .NET 4.5 then .NET 4.0 comes along. That has always worked for me and has always been verified by Stebner's .NET Framework verifier.  What you saw in terms of .NET 4.0 being installed is normal.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
KatfisAuthor Commented:
Hi John,

Yes, thank you. You are correct, I misread your earlier post. I was thinking in terms of those two packages being independent of one another but cohabitating side-by-side; i.e. to get 4.0 I would have to install it independently of 4.5.1 and that does not seem to be the case here.

Thank you for your input!
JohnBusiness Consultant (Owner)Commented:
@Katfis  - You are very welcome and I was happy to help.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows Server 2008

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.