My dotnet framework install script - 1 attachment



Attached is a 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 5 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 5.01 sp2 - required by dotnet
MDAC 2.7 - My app needed it
Jet 4.0 sp3 - dao 3.6 isn't included in mdac 2.7...
.NET 1.0

An improvement might be to make a NotExclusiveNeeded function and not 
install program files during the sp6 and ie5 reboots.  They need to be 
installed independently of everything, and making icons/installing program 
files during those reboots might confuse the user.  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 reenable that).

In a newer version of the script, I've added some nt service install code 
with InstallUtil and net start and net stop.  I haven't tested it out yet 
but those who are looking for alternative ways to install .net services 
might want to consider that.

Thanks IS, ISX and ISXDL authors!

-Ted

dotnet.iss