Check for .NET 2.0 but don't install it

For all your non-technical questions.
Post Reply
cpdaniel
Posts: 10
Joined: Wed Jun 28, 2006 5:17 pm

Check for .NET 2.0 but don't install it

Post 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?
-cd
CandiceJones
Posts: 904
Joined: Thu Dec 22, 2005 7:03 pm
Contact:

Post 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.
Candice Jones
Install[b]Aware[/b]
[i]Home of The Next Generation MSI Installer[/i]
Get your free copy today - http://www.installaware.com/
Post Reply