Support Forum: Get Support for Patch My PC Products and Services

Microsoft Configuration Manager and Intune (Enterprises/Paid) => Support and General Questions (Enterprises Using ConfigMgr and Intune) => Topic started by: imitkov17 on August 04, 2020, 01:36:40 PM

Title: Java Custom Folder Install
Post by: imitkov17 on August 04, 2020, 01:36:40 PM
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
Title: Re: Java Custom Folder Install
Post by: Andrew Jimenez (Patch My PC) on August 04, 2020, 02:06:04 PM
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
Title: Re: Java Custom Folder Install
Post by: imitkov17 on August 04, 2020, 02:49:04 PM
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
Title: Re: Java Custom Folder Install
Post by: Andrew Jimenez (Patch My PC) on August 04, 2020, 03:08:44 PM
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