none
.Net Framework 4 Reinstallation Failure

    Question

  • Background

    I had .Net framework 4.5 Developer Preview installed and tried to install ASP.Net MVC 4 Beta. It complained about .Net 4.5 so I uninstalled it and was able to install MVC 4 Beta successfully. When I created a sample project in MVC 4 Beta, I got a runtime error.

    Then I tried another normal Web project based on .Net 4 and still got the same error. Upon researching, it appeared that my .Net 4 installation was corrupted. I followed the following steps to get it re-installed.

    1. I deleted the %temp% folder
    2. I downloaded the full  version of .Net 4
    3. I disabled my anti-virus
    4. I completely removed .Net 4 using http://blogs.msdn.com/b/astebner/archive/2008/08/28/8904493.aspx
    5. When I reinstall .Net 4 under the Admin account, I get the following error message

    Calling MsiInstallProduct(D:\c33521d9beb908c760a61b60\netfx_Core_x64.msi, EXTUI=1 [2/19/2012, 21:57:35] Returning IDOK. INSTALLMESSAGE_ERROR [A later version of Microsoft .NET Framework 4 Client Profile is already installed.] [2/19/2012, 21:57:35]MSI (D:\c33521d9beb908c760a61b60\netfx_Core_x64.msi) Installation failed.  Msi Log: Microsoft .NET Framework 4 Setup_20120219_215723314-MSI_netfx_Core_x64.msi.txt [2/19/2012, 21:57:35]PerformOperation returned 1603 (translates to HRESULT = 0x80070643)

    [2/19/2012, 21:57:35] Action complete

    [2/19/2012, 21:57:35]OnFailureBehavior for this item is to Rollback.

    [2/19/2012, 21:57:35] Action complete
    [2/19/2012, 21:57:35] Action complete

    [2/19/2012, 21:57:35]Final Result: Installation failed with error code: (0x80070643), "Fatal error during installation. " (Elapsed time: 0 00:00:12). [2/19/2012, 21:58:10]WM_ACTIVATEAPP: Focus stealer's windows WAS visible, NOT taking back focus

    This is the original post: http://forums.asp.net/t/1770981.aspx/1?Update+from+MVC+4+Dev+Preview+to+Beta

    I really hope I do not have to reformat my machine.

    Update: I collected my logs using the Collect.exe tool and have published it here: https://skydrive.live.com/redir.aspx?cid=94da931478bade0d&resid=94DA931478BADE0D!1424&parid=94DA931478BADE0D!1423


    With Regards Shailen Sukul Entrepreneur/Software Architect/Developer/Consultant/Trainer (BSc | Mct | Mcpd (.Net 2/3.5/SharePoint2010) | Mcts (Sharepoint 2010/MOSS/WSS), Biztalk, Web, Win, Dist Apps) | Mcitp(SharePoint) | Mcsd.NET | Mcsd | Mcad) MSN | Skype | GTalk Id: shailensukul Twitter: http://twitter.com/shailensukul Website: http://sukul.org Blog: http://shailen.sukul.org/ http://www.linkedin.com/in/shailensukul



    • Edited by Shailen Sukul Monday, February 20, 2012 6:43 AM Added log file
    Monday, February 20, 2012 6:12 AM

Answers

  • Sorry to be the bearer of bad news, but your log confirms the issue:

    "A later version of Microsoft .NET Framework 4 Client Profile is already installed."

    This is why we see the caution "NEVER install beta test software on a production system needed to do business."

    The message is saying that there are leftovers from the installation of the pre-beta Developer Preview software that are blocking .NET Framework 4.0.

    Is your situation, if returning to a restore point prior to the DP install is not an option, I'd reinstall the OS.

    Monday, February 20, 2012 3:02 PM

All replies

  • Sorry to be the bearer of bad news, but your log confirms the issue:

    "A later version of Microsoft .NET Framework 4 Client Profile is already installed."

    This is why we see the caution "NEVER install beta test software on a production system needed to do business."

    The message is saying that there are leftovers from the installation of the pre-beta Developer Preview software that are blocking .NET Framework 4.0.

    Is your situation, if returning to a restore point prior to the DP install is not an option, I'd reinstall the OS.

    Monday, February 20, 2012 3:02 PM
  • Try searching "Microsoft .NET Framework 4.5 Client Profile Developer Preview" in the registry. Find the PackageCode value and copy it.

    Then run msiexec /uninstall [productcode] (the productcode should have the following format: {75F0E3C2-A745-4FA3-6BBD-C25A6959811D})

    if it works, that should solve the problem.

    if it says "This action is only valid for products that are currently installed", then do a backup of the registry key (just in case) and delete the entire key (folder).

    That solved my problem.

    Hope it helps


    Regards,

    Jorge Fioranelli
    http://blog.jorgef.net

    Tuesday, February 21, 2012 12:48 AM
  • I reformatted my machine and that resolved the issue.

    The problem is that the .Net cleanup tool mentioned in my original post has not been updated to handle .Net 4.5 removal which is why the uninstalled and the subsequent cleanup failed. This is not that shocking, considering that it is still in Developer Preview.


    With Regards Shailen Sukul Entrepreneur/Software Architect/Developer/Consultant/Trainer (BSc | Mct | Mcpd (.Net 2/3.5/SharePoint2010) | Mcts (Sharepoint 2010/MOSS/WSS), Biztalk, Web, Win, Dist Apps) | Mcitp(SharePoint) | Mcsd.NET | Mcsd | Mcad) MSN | Skype | GTalk Id: shailensukul Twitter: http://twitter.com/shailensukul Website: http://sukul.org Blog: http://shailen.sukul.org/ http://www.linkedin.com/in/shailensukul

    Thursday, February 23, 2012 2:22 AM
  • I had the exact same situation, trying to uninstall VS2011 developer preview in order to install MVC4 Beta.

    I tried your suggested registry solution, and got an error (not the exact same one you mentioned) running msiexec /uninstall. But before deleting the registry key as you suggest, I searched through the registry for more entries, and the next one I found had a lot more key/value pairs, one of which was "Uninstall String". On my machine, the value for this was "MsiExec.exe /X{DE4EE40A-C10A-366C-9316-65AA22064331}". Note: that GUID value was not the same value as the ProductCode in the first registry entry I found.

    I executed that and all traces of .NET Framework 4.5 disappeared. Unfortunately, afterwards VS2010 crashed immediately upon launch. I ran the install/repair utility for VS2010, and everything was back to normal and working.

    I've spent the last 3 days fighting this, so hopefully this will save someone else a protracted headache.

    To help others find this, some search terms:

    "Attempt by security transparent method 'System.Runtime.Diagnostics.DiagnosticTrace..ctor(System.String, System.Guid)' to access security critical method 'System.Runtime.Diagnostics.EtwDiagnosticTrace..ctor(System.String, System.Guid)' failed. "

    vs2010 mvc4 beta javascript editor hangs

    uninstall vs2011 developer preview

     

    • Proposed as answer by jpellio1 Saturday, May 5, 2012 12:37 PM
    Friday, February 24, 2012 11:18 PM
  • Thank you Jorge/jetzen!!!

    I have been stuck on this issue for almost a week and didn't want to have to reformat. I used jetzens suggestion but had to uninstall two different packages. It uninstalled core first then I search again and extended had the same UninstallString. Used them both and was finally able to install .NET 4.0 without issue. 

    Thanks again!

    Monday, April 2, 2012 5:30 PM
  • Just for future reference I was able to solve the problem by looking at the MSI installer logs and finding this line:Property(S): NEWERVERSIONDETECTED = {BD6F5371-DAC1-30F0-9DDE-CAC6791E28C3}

    And running this in a command line:

    msiexec /uninstall {BD6F5371-DAC1-30F0-9DDE-CAC6791E28C3}

    To my suprise it started to uninstall .NET Framework 4.6.1. And when I looked at my .NET Framework64 folder .NET 4.5 was gone too. But it fixed the problem (I was trying to install Theano and needed to install VS 2010, which needed .NET 4.0, but I had an earlier version that wouldn't go away even after clean-up) and I'm sure I can always re-install .NET 4.5 and 4.6.1.


    • Edited by DevJoel Thursday, April 14, 2016 7:09 PM Removed spurious comment
    Thursday, April 14, 2016 7:09 PM