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 done a repair on both components twice without results and when I try to uninstall I get a warning: Uninstalling Microsoft .NET Framework may cause some applications to cease to function. Should I go ahead and uninstall anyway and then re-install? Thanks.

  • Hi Dennis - That warning appears because uninstalling the .NET Framework 4 will prevent applications that were written to use the .NET Framework 4 to fail to work.  However, in your case, you're planning to re-install afterwards, so you can safely ignore that warning.

  • Hi Astebner-I have done the uninstall of both components and now will re-install. But before I do, do you have any special instructions? As I read above at the top of this page, I am a bit confused as to how and where to proceed with the download. Do I click on the "Download location" above? And under that you have "Deployment guide with silent install command lines". Is this something I need to pay attention to also? I am a bit of a novice so if you could walk me through this. I don't want to mess up anything. Thanks.

  • Hi Astebner-I went ahead and re-installed, which was successful for both components. But within half an hour the same anoying error message has reappeared. What can be done at this point? Thanks.

  • Hi Dennis - Are you getting this error from a specific program on your computer?  Does it work for a half hour or so and then stops working?  If so, is it possible that there's some kind of process running on your system that is modifying files or registry that is created by the .NET Framework 4 setup?  Can you try to run the .NET Framework verification tool from blogs.msdn.com/.../8999004.aspx and verify the .NET Framework 4 to see if it reports any errors?

  • Hi Astebner-No, I am not getting this error from anything specific. It is completely random and does not effect the performance of the computer at all. The only thing I am noticing is that the error message keeps appearing several times a day in the middle of the screen and I need to delete it. As you suggested I ran the verification tool and it failed. It says: Product verification failed. See log for details. I tried to read the log but it was very difficult to understand. Any suggestions? Thanks.

  • Hi Dennis - This error comes from a program that is trying to use the .NET Framework.  If you don't know which program it is, then it might be something like a service that is running in the background or something like that.

    Can you please zip and upload your verification log files named %temp%\setupverifier*.txt to a file server (such as http://skydrive.live.com) and then reply here with a link I can use to download the logs and take a further look?

  • Hi Astebner-I went through the verification log files but found nothing that said %temp%\setupverifyier*.txt. Am I looking in the wrong place? The log is very long. Maybe you could walk me through this to make sure that we are on the same page. Are you asking me to upload all of the log to the file server? The entire log? I am not sure at this point if I understand completely what you need. Sorry.

  • Hi Dennis - You've got a typo in the log names - they should be located in your %temp% directory and be named setupverifier*.txt (you've got a "y" in your name).  The exact names of the log files are listed in the verification tool user's guide at blogs.msdn.com/.../8999004.aspx.  Can you please check again and see if you can find these log files?

  • Hi Astebner - I found the log files without any problem but I am not able to send them to you. If you could please supply me with directions about how to send them. I know that I need to send you a link and I tried for a couple of hours last night to do that but I was unable to figure it out.

  • Hi Dennis - What I would do is zip the log files into a single file, then create an account on http://skydrive.live.com, upload the zip file there, then share out the file for the public (instead of friends only), then send me a link to your Skydrive page.

    If you have trouble getting those steps to work, you can contact me via blogs.msdn.com/.../contact.aspx and after I reply, you can attach the files to an email instead.

  • Hi Astebner-Here is the link to my skydrive account. I hope it works. If it does not, then I will send it in an email to the blog account.

    cid-bb62435309d25b93.office.live.com/.../.Documents

  • Hi Dennis - I was able to download your logs, and they don't show any missing files or registry keys, but they do show a problem running a small .NET Framework test application.  That is likely failing with a similar error to the one you're seeing pop up on your computer periodically.  I normally suggest that users repair or uninstall + re-install the .NET Framework to solve this type of problem, but in your case, that hasn't helped.

    I do see one potential problem - the version number of mscoree.dll in your log file is still the old 2.0 version instead of the new 4.0 version.  Can you please use the tool described at blogs.msdn.com/.../6458047.aspx to gather all of your .NET Framework setup log files, then upload the file %temp%\vslogs.cab that this tool creates to your Skydrive page so I can take a look at that as well?

  • Hi Astebner - I was able to find the vslogs.cab file but have no idea how to get it over to you. Please advise. Thanks.

  • Hi Dennis - Can you please post %temp%\vslogs.cab to your Skydrive location just like the previous log file you uploaded?

Page 2 of 7 (102 items) 12345»
Leave a Comment
  • Please add 5 and 4 and type the answer here:
  • Post