Tuesday, September 16, 2008

Update the report viewer redistributable that comes with visual studio 2005

Microsoft released a Report Viewer Redistributable 2005 SP1 but forgot to update the redistributables that come along with visual studio 2005. So, whenever you create a setup file you get the old redistributable. Thanks to Albert Yen, there is a way to update the redistributable that comes with visual studio 2005. In order to do so you have to follow the following steps:

  1. Download Microsoft Report Viewer Redistributable 2005 SP1 (Full Installation)
  2. Override C:\program files\Microsoft Visual Studio 8\sdk\v2.0\bootstrapper\packages\reportviewer\reportviewer.exe with the new one you just downloaded.
  3. Edit the C:\program files\Microsoft Visual Studio 8\sdk\v2.0\bootstrapper\packages\reportviewer\product.xml file. Find the element and change it to:

    <PackageFile Name="ReportViewer.exe" PublicKey="3082010A0282010100CD819638AE5CA2F2C1DFDED0AB958DD63C9D1F8BC35D862E5DF0B172F5ABAC886AB5DAB1227B0BC8C8A54B915E2213E9F9F5239DB5F46E76AEEFEEA43CC7C4C0595C3FABB3733326A662816179A162F46E8895D06EDDC79FD2A451117661BA708A65A1961689A75D81D04466E5DB569E40CAFCDC76242E443000E5D67D7B9511D5581DA3E84F0BC988DCA2D653996CCA63CA996A9A925E4C4D11E82FD35B5B5E5F52A3732DA5BB84450D8C191576CB08DA9AA67015E84DEC69FD5DB26B8FED295137388BC6464915945098B0F468A4D7DE097167749E778C1D856B97EAE75F45CCE0E6710DD16300937B31988E0BB413BDB3D0EEF1DF21EEA96061EE37433DC30203010001"/>

    This replaces the PublicKey with the key of the new ReportViewer.exe and also removes the HomeSite link which stops it from trying to download the old version from Microsoft. If you are afraid to do the editing, you may download the already fixed file from here (ReportViewerSP1Product.zip) and replace the old file.
  4. Rebuild your installation with Visual Studio and you are done.
This post is more like a memo for me because I recently reformatted and had to do the same process from scratch.

No comments: