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 been trying to post the files to my Skydrive location like I did before but I am unable to do it succesfully. Can you please advise me? Thanks.

  • Hi Dennis - I don't know why you aren't able to upload the file when you were able to upload other files previously.  Does Skydrive give you any error messages?  How big is your vslogs.cab file?  I think there is a 50 megabyte limit per file on Skydrive so you may need to try to use a different file sharing web site instead or unzip the cab file and remove some of the log files not related to the .NET Framework to make it smaller or something like that.

  • Hi Astebner - I am noticing that when the .Net Framework error message appears, everything freezes and I need to delete the message in order to proceed. The vslogs.cab file is very big and there is a limit per file so I am unable to share the entire file to Skydrive. Can you recommend another file sharing web site that will allow larger files? I do not know which log files to remove. I am new to this and sort of flying blind. Thanks.

  • Hi Dennis - Instead of trying to fix the vslogs.cab to make it smaller, I'm going to have you try to create a separate zip file with just the .NET Framework 4 setup log files.  Can you please try the following and see if it works for you:

    1.  Click on the Windows start menu, choose Run, type %temp% and click OK

    2.  Look for files that have names beginning with "Microsoft .NET Framework 4"

    3.  Hold down the Ctrl key on your keyboard and select each of the files with this type of name

    4.  Right-click and choose Send To, then Compressed (zipped) Folder

    5.  This should create a .zip file with each of the .NET Framework 4 setup log files - take that .zip file and upload it to Skydrive

    Hopefully this will work.

  • Thanks for the detailed directions. They helped a lot. You can go to my Skydrive account and find the zip file. I hope it works.

  • Hi Dennis - I downloaded your log files and I can see that the step in .NET Framework 4 setup that is supposed to update some OS components isn't working the way it should, and that is definitely going to cause the error message that you are seeing.  I'm not entirely sure why that step isn't working though, so I'm trying to find someone with more expertise about this part of .NET Framework setup to help me figure that part out.

    In the meantime, do you also see any log files in your %temp% directory that start with the name dd_install?  If so, can you please upload those to your Skydrive site and reply back here with a link I can use to download them?

  • Hi Astebner - I have looked through all the files and I do not see any that start with the name dd_install. There are some that start with dd_(and something else) but none with dd_install.

    Thank you for your efforts. I am encouraged that you did find what could cause the error message and look forward to hearing back again when you find help in figuring out how to resolve the issue. Thanks.

  • I know you are interested in MCE2005. It is worth noting that .Net Framework 4 breaks MCE 2005. The symptoms are that the guide downloads to 25% and then stops. If you try deleting the epg folder and starting again, it offers the selection of transmitters, which when selected, it then locks up. Uninstalling Framework 4 fixes the problem.

  • Hi Eric - I heard about a couple of issues during the .NET Framework 4 beta, but I haven't heard of any reports of problems with Media Center 2005 and the final release of the .NET Framework 4 until now.  If you have a chance, I'd suggest posting a bug on the Connect site at connect.microsoft.com/visualstudio so the .NET Framework team can investigate further in the future.

  • Hi Dennis - Which files do you have on your computer that begin with dd_?

  • Thanks Aaron. I've done that, but I think I'll just not install it for the moment. At some point in the near future, I'll upgrade to Windows 7, but my MCE2005 has been so good, I'm happy just chuntering along with it for the moment :-)

  • Hi Astebner - Here is the list of files that begin with dd_.

    dd_ATL80SP1

    dd_Bits

    dd_dotNetFx40

    dd_TMP1DCE.tmp_Compression_Log

    dd_VCREDISTUI1501

    dd_VCREDISTMSI1501

    dd_wcf_CA_SMCi_

    dd_SETUPUTILITY

    Thanks, Dennis

  • Hi Dennis - If possible, could you please zip and upload all of these files to your Skydrive site as well so I can take a quick look?

  • Hi Dennis - There are a couple of other things I'd like to ask for here as well:

    1.  Can you please go to c:\windows\logs\cbs and make a copy of the file cbs.log, then paste it to your desktop.  After that, right-click on the file and choose Send To, Compressed (zipped) file, and create a zip file for it and upload that to your Skydrive site.

    2.  Can you please make a zip file for c:\windows\windowsupdate.log and upload that as well?

    3.  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?

  • Hi Astebner - I am sorry I have not been back to you sooner. I have just uploaded the files you requested to my Skydrive site. These are the ones you asked for 6 Sep 2010 4:19 PM. I will now attempt to work on the list of the three items you requested 6 Sep 2010 5:04 PM. Thanks.

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