| Type: | Download 3.0 version (standalone) | Download 4.0 version (requires PassiveInstall) |
| Free | jreBlock V 3.0.0.0 | jreBlock V 4.0.0.0 |
A PowerShell script for use in sequencing Java JRE and hiding natively installed versions.
End User License Agreement (EULA)
The tool is free for personal or commercial use.
Support
There is no support for this tool. But feel free to ask, as we usually try to be helpful.
Installation
You download the zip file and unpack the script file and documentation to a folder.
Use
The script was designed for use in repackaging Java into Microsoft App-V packages, which have a feature for virtual registry keys that are deletion markers that will hide any system level key with the same path that might be present on the target system the package is run on.
Note that MSIX does not have registry deletion markers, but there is a PSF Feature called JavaBlock that you can enable as a rule in the RegLegacyFixup.
The details on use depend upon which version you use, but generically you do the following:
-
Run the script with the first parameter to add keys into the registry
-
Start your packaging tool and get into monitoring mode.
-
Run the script with the second parameter to remove those keys
-
Install the version of Java you need, plus any application.
-
Finish off your package.
Downloads
There are two versions, the original version written by Patrick Mangan, which has no dependencies, and the updated version that uses PowerShell and requires our PassiveInstall PowerShell module.
Here is the older version:
ZIP package with the PS1: jreBlock V 3.0.0.0
Here is the newer version which requires PassiveInstall:
ZIP package with the PS1 files: jreBlock V 4.0.0.0>