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.

Download


1.1.0 (released 15/10/2013)
Standalone executableSize: 9.88 MBMD5: c3c9edb95b780feec0c39e68c73d4647

Source Code

Source code is available from gitlab.com/firedancersoftware/dni-lite.

License

dniLite is released under the GPL v3.
If you use the source of dniLite in your own software I would love to hear about it.
If you use the dniLite binary in your project please consider making a donation, even if it is just a couple of dollars, to let me know that my work has been useful to you.

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 lessthan -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.

New in this release

  • Added -gt and -lt switches to check for versions greater than or less than version passed in -fv
  • Added 4.0 as an accepted parameter of -fv, which will return true if either 4.0client or 4.0full is installed
  • Fixed issue with command line output not displaying in console

The future of dniLite

With this release I am fairly happy with the current state of dniLite (unless any bugs pop up). I have contemplated how best to implement -gt and -lt with service pack checking, but unless I receive feedback saying that this would actually be useful I may not worry about it. So if you are interested in seeing the -gt and -lt switches working with service packs, please let me know.

One Reply to “dniLite”