Aaron Stebner's WebLog

Thoughts about setup and deployment issues, WiX, XNA, the .NET Framework and Visual Studio

Silent install, repair and uninstall command lines for the .NET Framework 4

Silent install, repair and uninstall command lines for the .NET Framework 4

Rate This

I have previously posted command lines that can be used to install, repair and uninstall the versions of the .NET Framework in silent mode and unattended mode.  Now that the .NET Framework 4 has shipped, I wanted to post an equivalent set of steps to install, repair and uninstall the .NET Framework 4 Client Profile and Full.

The .NET Framework 4 uses a different setup chainer than in previous versions of the .NET Framework.  As a result, the command lines are somewhat different than in previous releases.  There are also a few differences in how the repair and uninstall processes work that I wanted to call out specifically:

  • There are different repair and uninstall command lines for 32-bit and 64-bit versions of the .NET Framework 4
  • The .NET Framework 4 includes both a client profile and a full version.  Uninstalling the full version requires 2 steps – one to uninstall the extended component and another to uninstall the client profile.

.NET Framework 4 product family

.NET Framework 4 Client Profile (32-bit) – silent repair

%windir%\Microsoft.NET\Framework\v4.0.30319\SetupCache\Client\setup.exe /repair /x86 /x64 /ia64 /parameterfolder Client /q /norestart

.NET Framework 4 Client Profile (32-bit) – unattended repair

%windir%\Microsoft.NET\Framework\v4.0.30319\SetupCache\Client\setup.exe /repair /x86 /x64 /ia64 /parameterfolder Client /passive /norestart

.NET Framework 4 Client Profile (32-bit) – silent uninstall

%windir%\Microsoft.NET\Framework\v4.0.30319\SetupCache\Client\setup.exe /uninstall /x86 /x64 /parameterfolder Client /q /norestart

.NET Framework 4 Client Profile (32-bit) – unattended uninstall

%windir%\Microsoft.NET\Framework\v4.0.30319\SetupCache\Client\setup.exe /uninstall /x86 /x64 /parameterfolder Client /passive /norestart

.NET Framework 4 Client Profile (64-bit) – silent repair

%windir%\Microsoft.NET\Framework64\v4.0.30319\SetupCache\Client\setup.exe /repair /x86 /x64 /ia64 /parameterfolder Client /q /norestart

.NET Framework 4 Client Profile (64-bit) – unattended repair

%windir%\Microsoft.NET\Framework64\v4.0.30319\SetupCache\Client\setup.exe /repair /x86 /x64 /ia64 /parameterfolder Client /passive /norestart

.NET Framework 4 Client Profile (64-bit) – silent uninstall

%windir%\Microsoft.NET\Framework64\v4.0.30319\SetupCache\Client\setup.exe /uninstall /x86 /x64 /parameterfolder Client /q /norestart

.NET Framework 4 Client Profile (64-bit) – unattended uninstall

%windir%\Microsoft.NET\Framework64\v4.0.30319\SetupCache\Client\setup.exe /uninstall /x86 /x64 /parameterfolder Client /passive /norestart

.NET Framework 4 Full (32-bit) – silent repair

%windir%\Microsoft.NET\Framework\v4.0.30319\SetupCache\Client\setup.exe /repair /x86 /x64 /ia64 /parameterfolder Client /q /norestart

.NET Framework 4 Full (32-bit) – unattended repair

%windir%\Microsoft.NET\Framework\v4.0.30319\SetupCache\Client\setup.exe /repair /x86 /x64 /ia64 /parameterfolder Client /passive /norestart

.NET Framework 4 Full (32-bit) – silent uninstall

%windir%\Microsoft.NET\Framework\v4.0.30319\SetupCache\Extended\setup.exe /uninstall /x86 /x64 /ia64 /parameterfolder Extended /q /norestart

%windir%\Microsoft.NET\Framework\v4.0.30319\SetupCache\Client\setup.exe /uninstall /x86 /x64 /parameterfolder Client /q /norestart

.NET Framework 4 Full (32-bit) – unattended uninstall

%windir%\Microsoft.NET\Framework\v4.0.30319\SetupCache\Extended\setup.exe /uninstall /x86 /x64 /ia64 /parameterfolder Extended /passive /norestart

%windir%\Microsoft.NET\Framework\v4.0.30319\SetupCache\Client\setup.exe /uninstall /x86 /x64 /parameterfolder Client /passive /norestart

.NET Framework 4 Full (64-bit) – silent repair

%windir%\Microsoft.NET\Framework64\v4.0.30319\SetupCache\Client\setup.exe /repair /x86 /x64 /ia64 /parameterfolder Client /q /norestart

.NET Framework 4 Full (64-bit) – unattended repair

%windir%\Microsoft.NET\Framework64\v4.0.30319\SetupCache\Client\setup.exe /repair /x86 /x64 /ia64 /parameterfolder Client /passive /norestart

.NET Framework 4 Full (64-bit) – silent uninstall

%windir%\Microsoft.NET\Framework64\v4.0.30319\SetupCache\Extended\setup.exe /uninstall /x86 /x64 /ia64 /parameterfolder Extended /q /norestart

%windir%\Microsoft.NET\Framework64\v4.0.30319\SetupCache\Client\setup.exe /uninstall /x86 /x64 /parameterfolder Client /q

.NET Framework 4 Full (64-bit) – unattended uninstall

%windir%\Microsoft.NET\Framework64\v4.0.30319\SetupCache\Extended\setup.exe /uninstall /x86 /x64 /ia64 /parameterfolder Extended /passive /norestart

%windir%\Microsoft.NET\Framework64\v4.0.30319\SetupCache\Client\setup.exe /uninstall /x86 /x64 /parameterfolder Client /passive /norestart 

<update date="6/1/2010"> Fixed incorrect command lines for uninstall of the .NET Framework 4 extended. </update>

 

  • Hi Aaron,

    Thanks for replying, I have found the cause of the Blue screen of death and it was indeed a driver problem with the readyboost.sys driver. I also downloaded the standalone installer and it seemed to install fine without any problems. I also checked framework with the framework checker tool thats posted on the site and everything seemed fine.

    Yet I'v still got the problem with my Windows live messenger and sound, the sound was working fine before so it cant be a driver issue, but I did just incase uninstall the drier and then ask windows to search for the best driver again.

    I also ran the SFC tool and it found errors and fixed them, however it did say some were unable to be fixed. I have the log and will work with the links you posted to see what I can do.

  • Hi Digo - There is a knowledge base article at support.microsoft.com/.../928228 that explains how to analyze the log files created by SFC and try to fix this type of issue.  Hopefully this will help in your scenario.

  • Hi Aaron. I have exactly the same problem as Dennis here above. I tried many fixes (uninstalling/reinstalling, repair...) but to no avail. In the log i'm told the mscoree dll could not be loaded and it is the version 2. So i'd be very interested to know whether you managed to fix this problem and how you managed to fix it. Thanks a lot.

  • Hi Laurence - It sounds like you're running into the issue that I described at blogs.msdn.com/.../10110053.aspx.  I don't have a lot of good answers about how to solve this type of issue though.  There is a tool linked at the end of that blog post that might help.  It might also help to try to install (or re-install) the latest OS service pack on your computer.

    If neither of those help, then I typically suggest contacting Microsoft technical support for more in-depth troubleshooting assistance using contact information at http://support.microsoft.com.  Alternatively, you can try to repair/re-install Windows.

  • Thanks Aaron.

    I'll look at those blogs.

    Thanks for your help.

  • Hi Aaron I tried applying graphics through skin using the way presented in this site msdn.microsoft.com/.../ykzx33wh.aspx

    I worked with asp .net 3.5 but with 4.0 I didn't work. When I viewed the page source I get

    <img id="image" src="App_Themes/test/Contoso.gif" style="border-width:0px;" />

    for asp.net 3.5

    and i get

    <img id="MainContent_Image1" ImagerUrl="~/images/Contoso.gif" src="" />

    for asp.net 4.0

    It seems asp.net 4.0 doesn't replace ImageUrl attribute with src when rendering

    My question is: do I have problem with asp.net 4.0 that I need to repair/reinstall or is it something else?

  • Hi Jassim - I don't have enough expertise with ASP.NET to know for sure what is going on in this scenario.  I'd suggest posting a question on the forums at http://forums.asp.net to see if someone there can provide some suggestions for this scenario.

  • Thanks Aaron ;)

  • is there a way to install netframework 4 using a swtich to have it pass the admin credentials?

  • Hi Dave - There is not anything built into the .NET Framework installer for this type of thing.  It is the responsibility of the calling process to provide the credentials that you want to install the product with.

  • Hi Aron i have a problem whit netframework4.I have it installed but it say that i need to install it.I have tryed re-install,uninstall...But i have problem whit verification.So what shall i do?

  • Hi Aaron, I have recently installed a game onto my computer (Sims Medieval) and it has installed successfully. However, when I click on the shortcut a message pops up on the screen saying: I need to install netframework4. I have tried many times to install it, but every time it says the installation was unsuccessful becasue'no signature was present in the subject'. I don't know what this means or how to solve this problem. Please help,   Thanks

  • Hi Ganton - If you haven't yet, I'd suggest using the cleanup tool and the steps described at blogs.msdn.com/.../8108332.aspx to fully remove the .NET Framework 4 and then try to re-install it and see if that helps in this scenario.

  • Hi Kate - Can you please use the tool described at blogs.msdn.com/.../6458047.aspx to collect all of your .NET Framework 4 setup log files, upload the file named %temp%\vslogs.cab that this tool will create to a file server (such as http://skydrive.live.com) and then reply back here and post a link that I can use to download your log files and take a closer look?

  • Aaron i have tryed it adn it isnt working.I got missing this files missing: \Windows\Microsoft.NET\Framework\netfxsbs12.hkf

    \Windows\Microsoft.NET\Framework\sbscmp20_mscorlib.dll

    \Windows\Microsoft.NET\Framework\v4.0.30319\WPF\wpftxt_v0400.dll

    \Windows\Microsoft.NET\Framework64\v4.0.30319\WPF\WPFFontCache_v0400.exe

    \Windows\Microsoft.NET\Framework64\v4.0.30319\WPF\wpftxt_v0400.dll

Page 5 of 7 (102 items) «34567
Leave a Comment
  • Please add 7 and 8 and type the answer here:
  • Post