Share via


Uninstalling previous betas to prepare for VS 2005 and .NET Framework 2.0 RTM

Now that the .NET Framework 2.0 and VS 2005 are officially released, those of you who have been running beta and CTP builds will need to prepare your machines to install the final release. As I'm sure many of you are aware of if you've had a beta installed in the past, beta uninstall and migration to newer builds has been a very painful subject dating all the way back to VS 2005 and .NET Framework 2.0 beta 1. Fortunately there is a lot more awareness that uninstalling the various pieces of VS 2005 is not trivial, and there are some automated uninstall tools and much better documentation.

For those of you who will need to uninstall a previous beta in order to install the final release of VS 2005 and/or the .NET Framework 2.0, you should make sure to review the official uninstall instructions before starting to uninstall anything. In case you read nothing else, please make sure that you leave the .NET Framework 2.0 beta uninstall until the very end. Most of the other pieces of VS 2005 will not uninstall fully if you remove the .NET Framework 2.0 beta first, and that can cause problems in some scenarios after installing the final release.

In order to make the uninstall process easier, there are a couple of automated uninstall tools available for various scenarios:

  1. Tool to uninstall beta and CTP builds of VS 2005 and .NET Framework 2.0 - this tool should be run on a machine that still has the beta or CTP build installed to uninstall all pieces of the beta or CTP to prepare a machine to install the final release
  2. Troubleshooting tool - this tool should be run to find and fix problems while running the final release of VS 2005 and .NET Framework 2.0 if you previously uninstalled in the incorrect order; this tool also has the automatic uninstall functionality built-in, but you should use the first tool if you only need to uninstall
  3. Tool to uninstall beta and CTP builds of WinFX - this is similar to the first tool, but is specifically designed to remove WinFX beta/CTP builds in addition to VS 2005 and .NET Framework 2.0 beta/CTP builds
  4. "The Hammer" - this tool is designed for scenarios where you have installed the final release of VS 2005 and/or the .NET Framework 2.0 and it does not work and the troubleshooting tool does not fix it; this tool will fully uninstall the final release of VS 2005 (in addition to any beta versions you might have installed) so make sure you only run it if you want to uninstall the final build; this tool is intended to be used to remove VS 2005 and get a machine back into a known state to try to install it again to clean up any problems that other troubleshooting steps are not able to resolve

The uninstall tools (#1, #3 and #4 above) are designed to run Windows Installer APIs and command lines to discover whether or not a known, fixed set of products are installed and then remove them. As we discover additional issues that these tools do not cover, I will be updating the troubleshooting tool. The main goal of the troubleshooting tool is to fix up a machine that already has the final release installed without needing to have the user resort to uninstalling everything and starting from scratch. It tries to perform more "surgical" fixes for specific issues related to incomplete/incorrect beta uninstalls.

As always, let me know if you run into any issues or have any feedback on any of the above tools and I'll try my best to help.

Comments

  • Anonymous
    October 28, 2005
    So how about the RC release of VS 2005 Team System? Any tool to uninstall that? Or will the #1 tool above do the job?

  • Anonymous
    October 28, 2005
    Hi Jon - the tool in #1 above will remove the RC build of Visual Studio Team System (the build that was given out at PDC in Los Angeles last month). It will not remove any of the server-side pieces of VSTS however.

  • Anonymous
    October 28, 2005
    Aaron, the links for the first, third, and fourth tools are all redirecting to the same URL (http://download.microsoft.com/download/0/a/a/0aacd9c1-a0c5-43ab-a428-0ee440d4472c/vs_uninst.exe)...

  • Anonymous
    October 28, 2005
    I had Package load errors with RTM, i have used the 4th tool and did a clean install of VS2005 later. But then also i ran into same error. I have run the tool2 to fix the problems and everything works fine now

  • Anonymous
    October 28, 2005
    Hi Kevin - thank you for the heads up about these links pointing to the same location. The 3rd and 4th links will be updated in the next week or so to point to the versions of the tool that I describe above, but for now they are all pointing to the VS 2005 beta/CTP removal tool.

  • Anonymous
    November 02, 2005
    Is it possible to invoke the hammer in an unattended fashion?

  • Anonymous
    November 02, 2005
    Looks like the cleanup tools don't detect the presence of the VS2005 Extensions for Windows Workflow (for beta 2). I had install errors with VS2005RTM as I hadn't uninstalled the workflow extensions first. More details here: http://forums.microsoft.com/msdn/ShowPost.aspx?PostID=123826

  • Anonymous
    November 14, 2005
    This is a time saver! Thanks!

  • Anonymous
    November 15, 2005
    After uninstalling the SQL 2005 CTP, and running the uninstall tool, .NET compact framework 1.0 sp3 and .NET compact framework 2.0 were still installed. I ran the uninstall of both of them from add/remove programs. I don't see the compact framework mentioned in the list of manual uninstall steps.

  • Anonymous
    December 07, 2005
    Aaron

    I am having trouble installing SQLServer 2005.
    All of the tools / installers say I still have
    a remnant of a previous beta / CTP. I have tried all of the tools referenced in the WebLog but they all give 2 error messages while trying to uninstall the SQL Server 2005
    Express Edition CTP. Both error messages say an unexpected error is encountered in the datastore and unable to write to the cache.
    Any ideas?

    Thanks,

    Terry

  • Anonymous
    December 07, 2005
    Hi Ron - The final build of the .NET Compact Framework 1.0 and 2.0 were included in the beta versions of VS 2005, so the removal tool does not need to uninstall those because those are not betas even though they are installed by the setup of a beta product.

    Hi Terry - It sounds like you are running into the issue that I described in a separate blog post at http://blogs.msdn.com/astebner/archive/2005/09/13/465401.aspx. Can you please try the steps listed there and see if they help you resolve this?

  • Anonymous
    December 08, 2005
    The comment has been removed

  • Anonymous
    December 09, 2005
    Hi Terry - Debugging SQL setup failures can be a bit tricky. Could you please zip and send me the log files located in %Program Files%Microsoft SQL Server90Setup BootstrapLOGFiles on your system so I can try to take a look and see if I can figure anything out here? You can send them to aaronste@microsoft.com.

  • Anonymous
    December 10, 2005
    I'm having mega-problems removing the VS 2005 beta. Part of the problem might be that I did not use the proper order (didn't know about it at the time). When I run the various uninstall tools, I'm told that C:DOCUME~1UserNameLOCALS~1TempIXP000.TMPnetfx.msi is not present, and the uninstall fails. This might all have sprung from an initial installation via "Run As..." administrator since I usually try to run without admin priveleges. I've tried the uninstall tool by: (A) Run As, (B) while logged in as admin, and (C) by giving myself admin priveleges and logging in as me. Each time I get the same error.
    I need a bigger hammer. Any suggestions? I'd rather not have to reinstall windows and start over.

  • Anonymous
    December 10, 2005
    Hi Brad - Can you please try the steps listed at http://blogs.msdn.com/astebner/archive/2005/10/30/487096.aspx to locate and manually remove the .NET Framework 2.0 in order to get around this issue?

  • Anonymous
    December 14, 2005
    hello aaron,

    i hoped that these tools would help out. but i really killed sql server beta 2... i did the uninstall in the wrong order. then it disappeared on the software list in the control panel. so i removed the dir manually and some registry keys... but now no tool can re-install a sql server.... and no tool can remove it... :S

  • Anonymous
    December 15, 2005
    Hi JP - there are a couple of blog posts I've written that might help you remove the beta version of SQL - http://blogs.msdn.com/astebner/archive/2005/10/30/487096.aspx and http://blogs.msdn.com/astebner/archive/2005/12/08/501885.aspx.

    Can you try those steps and then see if install will work for you? If it still fails, can you zip up the log files located at %ProgramFiles%Microsoft SQL Server90Setup BootStrapLOGFiles and send them to me at aaronste@microsoft.com so I can try to take a look?

  • Anonymous
    January 01, 2006
    By the time I reached this blog I was already quite frustrated. So I went straight for the Hammer. Unfortunately that didnt work for me. Then I tried the unistall tool mentioned in step 1, and when that also did not fix the problem, the troubleshooter mentioned in step 2. That finally solved my problem. I would have saved some time if I had followed the suggested sequence. Thanks for the help!

  • Anonymous
    January 02, 2006
    I fixed tthis problem for another computer. Ultimately, the troubleshooting tool is what worked for me both times.

    BTW, I ran the uninstall from step 1, the troubleshooter from step 2, and finally the hammer BEFORE the vs2k5 install. I still had the package load failure problem. However, running the troubleshooter after the install fixed the problem.

  • Anonymous
    January 15, 2006
    Hello,

    I've downloaded the uninstall tool for downloading the betas; However, when I run the tool nothing happens. I am presented with a blank window and the application hangs for ever.

    I've also tried uninstalling the betas manually by following the manual uninstall instructions on MS web site, but that doesn't seem to work either. My system just hangs. Is there any other way for me to uninstall the betas from my computer? Nothing seems to be working.

    Thank you,

    Will

  • Anonymous
    January 16, 2006
    THANKS AARON! Trouble shooting tool fixed my problem. I had bad assemblies from beta releases and they were messing with launch VS 2005 standard edition.

    I spent ALL weekend removing in order and reloading VS 2005 and was totally frustated! Same result... package load failures with the explorer and designer in VB. I ran the ttool (trouble shooting tool) and in about 20 seconds my problems were fixed. Words cannot express how pleased I am with the tool. Great job!

  • Anonymous
    February 08, 2006
    Hi,

    the tools are runnig but find nothing.
    All things are ok.
    I have nothing to removed (I see not old versions).
    But by start - programms I see SQL SERVER 2005 CTP and VS 2005 Beta2.

    I can the new VS 2005 install but SQL Server not (both express or developer)
    Please help
    E-Mail --> janos.horanyi@saz.at

  • Anonymous
    February 09, 2006
    Hi Janos - If a program is in the Start menu, that doesn't necessarily mean it is still installed on the computer.  It is possible that the Start menu shortcuts were left behind after a beta uninstall.  If you don't have any products listed to uninstall when you run the cleanup tool you are probably OK.

    For the SQL issue, can you please zip and send me the log files located at %ProgramFiles%Microsoft SQL Server90Setup BootstrapLogFiles so I can try to take a look?

  • Anonymous
    February 24, 2006
    Like Scott Guthrie (our GM) I spend a bit of time every day reading blogs, and surfing forums. ...

  • Anonymous
    March 02, 2006
    I was a participant in the Avalon TAP program last year and therefore installed VS2005 beta 2/WinFx, etc. The uninstall methods mentioned above require access to the beta 2 dvd, of which my copy is not available. Is there somewhere I can download beta 2 (so that I can then completely uninstall it)? I'm desperately trying to get my RTM version installed, which kicks out an error that beta 2 is still installed. (I have already followed all the manual instructions). Thanks!

  • Anonymous
    March 02, 2006
    OK... downloading a copy of beta 2; hoping to re-install, uninstall, then install the RTM.

  • Anonymous
    March 02, 2006
    Hi Bob - The tools listed on this blog post should not require access to the source media for beta 2.  It is possible that there are bugs in the beta uninstall that might cause you to be prompted for source to be able to uninstall.  If that is the case and you don't have or can't find the source anymore, you can use the steps listed at http://blogs.msdn.com/astebner/archive/2005/10/30/487096.aspx to locate and manually remove the beta version that you still have installed.  Hope this helps...

  • Anonymous
    March 03, 2006
    Thanks Aaron! smartmsizap.exe did the trick... I can now launch VS 2005 (although I do get a couple of package load errors). I'll track those down next.

    Thanks again for your help,
    Bob

  • Anonymous
    March 03, 2006
    Hi Bob - I'm glad to hear that smartmsizap helped you.  You can take a look at http://blogs.msdn.com/astebner/archive/2005/12/16/504906.aspx for some suggestions regarding the package load failures that you're seeing.  Hope this helps as well!

  • Anonymous
    March 04, 2006
    THANK YOU!   This has sorted out a whole pile of pain I was stuck in, after a botched deinstall of the beta 2005.    VS2005 final would install, but had simply dozens of package errors.  vs_uninst has sorted it out completely.

  • Anonymous
    April 04, 2006
    Troubleshooting tool (ttool.exe) does what "it says on the tin"; it fixed my problem - "method not found: 'Boolean EnvDTE80.CodelClass2.get_IsShared'"

    Thank you.

  • Anonymous
    April 16, 2006
    The comment has been removed

  • Anonymous
    April 17, 2006
    Hi Mohsen - It sounds like you are running into the issue that I described at http://blogs.msdn.com/astebner/archive/2005/09/13/465401.aspx.  Can you please try the workaround listed there and see if it helps in your scenario?

  • Anonymous
    April 18, 2006
    hi,
    while installing the VS 2005 release setup it does not install SQL 2005, since i have previous CTP versions of SQL 2005 and iam unable to remove it...
    do you any tool to remove previous versions of SQL 2005 or any pointers will be helpful.
    regs,

  • Anonymous
    April 18, 2006
    Hi Ratish - You should be able to use the steps listed at http://blogs.msdn.com/astebner/archive/2005/09/13/465401.aspx to attempt to remove previous versions of SQL 2005.  Hope this helps!

  • Anonymous
    April 18, 2006
    The comment has been removed

  • Anonymous
    April 19, 2006
    All well ends well :-) !!! .....

    SQL 2005 installed ... VS was giving the package problem so run the cleanup tool and looks like i am not getting the error again...

    thanks for all the support

    regs,
    ratish...

    PS: These links were of gr8 help

    http://blogs.msdn.com/astebner/archive/2005/04/19/409905.aspx

    http://blogs.msdn.com/astebner/archive/2005/04/19/409555.aspx

  • Anonymous
    April 19, 2006
    Hi Ratish - There are some steps at http://blogs.msdn.com/astebner/archive/2005/12/16/504906.aspx that should help resolve the package load failure issues that you're seeing.  Can you try those out and see if they help in your scenario?

  • Anonymous
    April 27, 2006
    it worked !!!..

    so far so good here :-)

    thanks once again..

  • Anonymous
    May 13, 2006
    is it normal for visual studio beta to remain in the registry after it has been completely uninstalled? I also have found lots of vs and sql files in my c drive via explorer. do i need to remove these before installing vs express?

  • Anonymous
    May 13, 2006
    Hi SWeb - I have seen cases where some items are left behind in the registry or the file system.  As long as you followed the uninstall instructions, you should be fine installing the final release of the VS 2005 Express Editions.  Please let me know if you run into any issues.

  • Anonymous
    May 14, 2006
    The comment has been removed

  • Anonymous
    May 16, 2006
    The comment has been removed

  • Anonymous
    May 16, 2006
    Hi David - This sounds like the same error that I described at http://blogs.msdn.com/astebner/archive/2005/09/13/465401.aspx.  Can you please try the workaround listed there and see if it solves this issue on your system as well?

  • Anonymous
    May 17, 2006
    A customer contacted me this week after reading my blog post about uninstalling beta builds of VS 2005...

  • Anonymous
    May 23, 2006
    Hi: Thanks for valuable information.


    Regards,
    Deepak Kumar

    www.forum.sqlknowledge.com
    www.sqlknowledge.com

  • Anonymous
    May 24, 2006
    The ininstall program from Microsoft tries to get rid of .net 2Beta but stops with an error message 1316A cannot find CWINDOWSinstaller.netfx.msi, then just runs back.

    I am STILL stuck with the Beta and cannot even install.net 1 which is needed now for several programmes.

    IS it to do with the fact that I have been landed with a PC with a "bad" version of |XP Pro and the Microsoft policy about upgrades.

    I cannot even try the Beta of playe 11

  • Anonymous
    May 25, 2006
    Hi Brian - Can you please use the steps listed at http://blogs.msdn.com/astebner/archive/2005/10/30/487096.aspx to locate and manually remove the .NET Framework 2.0 beta version?  Once you remove the .NET 2.0 beta, hopefully the installation of .NET Framework 1.0/1.1 will work correctly for you.

  • Anonymous
    May 27, 2006
    Hi.
    I'm trying to get rid of Visual Studio 2005 Beta2 with all other stuff that comes along.

    I get an error, something like this (Translated from Danish) :
    there can not be established connection to windows installer. This problem can occour if you run windows in Safe Mode or if Windows Installer is inpropper installed. Contact support personell to get help.

    I have tried normal manuell uninstall
    I have tried to install the latest Windows Installer (Success, no warnings)
    I have tried the steps at the top of this page.
    I have tried every single tool spoken about on this page and following links.

    Nada helps

    http://www.bojohansen.dk/neverdelete/vs2005beta2.htm

  • Anonymous
    May 28, 2006
    Hi BoSJo - Can you please try to use the following steps to repair the Windows Installer service on your system:

    1.  Click on the Start menu, choose Run and type cmd

    2.  Type msiexec.exe /unregister

    3.  Type msiexec.exe /regserver

    4.  Reboot

    5.  Try to uninstall Visual Studio 2005 beta 2 one more time

    Hopefully these steps will resolve this issue...

  • Anonymous
    May 29, 2006
    That did the trick :-)

    Ever so thankfull, everything works 100% now :-)

  • Anonymous
    June 23, 2006
    PingBack from http://blogs.msdn.com/astebner/articles/492809.aspx

  • Anonymous
    September 05, 2006
    I am having a major problem with .net framework 2.0.  It is necessary to run notebook hardware controls on my laptop.  I accidentally uninstalled it and then did a system restore to undue my mistake.  Since then, notebook hardware controls will not run.  I have been trying to uninstall .net framework 2.0 or repair it but each time I get this message:
    "Patch package could not be opened. Verify that teh patch package exists and that you can access it . . ."  
    I tried using every tool you have listed above and only the 4th tool detected the framework on my laptop but when it tried to uninstall it I got the same message.  Please help.

  • Anonymous
    September 06, 2006
    Hi Nlc9 - Can you please try to use the .NET Framework removal tool described at http://blogs.msdn.com/astebner/archive/2006/05/30/611355.aspx to uninstall the .NET Framework 2.0 and then try to install it again and see if that helps solve this problem?

  • Anonymous
    February 16, 2007
    Where to get Visual Studio 2005 and the .NET Framework 2.0 Where to download the .NET Framework 2.0 redistributable

  • Anonymous
    August 12, 2007
    Hi Aaron -- I have struggled for two days to get VB Express 2005 final release running, but no luck.  Trouble started after I installed VB 2008 beta, VWD express and SQL Server express. Before that it ran great for months. I am currently in the mode where I get six package load failures on startup.  This is after I have run the "Hammer" and re-installed from CD (burned from downloaded iso image).   The only thing I have not tried is to run the troubleshooting tool (Ttool.zip) because the link appears to be broken.  Is there another place to get it?  Is there anything else I should be trying?

  • Anonymous
    August 12, 2007
    Hi ZookManPat - If you had any previous beta versions of Visual Studio 2005 installed on your system, I'd suggest trying the steps listed at http://blogs.msdn.com/astebner/archive/2005/12/16/504906.aspx.  My file server is currently down for maintenance, but it should be back up soon so you can check back in a day or so and hopefully it will be available for download again.  I'm sorry for the hassle that this issue is causing for you. If this problem started after installing the VS 2008 beta, I'd also suggest reporting a bug on the bug reporting site at http://connect.microsoft.com/visualstudio/.

  • Anonymous
    August 12, 2007
    Thanks for the timely reply, Aaron.  I went through the steps at 504906, except for #2.  Any chance you could email me the troubleshooting tool so I could try that?  My email is patwiegand at suddenlink dot net.

  • Anonymous
    January 23, 2008
    I post on this with every release, but I'll post something about the latest blog entry on it. The

  • Anonymous
    January 25, 2008
    PingBack from http://www.pc-helpforum.be/f167/just-time-debugging-error-7767/#post33681

  • Anonymous
    June 06, 2008
    Now that the .NET Framework 2.0 and VS 2005 are officially released, those of you who have been running beta and CTP builds will need to prepare your machines to install the final release. As I'm sure many of you are aware of if you've had a beta installe

  • Anonymous
    January 18, 2009
    PingBack from http://www.hilpers.nl/453172-fout-code-2908-a

  • Anonymous
    January 20, 2009
    PingBack from http://www.hilpers.com/1031290-deinstallation-von-visualbasic-2005-express

  • Anonymous
    February 06, 2009
    Thanks for your article. your tool helped me sort out this nightmare uninstall problem. I suffered this problem from 2003 to 2005 and have recently helped someone who had this problem going from 2005 to 2008. Why don't MS fix this problem? They are obviously aware that it exists. http://theputernerd.com/133/ms-visual-studio-net-2005-uninstall-problems

  • Anonymous
    March 17, 2017
    Hello,I stumbled upon your blog and I'm not entirely sure which tool to use to uninstall VS2005.I uninstalled my VS2010 first, with out any problems. I then uninstalled VS2005, which did uninstall. However, after the successful uninstall (VS2005), a window popped up with a long list of other programs, like several SQL programs which must be uninstalled in a specific order. and then at the end, uninstall .net 2.0. I do not have this list. So, how should I proceed to uninstall all the other programs associated with the original install of VS 2005?Thanks for the help

    • Anonymous
      March 20, 2017
      The comment has been removed
      • Anonymous
        March 21, 2017
        I actually found out I still have reminants of 2010, should I get rid of 2010 or 2005 first?Thanks
  • Anonymous
    May 24, 2017
    Thank you so much for the link to the uninstall tool. It did the job for me. Microsoft has not done a good job of making that easy to find.