From 5f18fcc2eada6ce2b17eeda833986154d032235e Mon Sep 17 00:00:00 2001 From: Eric StJohn Date: Thu, 2 Sep 2021 10:03:19 -0700 Subject: [PATCH 1/4] Retarget DOTNETHOME when installing x64 on ARM64 --- .../Windows/Common/dotnethome_x64.wxs | 34 +++++++++++++++++++ .../Windows/SharedFramework/Product.wxs | 8 +++++ .../SharedFramework/SharedFramework.wixproj | 1 + .../Windows/TargetingPack/Product.wxs | 8 +++++ .../TargetingPack/TargetingPack.wixproj | 1 + 5 files changed, 52 insertions(+) create mode 100644 src/Installers/Windows/Common/dotnethome_x64.wxs diff --git a/src/Installers/Windows/Common/dotnethome_x64.wxs b/src/Installers/Windows/Common/dotnethome_x64.wxs new file mode 100644 index 000000000000..4cb6b51380ed --- /dev/null +++ b/src/Installers/Windows/Common/dotnethome_x64.wxs @@ -0,0 +1,34 @@ + + + + + + + + + + + + + + + + + + + + NOT %PROCESSOR_ARCHITECTURE="$(var.InstallerArchitecture)" + + + + + + + + INSTALLING_IN_EMULATION AND NOT DOTNETHOME + + + + \ No newline at end of file diff --git a/src/Installers/Windows/SharedFramework/Product.wxs b/src/Installers/Windows/SharedFramework/Product.wxs index 3375094918c0..c63f1ba0b817 100644 --- a/src/Installers/Windows/SharedFramework/Product.wxs +++ b/src/Installers/Windows/SharedFramework/Product.wxs @@ -35,6 +35,10 @@ + + + + @@ -63,6 +67,10 @@ + + diff --git a/src/Installers/Windows/SharedFramework/SharedFramework.wixproj b/src/Installers/Windows/SharedFramework/SharedFramework.wixproj index 9b9e4c6f0a7e..becd904b5ea6 100644 --- a/src/Installers/Windows/SharedFramework/SharedFramework.wixproj +++ b/src/Installers/Windows/SharedFramework/SharedFramework.wixproj @@ -46,6 +46,7 @@ + diff --git a/src/Installers/Windows/TargetingPack/Product.wxs b/src/Installers/Windows/TargetingPack/Product.wxs index 33b6173a7a5b..30994db78c41 100644 --- a/src/Installers/Windows/TargetingPack/Product.wxs +++ b/src/Installers/Windows/TargetingPack/Product.wxs @@ -39,6 +39,10 @@ + + + + @@ -62,6 +66,10 @@ + + diff --git a/src/Installers/Windows/TargetingPack/TargetingPack.wixproj b/src/Installers/Windows/TargetingPack/TargetingPack.wixproj index 61f24ee3b14a..610d68da3d43 100644 --- a/src/Installers/Windows/TargetingPack/TargetingPack.wixproj +++ b/src/Installers/Windows/TargetingPack/TargetingPack.wixproj @@ -48,6 +48,7 @@ + From dbfe1de77c3fd2033da746228ae075e526d5334a Mon Sep 17 00:00:00 2001 From: Eric StJohn Date: Thu, 2 Sep 2021 15:57:54 -0700 Subject: [PATCH 2/4] Make platform comparison case insenstive --- src/Installers/Windows/Common/dotnethome_x64.wxs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Installers/Windows/Common/dotnethome_x64.wxs b/src/Installers/Windows/Common/dotnethome_x64.wxs index 4cb6b51380ed..21e3b213e785 100644 --- a/src/Installers/Windows/Common/dotnethome_x64.wxs +++ b/src/Installers/Windows/Common/dotnethome_x64.wxs @@ -7,11 +7,11 @@ - + - + - + @@ -22,7 +22,7 @@ NOT %PROCESSOR_ARCHITECTURE="$(var.InstallerArchitecture)" - + From 0dbeb660ead422af8545f2d1050a15ec57a21b00 Mon Sep 17 00:00:00 2001 From: Eric StJohn Date: Fri, 3 Sep 2021 15:49:29 -0700 Subject: [PATCH 3/4] Address feedback --- .../Windows/Common/dotnethome_x64.wxs | 24 +++++++++++-------- .../Windows/SharedFramework/Product.wxs | 6 ++--- .../Windows/TargetingPack/Product.wxs | 6 ++--- 3 files changed, 20 insertions(+), 16 deletions(-) diff --git a/src/Installers/Windows/Common/dotnethome_x64.wxs b/src/Installers/Windows/Common/dotnethome_x64.wxs index 21e3b213e785..53e0bc4819e4 100644 --- a/src/Installers/Windows/Common/dotnethome_x64.wxs +++ b/src/Installers/Windows/Common/dotnethome_x64.wxs @@ -1,33 +1,37 @@ - - - + + + - + + + ? - + NOT %PROCESSOR_ARCHITECTURE="$(var.InstallerArchitecture)" - + - - - INSTALLING_IN_EMULATION AND NOT DOTNETHOME + + + NON_NATIVE_ARCHITECTURE AND NOT DOTNETHOME diff --git a/src/Installers/Windows/SharedFramework/Product.wxs b/src/Installers/Windows/SharedFramework/Product.wxs index c63f1ba0b817..d57ce48b8ef0 100644 --- a/src/Installers/Windows/SharedFramework/Product.wxs +++ b/src/Installers/Windows/SharedFramework/Product.wxs @@ -36,8 +36,8 @@ - - + + @@ -67,7 +67,7 @@ - diff --git a/src/Installers/Windows/TargetingPack/Product.wxs b/src/Installers/Windows/TargetingPack/Product.wxs index 30994db78c41..fe67005c1f01 100644 --- a/src/Installers/Windows/TargetingPack/Product.wxs +++ b/src/Installers/Windows/TargetingPack/Product.wxs @@ -40,8 +40,8 @@ - - + + @@ -66,7 +66,7 @@ - From 4f4423610f8d568ff6f0d68d115e41c40a162eb4 Mon Sep 17 00:00:00 2001 From: Eric StJohn Date: Mon, 13 Sep 2021 11:11:49 -0700 Subject: [PATCH 4/4] Install x64 registry keys to different path on ARM64 machine --- .../Windows/SharedFramework/Product.wxs | 33 ++++++++++++++++--- .../Windows/TargetingPack/Product.wxs | 33 ++++++++++++++++--- 2 files changed, 58 insertions(+), 8 deletions(-) diff --git a/src/Installers/Windows/SharedFramework/Product.wxs b/src/Installers/Windows/SharedFramework/Product.wxs index d57ce48b8ef0..98b5756c69de 100644 --- a/src/Installers/Windows/SharedFramework/Product.wxs +++ b/src/Installers/Windows/SharedFramework/Product.wxs @@ -56,6 +56,10 @@ + + + + @@ -67,23 +71,44 @@ - - + + + NOT NON_NATIVE_ARCHITECTURE + + + + NOT NON_NATIVE_ARCHITECTURE + + + + + + NON_NATIVE_ARCHITECTURE + + + + + + + NON_NATIVE_ARCHITECTURE + + + + + diff --git a/src/Installers/Windows/TargetingPack/Product.wxs b/src/Installers/Windows/TargetingPack/Product.wxs index fe67005c1f01..6317450b2670 100644 --- a/src/Installers/Windows/TargetingPack/Product.wxs +++ b/src/Installers/Windows/TargetingPack/Product.wxs @@ -59,6 +59,10 @@ + + + + @@ -66,23 +70,44 @@ - - + + + NOT NON_NATIVE_ARCHITECTURE + + + + NOT NON_NATIVE_ARCHITECTURE + + + + + + + NON_NATIVE_ARCHITECTURE + + + + + + NON_NATIVE_ARCHITECTURE + + + + +