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 Astebner - I have uploaded the zip files to my Skydrive site as you requested in the first two items on the above list. As for number three, the file version is 6.1.7600.16385

    Thanks

  • Hi Dennis - I got the WindowsUpdate.log, but the CBS.log isn't the actual log, it is just a shortcut.  Can you please make sure that you copy the full log to your desktop before you zip it?

    Also, can you please go to c:\windows\system32, find the file named kernel32.dll, right-click on it, choose Properties, then click Details and let me know what the full file version is for that file on your computer?

  • Hi Astebner - I have returned to find the full file version under details and the file version is as I submitted above: 6.1.7600.16385. Please tell me if I am doing it wrong. Under details it says: "file version 6.1.7600.16385".

    I will go back and try to have the full log: CBS.log at my Skydrive site ASAP.

  • Hi Astebner - I have placed the full CBS.log at the Skydrive site.

  • Hi Dennis - Thanks for posting the logs.  The version number for kernel32.dll looks correct to me.  It looks like your computer is having trouble installing all OS updates that have been attempted over the past few months.  Your last attempt to install the .NET Framework 4 happened before the last entries in your CBS and WindowsUpdate log files though, so there isn't any error information related to the .NET Framework in those logs.  Would it be possible for you to try to uninstall + re-install the .NET Framework 4 one more time and then post updated versions of your CBS.log and WindowsUpdate.log to your SkyDrive site for us to look at?

  • Hi Astebner - I have just now finished uninstalling and re-installing the .Net Framework 4 on my computer. Shortly after that I noticed a window open up that I have seen occasionally. It reads: "MONITOR OF TOSHIBA REALTIME HAS STOPPED WORKING. A problem caused the program to stop working correctly. Windows will close the program and notify you if a solution is available". It has appeared many times before together with the error notice for the .Net Framework.

    I will now go ahead and post the updated logs to my skydrive site and will let you know when I have that done. Thanks.

  • Hi Astebner - I have the CBS file on my desk top but when I try to zip it, I get a message "file not found or no read permission". Any advice?

  • Hi Dennis - Are you sure you copied the file to your desktop and not a shortcut?  How did you zip and post that file last time?

    Also, if you can't get that one to work, can you please post the updated WindowsUpdate.log anyways?  I think the most useful information to try to narrow this down will be in that file, and I was just asking for cbs.log as well just in case.

  • Hi Astebner - The WindowsUpdate zip is now in my Skydrive under log files. I hope you can find it. If not, let me know and I will try again. Thanks

  • Hi Astebner - I tried to copy the cbs.log again but was told is was "empty". Maybe I have deleted the file. Not sure what happened. Can you advise me how to fix this? Thanks.

  • Hi Dennis - I was able to download your WindowsUpdate log and I'm working with the .NET Framework setup team to see if there is anything they can figure out from that.  Would it be possible for you to contact me by using the email form at blogs.msdn.com/.../contact.aspx so I can ask you a couple of follow up questions?

  • Hi Astebner - I sent a message using your email form. Thanks.

  • Tks for the post!!

    iis are the best.. i was can uninstall NetFramework 4 now ^^

    rly tks :D

  • Hi Aaron,

    I recently updated my computer with windoes updates (may have included a .net framework update) and I think they caused an error with my windows 7, as after restarting I got a popup stating a framework dll file was missing and the error box would not go away and kept coming back everytime I clicked ok.

    I also started to get the Blue screen of death after restarting and entering in my windows password. My computer rolled back and after logging on I noticed Windows Live messenger didnt work (when opened it opened a window which was just balck), windows media player also wont play videos and my sound seems to have dissapeared (checked device manager and everything seems fine and sound drivers are ok and say 2008 so were not updated recently) I tried to uninstall the net framework 4 from the control panel and as I couldnt as it game me an error about missing files, i reinstalled the framework 4 standalone installer.

    Yet still have problems with MSN, Media player and Sound, but no more errors.

    Is this something that the Net famework could have done. (I checked for viruses by 2 different scanners, nothing found).

  • Hi Digo - I'm not sure if these problems could be caused by the .NET Framework or not.  The application errors are possible, but I don't recall seeing the .NET Framework cause OS blue screens in the past.  Typically, that type of crash is caused by driver problems.

    I'd suggest using steps like the ones listed at blogs.msdn.com/.../how-to-repair-the-net-framework-2-0-and-3-0-on-windows-vista.aspx to repair the versions of the .NET Framework that come with your OS (Windows 7 comes with the .NET Framework 2.0 SP2, 3.0 SP2 and 3.5 SP1).  It might also help to install the .NET Framework 4 from www.microsoft.com/.../details.aspx.

    I'd also suggest checking on the web site for the manufacturer of your sound card to see if they have any updated drivers for Windows 7 that you can try installing to fix the audio issue.  Windows 7 shipped in the fall of 2009, so if you have a driver from 2008, it would have been created before Windows 7 shipped.

Page 4 of 7 (102 items) «23456»
Leave a Comment
  • Please add 1 and 4 and type the answer here:
  • Post