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

on win-arm64, Upgrade failed from net 6 RC1 to RC2 with error The installation path for ARM64 SDK installations: "C:\Program Files\dotnet" cannot be the same as for x64 SDK installations: "C:\Program Files\dotnet" #21872

Closed
vdanche opened this issue Oct 8, 2021 · 5 comments
Assignees
Labels
Area-Infrastructure untriaged Request triage from a team member

Comments

@vdanche
Copy link
Member

vdanche commented Oct 8, 2021

Environment: win-arm64
Repro
Install net 6 RC1-- dotnet-sdk-6.0.100-rc.1.21463.6-win-arm64.exe on win-arm64
Install the latest RC2 SDK-dotnet-sdk-6.0.100-rc.2.21505.57-win-arm64.exe to upgrade
Artifacts: https://dev.azure.com/dnceng/internal/_build/results?buildId=1405337&view=artifacts&pathAsName=false&type=publishedArtifacts

Actual Result
Upgrade failed with error -The installation path for ARM64 SDK installations: "C:\Program Files\dotnet" cannot be the same as for x64 SDK installations: "C:\Program Files\dotnet"

image

LOG:
[1830:2AC4][2021-10-07T20:27:51]i001: Burn v3.14.0.4118, Windows v10.0 (Build 19042: Service Pack 0), path: C:\Users\v-danche\AppData\Local\Temp{489814F1-3F58-4EFA-8214-342DDD6FC63E}.cr\dotnet-sdk-6.0.100-rc.2.21505.57-win-arm64.exe
[1830:2AC4][2021-10-07T20:27:51]i000: Initializing string variable 'DOTNETHOME' to value '[DOTNETHOME_ARM64]'
[1830:2AC4][2021-10-07T20:27:51]i000: Initializing string variable 'BUNDLEMONIKER' to value 'Microsoft .NET SDK 6.0.100-rc.2.21505.57'
[1830:2AC4][2021-10-07T20:27:51]i000: Initializing string variable 'DOTNETSDKVERSION' to value '6.0.100-rc.2.21505.57'
[1830:2AC4][2021-10-07T20:27:51]i000: Initializing string variable 'DOTNETRUNTIMEVERSION' to value '6.0.0-rc.2.21480.5'
[1830:2AC4][2021-10-07T20:27:51]i000: Initializing string variable 'ASPNETCOREVERSION' to value '6.0.0-rc.2.21480.10'
[1830:2AC4][2021-10-07T20:27:51]i000: Initializing string variable 'WINFORMSANDWPFVERSION' to value '6.0.0-rc.2.21501.6'
[1830:2AC4][2021-10-07T20:27:51]i000: Initializing string variable 'DOTNETHOMESIMILARITYCHECKOVERRIDE' to value ''
[1830:2AC4][2021-10-07T20:27:51]i009: Command Line: '-burn.clean.room=C:\Users\v-danche\Desktop\dotnet-sdk-6.0.100-rc.2.21505.57-win-arm64.exe -burn.filehandle.attached=604 -burn.filehandle.self=672'
[1830:2AC4][2021-10-07T20:27:51]i000: Setting string variable 'WixBundleOriginalSource' to value 'C:\Users\v-danche\Desktop\dotnet-sdk-6.0.100-rc.2.21505.57-win-arm64.exe'
[1830:2AC4][2021-10-07T20:27:51]i000: Setting string variable 'WixBundleOriginalSourceFolder' to value 'C:\Users\v-danche\Desktop'
[1830:2AC4][2021-10-07T20:27:51]i000: Setting string variable 'WixBundleLog' to value 'C:\Users\v-danche\AppData\Local\Temp\Microsoft_.NET_SDK_6.0.100-rc.2.21505.57_(arm64)_20211007202751.log'
[1830:2AC4][2021-10-07T20:27:51]i000: Setting string variable 'WixBundleName' to value 'Microsoft .NET SDK 6.0.100-rc.2.21505.57 (arm64)'
[1830:2AC4][2021-10-07T20:27:51]i000: Setting string variable 'WixBundleManufacturer' to value 'Microsoft Corporation'
[1830:0B7C][2021-10-07T20:27:51]i000: Setting numeric variable 'WixStdBALanguageId' to value 1033
[1830:0B7C][2021-10-07T20:27:51]i000: Setting version variable 'WixBundleFileVersion' to value '6.1.21.50557'
[1830:2AC4][2021-10-07T20:27:51]i100: Detect begin, 13 packages
[1830:2AC4][2021-10-07T20:27:51]i000: Setting numeric variable 'DotnetInstallLocationExists_arm64' to value 1
[1830:2AC4][2021-10-07T20:27:51]i000: Setting numeric variable 'DotnetInstallLocationExists_x64' to value 1
[1830:2AC4][2021-10-07T20:27:51]i000: Setting numeric variable 'DotnetInstallLocationExists_x86' to value 1
[1830:2AC4][2021-10-07T20:27:51]i052: Condition 'DotnetInstallLocationExists_arm64' evaluates to true.
[1830:2AC4][2021-10-07T20:27:51]i000: Setting string variable 'DOTNETHOME_ARM64' to value 'C:\Program Files\dotnet'
[1830:2AC4][2021-10-07T20:27:51]i052: Condition 'NOT DotnetInstallLocationExists_arm64' evaluates to false.
[1830:2AC4][2021-10-07T20:27:51]i052: Condition 'DotnetExeExists_arm64' evaluates to false.
[1830:2AC4][2021-10-07T20:27:51]i052: Condition 'DotnetInstallLocationExists_x64' evaluates to true.
[1830:2AC4][2021-10-07T20:27:51]i000: Setting string variable 'DOTNETHOME_X64' to value 'C:\Program Files\dotnet'
[1830:2AC4][2021-10-07T20:27:51]i000: Setting string variable 'NativeProcessorArchitecture' to value 'ARM64'
[1830:2AC4][2021-10-07T20:27:51]i052: Condition 'NOT DotnetInstallLocationExists_x64 AND NOT NativeProcessorArchitecture="AMD64"' evaluates to false.
[1830:2AC4][2021-10-07T20:27:51]i052: Condition 'DotnetExeExists_alt_x64' evaluates to false.
[1830:2AC4][2021-10-07T20:27:51]i052: Condition 'NOT DotnetInstallLocationExists_x64 AND NativeProcessorArchitecture="AMD64"' evaluates to false.
[1830:2AC4][2021-10-07T20:27:51]i052: Condition 'DotnetExeExists_x64' evaluates to false.
[1830:2AC4][2021-10-07T20:27:51]i052: Condition 'DotnetInstallLocationExists_x86' evaluates to true.
[1830:2AC4][2021-10-07T20:27:51]i000: Setting string variable 'DOTNETHOME_X86' to value 'C:\Program Files (x86)\dotnet'
[1830:2AC4][2021-10-07T20:27:51]i052: Condition 'NOT DotnetInstallLocationExists_x86' evaluates to false.
[1830:2AC4][2021-10-07T20:27:51]i052: Condition 'DotnetExeExists_x86' evaluates to false.
[1830:2AC4][2021-10-07T20:27:51]i102: Detected related bundle: {3cb33ee3-8186-4190-baa8-76c1590f46df}, type: Upgrade, scope: PerMachine, version: 6.1.21.46306, operation: MajorUpgrade
[1830:2AC4][2021-10-07T20:27:51]i052: Condition 'WixBundleAction >= 3' evaluates to true.
[1830:2AC4][2021-10-07T20:27:51]i101: Detected package: dotnet_runtime_6.0.0_rc.2.21480.5_win_arm64.msi, state: Absent, cached: None
[1830:2AC4][2021-10-07T20:27:51]i101: Detected package: dotnet_hostfxr_6.0.0_rc.2.21480.5_win_arm64.msi, state: Absent, cached: None
[1830:2AC4][2021-10-07T20:27:51]i101: Detected package: dotnet_host_6.0.0_rc.2.21480.5_win_arm64.msi, state: Absent, cached: None
[1830:2AC4][2021-10-07T20:27:51]i101: Detected package: dotnet_targeting_pack_6.0.0_rc.2.21480.5_win_arm64.msi, state: Absent, cached: None
[1830:2AC4][2021-10-07T20:27:51]i101: Detected package: dotnet_apphost_pack_6.0.0_rc.2.21480.5_win_arm64.msi, state: Absent, cached: None
[1830:2AC4][2021-10-07T20:27:51]i101: Detected package: windowsdesktop_runtime_6.0.0_rc.2.21501.6_win_arm64.msi, state: Absent, cached: None
[1830:2AC4][2021-10-07T20:27:51]i101: Detected package: windowsdesktop_targeting_pack_6.0.0_rc.2.21501.6_win_arm64.msi, state: Absent, cached: None
[1830:2AC4][2021-10-07T20:27:51]i101: Detected package: aspnetcore_targeting_pack_6.0.0_rc.2.21480.10_win_arm64.msi, state: Absent, cached: None
[1830:2AC4][2021-10-07T20:27:51]i101: Detected package: dotnet_60templates_6.0.100_rc.2.21505.57_win_arm64.msi, state: Absent, cached: None
[1830:2AC4][2021-10-07T20:27:51]i101: Detected package: dotnet_sdkmanifests_6.0.100_rc.2.21505.57_win_arm64.msi, state: Absent, cached: None
[1830:2AC4][2021-10-07T20:27:51]i101: Detected package: dotnet_sdk_internal_6.0.100_rc.2.21505.57_win_arm64.msi, state: Absent, cached: None
[1830:2AC4][2021-10-07T20:27:51]i101: Detected package: AspNetCoreSharedFramework_arm64, state: Absent, cached: None
[1830:2AC4][2021-10-07T20:27:51]i101: Detected package: Finalizer, state: Present, cached: None
[1830:2AC4][2021-10-07T20:27:51]i052: Condition 'WixBundleInstalled OR (NOT DOTNETHOME_X64 ~= DOTNETHOME_X86) OR DOTNETHOMESIMILARITYCHECKOVERRIDE' evaluates to true.
[1830:2AC4][2021-10-07T20:27:51]i052: Condition 'WixBundleInstalled OR (NOT DOTNETHOME_ARM64 ~= DOTNETHOME_X86) OR DOTNETHOMESIMILARITYCHECKOVERRIDE' evaluates to true.
[1830:2AC4][2021-10-07T20:27:51]i052: Condition 'WixBundleInstalled OR (NOT DOTNETHOME_ARM64 ~= DOTNETHOME_X64) OR (NOT NativeProcessorArchitecture="ARM64") OR DOTNETHOMESIMILARITYCHECKOVERRIDE' evaluates to false.
[1830:2AC4][2021-10-07T20:27:51]e000: The installation path for ARM64 SDK installations: "C:\Program Files\dotnet" cannot be the same as for x64 SDK installations: "C:\Program Files\dotnet"
[1830:2AC4][2021-10-07T20:27:51]e000: Error 0x81f40001: Bundle condition evaluated to false: WixBundleInstalled OR (NOT DOTNETHOME_ARM64 ~= DOTNETHOME_X64) OR (NOT NativeProcessorArchitecture="ARM64") OR DOTNETHOMESIMILARITYCHECKOVERRIDE
[1830:2AC4][2021-10-07T20:27:51]i199: Detect complete, result: 0x0

@dotnet-issue-labeler dotnet-issue-labeler bot added Area-Infrastructure untriaged Request triage from a team member labels Oct 8, 2021
@joeloff
Copy link
Member

joeloff commented Oct 8, 2021

We made some changes in RC2 where some of the install location data was written up front. Try uninstalling RC1 and then installing RC2. Otherwise if you want to upgrade you will need to delete HKEY_LOCAL_MACHINE\SOFTWARE\dotnet\setup\InstalledVersions\x64\InstallLocation first from the registry.

@ericstj
Copy link
Member

ericstj commented Oct 11, 2021

Please do not delete that key. You must uninstall all previous dotnet installers before installing 6.0 RC2 or later. @richlander mentions this here: #21686

@ericstj
Copy link
Member

ericstj commented Oct 11, 2021

Just noticed that this machine only had arm64 installed. This is effectively the bug where the SDK wrote all detection keys regardless of installation. In that specific case it may be OK to delete the key, but it's better to uninstall everything before installing the 6.0 ARM64 SDK.

@ericstj
Copy link
Member

ericstj commented Oct 14, 2021

@richlander -- please see this as consideration if we would like to add another blocking condition to avoid this in the boostrapper or give a better error message.

@ericstj ericstj removed their assignment Jan 28, 2022
@joeloff
Copy link
Member

joeloff commented Aug 2, 2023

Nothing further required here. This was a transient issue while arm64 support was being introduced.

@joeloff joeloff closed this as completed Aug 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Infrastructure untriaged Request triage from a team member
Projects
None yet
Development

No branches or pull requests

3 participants