CA_CheckJava 1.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package CA_CheckJava --version 1.0.0
NuGet\Install-Package CA_CheckJava -Version 1.0.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="CA_CheckJava" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add CA_CheckJava --version 1.0.0
#r "nuget: CA_CheckJava, 1.0.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install CA_CheckJava as a Cake Addin
#addin nuget:?package=CA_CheckJava&version=1.0.0

// Install CA_CheckJava as a Cake Tool
#tool nuget:?package=CA_CheckJava&version=1.0.0

Custom Action - Check Java

This WiX Custom Action enables it to check if Java is installed and find out its Platform (x86 or x64). This is achieved by checking the registry (and not the environment variable JAVA_HOME). <br />

The Platform will be stored in the Property "JRE_INSTALLED" ("32bit" or "64bit") and if no installation is found it's set to "0".

Usage

Include the built CA_CheckJava.CA.dll from this project in your own project or use the published nuget (defined in CA_CheckJava/CA_CheckJava.nuspec).

Reference the .dll in your .wxs file like so:

<Binary Id="CA_CheckJava" SourceFile="pathToNugetPackages/CA_DirectoryChooser.X.X.X/lib/net45/CA_CheckJava.CA.dll" />

  • "pathToNugetPackages" could be $(var.SolutionDir)/packages

And now you can create your CustomAction:

<CustomAction Id="CheckJREInstalled" BinaryKey="CA_CheckJava" DllEntry="CheckJREInstalled" Execute="immediate" />

After this Action the Property JRE_INSTALLED contains either "64bit" or "32bit" or "0" if no java installation is found. <br />

If both platforms are installed "64bit" is returned.

Product Compatible and additional computed target framework versions.
.NET Framework net45 is compatible.  net451 was computed.  net452 was computed.  net46 was computed.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.1.0-dev0003 514 3/5/2019
1.0.3 703 3/18/2019
1.0.2 656 3/11/2019
1.0.1 638 3/5/2019
1.0.0 592 3/4/2019
0.10.0-dev0004 433 3/4/2019

Initial Release