• Welcome to Support Forum: Get Support for Patch My PC Products and Services.
 

Java Custom Folder Install

Started by imitkov17, August 04, 2020, 01:36:40 PM

Previous topic - Next topic

imitkov17

Hi,

Is it possible to configure Java so that it always installs in the same folder. By default each version of Java installs in different folder with the version in it's name. For example the current 32-bit version 261 installs in c:\Program Files (x86)\Java\jre_1.8.0_261. We have an Java application that creates a shortcut pointing to the javaws.exe in the install folder. Installing new version of Java breaks the shortcut and the application has to be reinstalled. Doing a manual install the folder can be specified. For example c:\Program Files (x86)\Java\jre. Is it possible to do that with the maybe by using the "Modify Command Line" option?

Ivo

Andrew Jimenez (Patch My PC)

Hello,

You should be able to accomplish this using the Patch My PC publisher and specifying a custom installation command line using the right-click options. Information about those right-click options can be found here: https://patchmypc.com/custom-options-available-for-third-party-updates-and-applications

imitkov17

Hi Andrew,

Thank you for the reply.

I was thinking along the same lines but do you know what the custom command would be? The KB doesn't elaborate on available option except for the examples in the "Additional Argument" window. I did some Googling and it seems that the original installer supports the INSTALLDIR argument. Should I assume that PatchMyPC will pass this argument to the original JRE installer?

Thanks!

Ivo

Andrew Jimenez (Patch My PC)

You are correct, you likely just need to pop INSTALLDIR="Custom\install\path" to the command line right-click option. After doing so, run a sync, ConfigMgr Base will automatically be updated, you may need to run a republish for the update to be regenerated: https://patchmypc.com/frequently-asked-questions#republishing-updates