dniLite

dniLite is a stripped down version of dotNETInspector featuring additional command line parameters but lacking a graphical interface. It is intended for use as a scripting utility or for bundling as a part of other software where the need to detect a specific version/service pack of the .NET Framework is required.


dniLite allows all of the same command line parameters as dotNETInspector, as well as new options which allow users to output customizable messages to one or both of stdout and a Windows dialog.


Please be aware that this has not been updated in a very long time, and does not support recent versions of the .NET Framework. The most recent supported version is currently .NET 4.5.




dniLite is released under the GPL v3 licence.

The source code can be found at https://gitlab.com/kenherbert/dni-lite.

Latest release  1.1.0

Released Oct 15 2013

Downloaded 1422 times

Command Line Parameters

Short Switch Long Switch Argument Effect
-h --help None Displays help on the command line parameters
-fv --framework-version string: 1.0, 1.1, 2.0, 3.0, 3.5, 4.0, 4.0client, 4.0full or 4.5 .NET Framework version to check
-gt --greater-than Only return true for versions greater than -fv (optional)
-lt --less-than Only return true for versions less than -fv (optional)
-sp --service-pack number: any number Also check for the specified service pack version
(optional: use 0 to test for no service pack, ignored if -gt or -lt are set)
-et --execute-true string: executable path File to run if version & service pack is found (optional)
-ef --execute-false string: executable path File to run if version & service pack is not found (optional)
-smt --stdout-message-true string: Message output via stdout if version & service pack is found (optional: default=1)
-smf --stdout-message-false string: Message output via stdout if version & service pack is not found (optional: default=0)
-dmt --dialog-message-true string: Message output via dialog if version & service pack is found (optional: default=no dialog shown)
-dmf --dialog-message-false string: Message output via dialog if version & service pack is not found (optional: default=no dialog shown)

Please note: dniLite does not support the / switch for command line parameters. You must use the – switch.

The -smt, -smf, -dmt and -dmf options support displaying the framework version passed via -fv using #fv# and the service pack version passed via -sp using #sp# within the string values.

Passing both the -gt and -lt switches will force dniLite to return true if any version but the one passed in -fv is installed.