Aaron Stebner's WebLog

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

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

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

  • Comments 64

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.

 

  • 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.
  • Hello
    I tried uninstall tools (#1, #3 and #4) but all of them in a message box with caption of
    "Microsoft SQL Server 2005 Express Edition CTP" showed this messages:
    The setup has encountered an unexpected error in datastore. The action is RestoreSetupParams. The error is Failes to read Property "InstallIds" {"MachineConfiguration". ""."MOHSEN-P4"} from cache
    Unable to write property into cache: IsClustered
    Unable to write property into cache: "IsClustered"
    XmlRW Error" Failure loading xmlrw.dll
    CheckAllProcedures() returned: 2
    and then in a message box with caption of "Microsoft SQL Server 2005 Tools Express Edition CTP" it shows:
    "Te setup has encounterd an unexpected error in datastore. The action is Write_CollitFalg. The error is: Unable to write property into cache: flagCommit
    Unable to write property into cache "flagCommit"
    xmlRW Error: Failure loading xmlrw.dll
    CheckAllProcedures() returned: 2"
    Can you give me an advise

    Thanks in advance
    Mohsen
  • 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?
  • 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,
  • 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!
  • hi,
    the install worked perfect !!!... but i am getting error message-boxes while i open VS 2005.

    The error states " Package Load Failure -  Package Visual Studio Common IDE Package has failed to load properly (GUID = {XXXXX})...


    please advice,

    ratish
  • 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
  • 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?
  • it worked !!!..

    so far so good here :-)

    thanks once again..
  • 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?
  • 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.
  • Thanks Aaron! I also encountered a strange situation - visual studio just-in-time debugger appeared in windows after vs was uninstaled. i had used the uninstall tool on the vs beta disk, manually uninstalled all components and since, the ttool. I dont think this will cause any difficulties but maybe other people have also encountered this?
  • Unable to successfully the VS 2005 uninstall tool. Following is error dialog box text:

    The setup has encountered an unexpected error in datastore.  The action is Write_CommitFlag.  The error is:Unable to write property into cache: flagCommit Unable to write property into cache: "flagCommit"
    XmlRW Error: Failure loading xmlrw.dll
    CheckAllProcedures()
    returned: 2

    Would appreciate help, thanks!
  • 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?
  • A customer contacted me this week after reading my blog post about uninstalling beta builds of VS 2005...
Page 3 of 5 (64 items) 12345
Leave a Comment
  • Please add 1 and 5 and type the answer here:
  • Post