I need to run an include script to check for .Net 2 Framework and SQL Express. These scripts need to check for the requirement and install if necessary. Anyone have anything like this?

I see the MSDE and it seems "kinda" straight foward, but I am not sure how to check for .NET and SQL Express. I think the MSDE and Express scripts will be close to the same, but I need help!