Page 1 of 1

Check for .NET 2.0 but don't install it

Posted: Wed Jun 28, 2006 5:22 pm
by cpdaniel
I need to make an installer that will check for the presence of .NET 2.0 but has no option to install it - if it's missing, the install should simply fail.

How would I go about getting that effect with IA6?

Posted: Wed Jun 28, 2006 6:09 pm
by CandiceJones
Hi!

View the script checknet20.
After the line

Code: Select all

if Variable DOTNET20 Equals FALSE


Add something like

Code: Select all

MessageBox: Error, Cannot install without .NET 2.0.
Terminate Installation


Note that with web media blocks (also called Partial Web Deployment), you can ship an installer without .NET 2.0 embedded, and with all your application files still in it.

This way, your main setup can work without requiring an Internet connection.

And, it doesn't automatically fail if .NET 2.0 is missing - it will just try to download it, and fail if it cannot.