Here is an Innosetup script I wrote that installs the dotnet framework. It's pretty intuitive I think. I couldn't find any extensive ones when I was searching and working on it, so I thought I'd post it.
It detects if the following are installed, and then downloads from Microsoft (if they aren't in a root \dependencies folder already) and installs them for the user without prompting them. IE 6 prompts for a download location (this could be changed to a total quiet install, but there would be a long wait with no status updates).
- NT4 sp6a - required by dotnet, when on nt4
- IE 6 - required by dotnet
- MDAC 2.8 - My app needed it
- Jet 4.0 sp3 - dao 3.6 isn't included in mdac 2.7...
- .NET 1.1
The setup does skip the application directory dialog if an exclusive reboot is needed (I disabled the app dir wizard page FYI, you'll want to re-enable that).
Those who are looking for alternative ways to install .net services might want to consider using things like InstallUtil and net start and net stop. The base functions, as well as some misc functions that I use personally, are also included in the script.
Thanks IS, ISX and ISXDL authors!
Here's a link to my original post: http://news.jrsoftware.org/news/innosetup.isx/msg06108.html