fix(components): install the real ARM64 Visual C++ runtime instead of registry entries (#2430)

This commit is contained in:
Kurt Himebauch authored and GitHub committed 2026-11-28 22:36:18 -05:00
1 parent 6349a171b5
commit e0d9f8537a
4 files changed
+121 -19

No files matched your search

@@ -3,6 +3,7 @@ package com.droiddeck.launcher.session
import com.droiddeck.launcher.session.WinComponents.Support
import org.json.JSONObject
import org.junit.Assert.assertEquals
import org.junit.Assert.assertTrue
import org.junit.Test
import org.junit.runner.RunWith
import org.robolectric.RobolectricTestRunner
@@ -31,12 +32,13 @@ class WinComponentsSupportTest {
step("install_msi", "url" to "$base/ps-x86.msi"), step("install_msi", "url" to "$base/ps-x64.msi"))))
}
@Test fun builtInArm64RuntimeIsRegistryOnlyInBothViews() {
@Test fun builtInArm64RuntimeInstallsTheRedistributable() {
val c = WinComponents.builtInArm64Runtime()
assertEquals(Support.READY, support(c))
assertEquals(12, c.steps.count { it.action == "set_register_key" })
assertEquals(setOf("HKLM\\Software\\Microsoft\\VisualStudio\\14.0\\VC\\Runtimes\\arm64",
"HKLM\\Software\\Wow6432Node\\Microsoft\\VisualStudio\\14.0\\VC\\Runtimes\\arm64"), c.steps.map { it.str("key") }.toSet())
assertEquals(listOf("install_exe"), c.steps.map { it.action })
assertEquals("VC_redist.arm64.exe", c.steps.single().str("file_name"))
assertEquals(0, c.steps.count { it.action == "set_register_key" })
assertTrue(c.revision > 0)
}
@Test fun installerWrappersInstallHere() {