Skip to content

Upgrade changes install location to default (with winget upgrade --exact --id EclipseAdoptium.Temurin.22.JR) #995

@de-served

Description

@de-served

Please provide a brief summary of the bug

Upgrade outdated version that was installed not in default directory cleans custom installation directory and installs upgrade to another directory

Did you test with the latest update version?

  • Yes

Please provide steps to reproduce where possible

  1. Install outdated JRE v22 with winget install --force --exact --id "EclipseAdoptium.Temurin.22.JRE" --override "INSTALLDIR=\"C:\Something\BlablablaPathForJRE22\""
  2. When found that JRE is outdated (with winget upgrade) start upgrade with winget upgrade --exact --id EclipseAdoptium.Temurin.22.JRE
  3. Upgrade kills installation in C:\Something\BlablablaPathForJRE22\ and installs to Program Files... 👎 👎 :

Expected Results

Expected that original installation path will be left as is!

Actual Results

Upgrade outdated version that was installed not in default directory cleans custom installation directory and installs upgrade to another directory

What Java Version are you using?

22.0.1+8 -> 22.0.2.9

What is your operating system and platform?

Windows 10 22h2 x64

How did you install Java?

winget install --force --exact --id "EclipseAdoptium.Temurin.22.JRE" --override "INSTALLDIR=\"C:\Something\BlablablaPathForJRE22\""

Did it work before?

No response

Did you test with other Java versions?

No response

Relevant log output

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions