DotNetVer.nsh

LogicLib extensions for checking Microsoft .NET framework versions and service packs.

"HasDotNet<version>" checks if the specific version of .NET framework is installed.

<version> can be replaced with the following values:
1.0
1.1
2.0
3.0
3.5






"AtLeastDotNetServicePack" checks if the .NET framework has a service pack version at least as specified.

"IsDotNetServicePack" checks if the .NET framework has a service pack version exactly as specified.

"AtMostDotNetServicePack" checks if the .NET framework has a service pack version at most as specified.

Usage examples:

${If} ${HasDotNet2.0} ${If} ${DOTNETVER_2_0} AtLeastDotNetServicePack 1 DetailPrint "Microsoft .NET Framework 2.0 SP1 installed. No update necessary." ${Else} DetailPrint "Microsoft .NET Framework 2.0 SP1 not installed. Please install before trying install again" ${EndIf} ${EndIf}

Downloads