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:

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

Releases