tag:blogger.com,1999:blog-9537945.post-41229899726525702782007-12-20T21:32:00.000-06:002007-12-20T22:21:49.666-06:00.NET Framework SizeThis is a topic that I've been wanting to write about for awhile but I just haven't had the time: Holy Crap the .NET Framework 3.5 is HUGE!<br /><br />How did we get here? Let's see....<br /><br />.NET Framework 1.0 Redist: 19.7MB<br />.NET Framework 1.1 Redist: 23.1MB<br />.NET Framework 2.0 Redist: 22.4MB<br />.NET Framework 3.0 Redist: 50.3MB ( x86 )<br />.NET Framework 3.0 Redist: 90.1MB ( x64 )<br />.NET Framework 3.5 Redist: 197.0MB<br /><br />Wow! 197MB! The funny thing is there is a Doctor Dobb's <a href="http://www.ddj.com/windows/184416881">article from 2003</a> that was questioning the size of .NET 2.0 when it was a mere 1/5th of the size that it is now. Just what in the world would they think now? <br /><br />It should be understood that the 3.5 redist contains a lot of junk under the hood. It's really invasive... it contains windows patch, patches for previous versions of the framework, different versions for different platform types and so on. There have also been a long list of installer defects already announced that are going to pose problems when it comes time for ISV's to try to integrate the framework into their bootstrappers for their own products.<br /><br />Related to this topic are a couple observations that I wanted to share. The first is a long list of blogs that I've seen recently detailing installer defects in various .NET / Visual Studio installs. The quality and user experience in these installs really seem to be going downhill. It's not like taking hours to install VS 2005 SP1 wasn't bad enough. Now you are lucky if the installs work in the first place. As an aside, I really can't help wonder if all of the Virtual PC CTP's during the beta cycle didn't contribute to an environment where the installs just wasn't getting close scrutinizing. <br /><br />The second observation is how many people are willing to just blindly believe in `Microsoft Best Practices`. For example, I recently read the <a href="http://msmvps.com/blogs/installsite/archive/2007/12/20/advanced-installer-6-1-brings-unified-32-64-bit-installers-and-windows-firewall-support.aspx">following comment over at InstallSite</a>:<br /><br /><blockquote><em>I wonder if there's a specific reason that some of the installer products feel the need to wantonly violate Microsoft's best practices?</em></blockquote><br /><br />When asked to elaborate, the poster mentioned the use of non-standard cab compression techniques such as LZMA. This technique is used by other vendors such as InstallAware. For example, InstallAware is able to reduce the .NET Framework 3.5 Redist by 33% to 132MB. This is still huge, but atleast InstallAware is trying to do something to help out.<br /><br />This advance in installation technology did not go unpunished though. WiX creator Rob Mensching flamed InstallAware over this issue with the following statement:<br /><br /><blockquote>So why do I have a negative impression of InstallAware? Two reasons. First, they repackaged redistributable packages (such as the .NET Framework) which violates the EULAs of the products. Messing with other people's stuff then redistributing your modifications without explicit permission bothers me at a philosophical level. </blockquote><br /><br />The irony is InstallAware was specifically asked by Microsoft if their technology could be used to reduce the size of the framework SDK. <br /><br />So it seems to me that LZMA compression really is a best practice. It's just that our overlords at Microsoft just haven't been smart enough to admit and/or support it yet.<br /><br />Getting back to the framework size issue... I'm afraid I don't see magic bullet for mitigating it. Considering setup developers don't typically get to tell the architects how to code, if 3.5 comes down the pipe we are pretty much just going to have to bite the bullet. As an aside, ClickOnce apps on .NET 3.5 are officially a joke, right?<br /><br />Sadly I now find myself waiting for MSI 4.5 and it's transacted prereqs patterns to see just how much more complicated ( and worse ) Windows Installer packages for .NET / Visual Studio can become.Christopher Painterhttp://www.blogger.com/profile/12167478740431444267noreply@blogger.com