Archive: .Net 2.0 Detection Script error


.Net 2.0 Detection Script error
I am trying to use the .net Script for checking for version 2.0 that I found on this site. But when I compile I get an error and from searching awhile this line shouldn't error on me.

Invalid command: ${If}


Does anyone have any ideas?

This is the full line:

${If} $0 == "not found"

Any help would be appreciated :)


You need the LogicLib. Use the following on the top of your script:

!include LogicLib.nsh