-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
[Package Issue]: Oracle.JavaRuntimeEnvironment - PackageVersion: 8.0.3410.10 - upgrades to different architecture #67506
Comments
@denelon IIRC WinGet does respect the installed architecture when upgrading right? Just so its not similar to microsoft/winget-cli#2334 Line 19 in 2eeb91d
I triple checked that the installer urls are correct Lines 29 to 45 in 2eeb91d
|
@OfficialEsco you are correct. I also expect the fact that we're uninstalling the previous version is why we're not maintaining the architecture. I think this is going to need a bug so we can keep track of the installed architecture so when we perform the subsequent install in the upgrade flow, we can preserve the original architecture. |
If I change And also add the supported installer switch to remove old versions In this scenario, the new version is installed before the old version is removed. Thanks for reviewing this. |
Are you doing winget install -m or upgrade -m?
Also you should check the logs if the switch is used |
@OfficialEsco `C:>winget install Oracle.JavaRuntimeEnvironment -a x86 -v 8.0.3330.2 C:>winget upgrade -m "C:\temp\Java" I tried with the switches you recommended and have the same result, x64 is installed. Additionally, I tried not using REMOVEOUTOFDATEJRES=1 at all and just changed UpgreadeBehavior to "install". This installs x64 and also leaves the previous x86 version. yaml-language-server: $schema=https://aka.ms/winget-manifest.installer.1.1.0.schema.jsonPackageIdentifier: Oracle.JavaRuntimeEnvironment
Let me know anything else I can provide. I have not been successful getting the upgrade to install x86 any way I have tried it. |
Is this bug being tracked anywhere? This is still an issue where "winget upgrade Oracle.JavaRuntimeEnvironment" upgrades to a different architecture than is installed. |
This issue is the bug report 😊 We're tracking it here. It's a more generic issue related to upgrades not necessarily honoring the architecture they are installed with. We're still looking into the best way to deal with this class of issues. |
Thanks for replying. Didn't know if there was a bug report somewhere handling the overall architecture issue that I missed. |
Please confirm these before moving forward
Category of the issue
Other
Brief description of your issue
Upgrade issue.
A previous version of Oracle.JavaRuntimeEnvironment (x86) is installed, like PackageVersion: 8.0.3330.2
Winget upgrade Oracle.JavaRuntimeEnvironment is run and it replaces the x86 version with the new version but it installs the x64 version.
Steps to reproduce
With a previous x86 version of Oracle.JavaRuntimeEnvironment installed.
Run
Winget upgrade Oracle.JavaRuntimeEnvironment
Actual behavior
Upgrades the installed x86 version to the current x64 version.
Expected behavior
Upgrade the installed x86 version to the current x86 version
Environment
Screenshots and Logs
No response
The text was updated successfully, but these errors were encountered: