
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-09-2016
04:33 PM
- last edited on
‎07-04-2023
05:36 PM
by
ErikT
Hello, this installer uses a bit of the other installers posted here and mixes them into one. This is set to only update windows 7 installs with java 32 bit and remove any other versions. Our main application vendor doesn't support the 32 bit version of java/ie at this time so installing the 64 bit is an unsupported configuration for us.
Modify as you like. The PS script can be find on this forum as well as the java installer that this is based on. All credit to those parties for building the foundation this is built on.
- Labels:
-
Share(d) Packages

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-21-2017 06:16 PM
1. The execution security of powershell is restricted "Get-ExecutionPolicy" .
Fixed by executing "Set-ExecutionPolicy -ExecutionPolicy Unrestricted"
2. The script does not correctly convert the string to the question. The question in the script:
If (($ app.Version -ne $ newest64bitVersion) -and ($ newest64bitVersion -ne $ null)) {
I do not operate correctly because $ newest64bitVersion returns a collection of number and not a string. The line I operate correctly is:
If (("$ app.Version" -ne "$ newest64bitVersion") -and ($ newest64bitVersion -ne $ null)) {
3. As an alternative method, VBScript is executed, which is attached.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-11-2016 03:58 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-22-2016 09:35 PM
AUTO_UPDATE=0
the the installer line.
For example:
"{PackageShare}\Java\jre-8u73-windows-i586.exe" INSTALL_SILENT=Enable AUTO_UPDATE=0 REBOOT=Disable EULA=Disable REMOVEOUTOFDATEJRES=Disable SPONSORS=Disable
The switches are all documented here: http://docs.oracle.com/javase/8/docs/technotes/guides/install/config.html#installing_with_config_file
While the document says "with a config file", the switches can be passed just fine on the command line.
Since you do the uninstallers in a separate step, REMOVEOUTOFDATEJRES=Disable is probably another good switch, and will save time and stalling out in the installer if the previous version of Java is corrupt.
