I’m starting to scratch the massive surface that is CAB. CAB is better known as the Composite UI Application Block developed by the Patterns & Practices Group at Microsoft.
It’s hard to define exactly what CAB gives you in one sentence, but I’ll try. How about manageable windows forms architecture with an emphasis on patterns ? I’m an ASP.NET guy, so that’s where my expertise lies, however I have built a few moderately sized WinForms apps and they get unwieldy very quickly.
I plan on posting a bit about CAB as I dig into it, so stay tuned for that. For now I’ll just post my first experience with it: Getting the darn thing installed. In tune with many CTP and early release software, it doesn’t always go as smoothly as planned.
First thing to do is install the following things in the correct order:(I assume you already have .NET 2.0 and Visual Studio 2005 installed)
I found some sources on the internet that listed those in reverse, and I got an error at the Guidance Automation Toolkit installation that said “Operation invalid for the current state of the object.”
In my case, I got the error even after uninstalling them all, but I was able to fix the error by modifying the registry. Open regedit and navigate to HKEY LOCAL MACHINE\SOFTWARE\MICROSOFT\COMMAND PROCESSOR\. There should be a key in there called AutoRun. I renamed this to AutoRunOld and the installation worked.
(I have a feeling that this setting was modified by an XPize installation, since they modify your command prompt settings… but I haven’t confirmed this.)
Now that everything is installed and running, check out these resources to get your feet wet with CAB:
The next post will definitely contain more “meat.”
I'm Ben Scheirman. I am a .NET software developer with a strong interest in agility. I work as a Principal Consultant with Sogeti.
Read more here.
email me
Ads by The Lounge
Disclaimer The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.