none
Can't install .NET Framework 4.0 RRS feed

  • Question

  • Hi,

    I had some problems with updates for Visual Studio 2010 Professional and .NET Framework 4.0, so I decided to uninstall both of them and begin with a clean install.

    My OS is Windows 7 x64 btw.

    I found I couldn't uninstall .NET 4.0 (it failed with an error), so I used the cleanup tool.

    But it seems I can't reinstall .NET Framework now. Installation of Visual Studio 2010 fails every time when installing .NET 4.0.

    Even if I try with the .NET 4.0 standalone installer, it fails with error code 1603.

    [11/15/12,18:54:55] Microsoft Visual Studio 2010 64bit Prerequisites (x64): [2] Error: Installation failed for component Microsoft Visual Studio 2010 64bit Prerequisites (x64). MSI returned error code 1603
    [11/15/12,18:54:55] VS70pgui: [2] DepCheck indicates Microsoft Visual Studio 2010 64bit Prerequisites (x64) is not installed.
    [11/15/12,18:54:55] VS70pgui: [2] DepCheck indicates Microsoft Visual Studio Macro Tools was not attempted to be installed.
    [11/15/12,18:54:55] VS70pgui: [2] DepCheck indicates .NET Framework 4 Multi-Targeting Pack was not attempted to be installed.
    [11/15/12,18:54:55] VS70pgui: [2] DepCheck indicates Microsoft Visual Studio 2010 Professional - ENU was not attempted to be installed.
    [11/15/12,18:54:55] VS70pgui: [2] DepCheck indicates Microsoft SQL Server Compact 3.5 SP2 (x64) ENU was not attempted to be installed.
    [11/15/12,18:54:55] VS70pgui: [2] DepCheck indicates Visual Studio 2010 Tools for SQL Server Compact 3.5 SP2 ENU was not attempted to be installed.
    [11/15/12,18:54:55] VS70pgui: [2] DepCheck indicates Microsoft SQL Publishing Wizard 1.4 was not attempted to be installed.
    [11/15/12,18:54:55] VS70pgui: [2] DepCheck indicates Microsoft SQL Server System CLR Types (x64) was not attempted to be installed.
    [11/15/12,18:54:55] VS70pgui: [2] DepCheck indicates Microsoft SQL Server 2008 R2 Data-Tier Application Framework was not attempted to be installed.
    [11/15/12,18:54:55] VS70pgui: [2] DepCheck indicates Microsoft SQL Server 2008 R2 Data-Tier Application Project was not attempted to be installed.
    [11/15/12,18:54:55] VS70pgui: [2] DepCheck indicates Microsoft SQL Server 2008 R2 Transact-SQL Language Service was not attempted to be installed.
    [11/15/12,18:54:55] VS70pgui: [2] DepCheck indicates Microsoft Help Viewer 1.0 x64 was not attempted to be installed.
    [11/15/12,19:00:37] Microsoft .NET Framework 4: [2] Error code 1603 for this component means "Onherstelbare fout bij installatie.
    "
    [11/15/12,19:00:37] Microsoft .NET Framework 4: [2] Setup Failed on component Microsoft .NET Framework 4
    [11/15/12,19:00:37] VS70pgui: [2] DepCheck indicates Microsoft .NET Framework 4 is not installed.
    [11/15/12,19:00:37] VS70pgui: [2] DepCheck indicates Microsoft Visual Studio 2010 64bit Prerequisites (x64) was not attempted to be installed.
    [11/15/12,19:00:37] VS70pgui: [2] DepCheck indicates Microsoft Visual Studio Macro Tools was not attempted to be installed.
    [11/15/12,19:00:37] VS70pgui: [2] DepCheck indicates .NET Framework 4 Multi-Targeting Pack was not attempted to be installed.
    [11/15/12,19:00:37] VS70pgui: [2] DepCheck indicates Microsoft Visual Studio 2010 Professional - ENU was not attempted to be installed.
    [11/15/12,19:00:37] VS70pgui: [2] DepCheck indicates Microsoft SQL Server Compact 3.5 SP2 (x64) ENU was not attempted to be installed.
    [11/15/12,19:00:37] VS70pgui: [2] DepCheck indicates Visual Studio 2010 Tools for SQL Server Compact 3.5 SP2 ENU was not attempted to be installed.
    [11/15/12,19:00:37] VS70pgui: [2] DepCheck indicates Microsoft SQL Publishing Wizard 1.4 was not attempted to be installed.
    [11/15/12,19:00:37] VS70pgui: [2] DepCheck indicates Microsoft SQL Server System CLR Types (x64) was not attempted to be installed.
    [11/15/12,19:00:37] VS70pgui: [2] DepCheck indicates Microsoft SQL Server 2008 R2 Data-Tier Application Framework was not attempted to be installed.
    [11/15/12,19:00:37] VS70pgui: [2] DepCheck indicates Microsoft SQL Server 2008 R2 Data-Tier Application Project was not attempted to be installed.
    [11/15/12,19:00:37] VS70pgui: [2] DepCheck indicates Microsoft SQL Server 2008 R2 Transact-SQL Language Service was not attempted to be installed.
    [11/15/12,19:00:37] VS70pgui: [2] DepCheck indicates Microsoft Help Viewer 1.0 x64 was not attempted to be installed.

    Here is my vslogs.cab: https://dl.dropbox.com/u/5552339/vslogs.cab

    I really hope you can help me with this. I don't know what to do anymore.

    Thanks,

    Compizfox


    • Edited by Compizfox Thursday, November 15, 2012 6:36 PM
    Thursday, November 15, 2012 6:32 PM

Answers

  • I just tried an in-place upgrade (repair install) of Windows. However, it didn't work. .NET 4.0 still won't install.

    But, I tried installing .NET 4.5, I hadn't thought about that. Surprisingly, it installed without problems! So I installed Visual Studio 2010 and that worked without problems too.

    So, still no solution, but I'm content with this workaround so far.

    Thursday, November 22, 2012 5:58 PM

All replies

  • Not sure there is any solution except OS reinstall because:

    "so I used the cleanup tool."

    This tool was identified as a possible source of OS corruption by the .NET Framework team some time ago. Current advice it to use it ONLY as a LAST RESORT.

    Here is the core error from your .NET 4.0 install log:

    "Windows6.1-KB958488-v6001-x64.msu) failed with 0x240006 - (null)."

    Possible fixes:

    From http://social.msdn.microsoft.com/Forums/en-US/netfxsetup/thread/7c514d5f-d0fb-47c5-874a-18dc4835cb5c

    Try creating a new account with full administrative rights, then try the install from that account.

    From http://social.msdn.microsoft.com/Forums/en-US/netfxsetup/thread/d2bb535e-7057-4eb5-acdb-f53cdbc8aa55

    Try Heath Stewart's suggestions.

    From http://social.msdn.microsoft.com/Forums/en-US/netfxsetup/thread/b08cdb86-1872-4738-a8f5-8e417488511e

    Try Alexander Sun's suggestions, then read my post.

    Thursday, November 15, 2012 9:05 PM
  • Thanks for answering.

    I tried, without luck:

    - Installing from a new administrator account

    - Disabling my anti-virus (Avast Free)

    - Deleting the folder “v4.0.30319” in “C:\Windows\Microsoft.NET\Framework\”

    - Extracting dotNetFx40_Full_x86_x64.exe and installing Windows6.1-KB958488-v6001-x64.msu. It said that update was already installed on my system.

    - Repairing Windows Installer (with msiserver.reg)

    - sfc /scannow


    • Edited by Compizfox Thursday, November 15, 2012 9:42 PM
    Thursday, November 15, 2012 9:41 PM
  • If you want to, please try this sequence of steps:

    Follow ALL these steps exactly:

    Before trying to install .NET Framework 4.0, execute this command from an ELEVATED Command Prompt provided by the .NET Framework Team:

    "This issue is likely caused by a bad ACL on assembly\tmp folder. After installing updates, the ACL propagates to installed assembly folders in both 4.0 & legacy GAC.  If those updates were installed by WU or another user, the propagated ACL will prevent install of the same assembly by the current user.

    A work around would be to reset the ACL on GAC dirs.

    for /F %D in ('dir %WINDIR%\assembly %WINDIR%\Microsoft.NET\assembly /s /b /a:d') do takeown /F %D && icacls %D /reset /T"

    After running that command, follow these steps:

    Please follow these instructions exactly:

    1. Download a fresh copy of the standalone installer for .NET Framework 4.0:

    http://www.microsoft.com/en-us/download/details.aspx?id=17718

    2. Also, clear your %temp% directory and disable your AV software.

    The %temp% directory is a reference to the Temp folder associated with the current user. To clear it, do the following:

    Sign on to your system with the Administrator user account you will use to run the installer. Click the Start Orb and type %temp% in the search box. The search results will show the Temp folder you want. Click on the Temp folder to open it in Windows Explorer, then delete the entire contents.

    3. Run the standalone installer from step 1 As Administrator.

    Note: Just using an administrator account is NOT enough. To activate full privileges, you must right-click the installer, then select Run as administrator.

    If the install fails, provide complete install logs as follows:

    Please collect your install logs with this:

    http://aka.ms/vscollect

    After you run Collect.exe, you'll find vslogs.cab in your %temp% directory. Please upload vslogs.cab to a public site, like SkyDrive, and post the link here.

    If it fails again and the new log does not reveal anything different, I'd be considering an OS reinstall.

    Friday, November 16, 2012 12:16 AM
  • No joy. :(

    Here's a new vslog.cab: https://dl.dropbox.com/u/5552339/vslogs_2.cab

    Any other solutions? Frankly, I don't feel like reinstalling Windows again. My current install is only a month old.

    Would a system restore to before I used the cleanup tool help? (I already had problems updating .NET via Windows Update before, I dunno if it's the same problem)

    Or should I do a in place upgrade / repair install?

    • Edited by Compizfox Friday, November 16, 2012 12:49 PM
    Friday, November 16, 2012 12:39 PM
  • bump
    Sunday, November 18, 2012 1:21 PM
  • In my experience, getting a fresh start in situations like yours requires a clean install of the OS.

    I say that because I've seen many instances where incomplete removal leaves the offending pieces in place.

    You can take this for what it's worth, but my procedure is to save anything on the OS drive I need to keep, format the OS partition, then reinstall Windows.

    Sunday, November 18, 2012 2:56 PM
  • Here is the core error from your .NET 4.0 install log:

    "Windows6.1-KB958488-v6001-x64.msu) failed with 0x240006 - (null)."

    I found this (in a thread from someone with the same problem as I have):

    We can see the installation of KB958488 failed with 0x240006. For the error “0x240006”, it means the update to be installed is already installed on the system, so this error did not lead to installation failure.

    So I don't think that error is the problem. It is something else.

    Monday, November 19, 2012 12:46 PM
  • I just tried an in-place upgrade (repair install) of Windows. However, it didn't work. .NET 4.0 still won't install.

    But, I tried installing .NET 4.5, I hadn't thought about that. Surprisingly, it installed without problems! So I installed Visual Studio 2010 and that worked without problems too.

    So, still no solution, but I'm content with this workaround so far.

    Thursday, November 22, 2012 5:58 PM