Detect whether J# 2.0 Second Edition is installed RRS feed

  • Question

  • How can I programatically detect whether J# 2.0 Second Edition is installed on a machine?

    In my product installer, I was using the registry key HKLM\SOFTWARE\Microsoft\Visual JSharp Setup\Redist\v2.0.50727 to detect J# 2.0, but it appears that both J# 2.0 and J# 2.0 SE initialize this part of the registry in exactly the same way. Therefore I cannot use it to detect whether J# 2.0 SE is installed on a 32-bit system, because it might be that just J# 2.0 is installed which would not work with my Any CPU compiled J# assembly.

    Thursday, March 20, 2008 7:06 PM


  • Yes - this registry key is the same for both J# 2.0 and J# 2.0 SE. One of the ways in which you can programatically find if J# 2.0-SE is installed on the machine is to check the file version of vjslib.dll (present in \WINDOWS\Microsoft.Net\Framework\v2.0.50727\... directory). If J# 2.0-SE is installed the file version number would be 2.0.50727.933 or greater (the last number would be greater than equal to 933).



    Friday, March 28, 2008 11:02 AM