I've spent a good part of the day searching, writing and finally scrapping a script that I can use with my Inno Setup install script that will download and install the appropriate .NET 2.0 Framework if needed.
There are definitely a number of examples out there, but they:
Want to install Internet Explorer if needed which I wouldn't dare to in an automated way
Only handle x86 .NET distributions, no x64 and IA64 support
Don't install the appropriate language pack when needed -- a tough problem (when I saw there were different language packs for different x86/x64/language combos I threw in the towel)
Don't handle getting the .NET 2.0 SP1 (maybe Windows Update will handle that once 2.0 is installed?)
This seems like such a common problem that someone must have solved it. All I found though were 20 different posts all pointing to the same two or three code snippets.
Insight welcomed :)