Silverlight Tools Installation Speed bumps?

There’s been a few questions that come up between all of the Silverlight 2 releases, especially with regards to installing and upgrading tools.  I’d like to address a few of the FAQs for the Silverlight 2 Tools for VS2008:

Q: I have a previous version of Silverlight Tools installed. What do I need to do to upgrade?

A: Simple answer: just run the new installer.  The Silverlight Tools chain installer has several helpers to aid in this process.  Among these are un-installers for previous versions of the Silverlight 2 SDK, Silverlight Tools for VS package, and the hot-fixes for VS that have been included in previous releases.  The runtime handles its own upgrade process when you run its installer (which is included in the Silverlight Tools installer).

Q: When I run the Silverlight Tools installer it failed. How can I tell what went wrong?

Silverlight Tools installation failure

A: The Silverlight Tools installer has an output file which summarizes all of the steps taken.  You can click the ‘log file’ link in the image above, or look under your %temp% directory (you can just put %temp% in the Start->Run dialog to get there) and there will be a file called Silverlight Tools RTW_<YYYYMMDD>_<timestamp>.html which you can open.  Make sure errors and messages are shown, and then scroll to the bottom.  Errors will be highlighted with a pinkish background.

Check boxes for Errors and Messages

Original exit code: Silverlight2.0_Developer.exe returned non-MSI error code: 0x5de - The event log file is full.

Also, when you’re running the installer, please please please check the box to submit anonymous installation feedback.  This information really is anonymous, but by bucketing those values we can better determine what is failing and how often it’s occurring.

Q: I see the same failure as in the image above. What does it mean?

The install issue in this image indicates that the Silverlight Developer runtime failing to update correctly.  If this happens, please uninstall the Silverlight runtime and try running the Silverlight Tools installer again.

Q: After the setup fails, the installer crashes!  What’s going on here?
chainer_watson

A: This dialog looks just like what you would see if an application crashes (especially on Vista; it will say that the program stopped responding), but it actually isn’t.  When the Silverlight Tools installer fails, it fires up a tool that reports failure data to Microsoft.  This provides more useful and detailed data than the installation feedback checkbox in the installer, which makes it a lot easier for us to track down exactly what caused the failure.  While submission is of course optional, it would be greatly appreciated if you’d submit this as well.

Q: I see the following error when installing Silverlight Tools: “Build 9.0.30729.XX of Visual Studio 2008 SP1 or Visual Web Developer 2008 SP1 must be installed...“

VS2008 SP1 or VWD 2008 SP1 build 9.0.30729.XX must be installed

 

A:  Silverlight Tools requires that you have Visual Studio 2008 SP1 or Visual Web Developer Express 2008 SP1 installed.  If you haven’t installed them yet, you can find the installer for VS2008 SP1 here or you can download VWD Express 2008 SP1 from here.

If you already have the SP1 versions installed and are still seeing this dialog, there are a couple situations which might explain your problem:

  • A pre-release version of the SP1 hot-fix is installed.  In this case, you should update to the latest version using the links above.
  • If you have multiple languages of VS or VWD installed and only one of them is patched with SP1.  In this case, you should install the appropriate patches for each installed language of VS or VWD.
  • One of the features Silverlight Tools depends on has not been patched.  Our check includes the debugger, WPF designer, and Web Application features.  If SP1 failed to update any of these components correctly, our pre-requisite test will fail

If you’re certain that SP1 is installed and you have the correct language, it is possible that your SP1 install is corrupt.  To fix it, uninstall Visual Studio completely and re-install.  You might consider using VWD Express for Silverlight development as well.

Q: Is there a way to work around the Silverlight Tools installer pre-requisite checking?

A: Yes, but please save it for an absolute last resort as it is not supported; there are many variables which can make something go wrong, or from bad to worse.  The installer prerequisites verify that you have the correct product installed (VS SP1 or VWD SP1 for the same language as your installer), verifies that they are indeed serviceable, verifies that previous versions of Blend have been removed, verifies that – if you have VS – the Web Development feature is installed, and more.  However, if you want to work around this, it is possible.  Here’s how:

  1. Uninstall any previously installed Silverlight Tools components (SDK, SL Tools package, or Blend)
  2. Save the Silverlight_Tools.exe to a known location
  3. Run Silverlight_Tools.exe with the /x:<path> flag to extract the contents, e.g. Silverlight_Tools.exe /x:.\SLTools
  4. Open the directory to which the installer contents were extracted
  5. Install the Silverlight Developer runtime (available from here)
  6. Install the hot-fix for your VS product (for Visual Studio use VS90SP1-KB956453; for Visual Web Developer use VS90SP1-KB956485).  These are language specific (and will have a language postfix on the filename) so if you have multiple languages installed you will need to do this for each.  Do not install the hot-fix for a language of VS that you do not have installed
  7. Install the Silverlight 2 SDK (silverlight_sdk.msi)
  8. Install the Silverlight Tools package for your VS product (for Visual Studio use VS_SilverlightTools_Setup.exe; for VWD use VWDX_SilverlightTools_Setup.exe)

There is still a chance with this method that the hot-fix in step 6 will fail to install correctly.  Windows Installer will detect if the hot-fix applies, and to which components it will effect changes.  If any of these components have been incorrectly installed or patched, the Silverlight Tools hot-fix may fail silently.  Note that the hot-fix installer will still claim success since it would have successfully patched the applicable components (which is a subset of what’s required for Silverlight Tools).

Q: None of this has been useful, or I’m getting a different error. What do I do next?

A: Leave a comment, and we’ll try to work it out somehow.  Unfortunately, there are some situations where uninstalling/reinstalling Visual Studio is the best way to fix the problem (for instance, if you have a corrupt install).