Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to install Corretto 11 msi via command line into a specific directory? #376

Open
HarshaVardhan-Sai opened this issue Nov 5, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@HarshaVardhan-Sai
Copy link

###Is your feature request related to a problem?
Yes, the Corretto 11 JDK MSI installer does not respect the TARGETDIR parameter specified during installation via the command line. Instead of installing to the specified directory, it defaults to an INSTALLDIR path that includes the JDK minor version, which is inconvenient and doesn’t allow control over the exact installation path.

###Describe a solution you would like
I would like the MSI installer for Corretto 11 JDK to fully respect the TARGETDIR parameter when provided via the command line. This would allow users to specify an exact installation directory, regardless of the JDK version or minor version, without it defaulting to an internal path structure (like INSTALLDIR\jdk-version). Ideally, the installation should complete to the exact path provided with TARGETDIR.

###Describe alternatives you have considered
As a workaround, I considered manually moving the installed JDK files to the desired location after installation. However, this is not ideal, as it complicates automation processes (e.g., using scripts to deploy Corretto JDK in specific directories on multiple systems). Another alternative would be using a ZIP archive instead of the MSI installer, but this lacks the integration benefits and ease of setup that MSI provides, such as automatic registry settings and environment variable configurations.

###Additional context
This issue complicates deployment automation and custom setups, especially in enterprise environments where specific directory structures are required. It would be helpful to have full control over the installation directory via command line parameters for greater flexibility.

@HarshaVardhan-Sai HarshaVardhan-Sai added the enhancement New feature or request label Nov 5, 2024
@HarshaVardhan-Sai
Copy link
Author

HarshaVardhan-Sai commented Nov 14, 2024

Could you please suggest?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant