diff --git a/src/installer/pkg/sfx/installers/dotnet-host.proj b/src/installer/pkg/sfx/installers/dotnet-host.proj
index c4a61a297595c1..64282f8de95808 100644
--- a/src/installer/pkg/sfx/installers/dotnet-host.proj
+++ b/src/installer/pkg/sfx/installers/dotnet-host.proj
@@ -12,7 +12,11 @@
Dotnet_CLI_SharedHost
HostSrc
- afterInstallExecute
+
+
+ afterInstallInitialize
false
true
sharedhost
@@ -26,7 +30,7 @@
-
+
diff --git a/src/installer/pkg/sfx/installers/host.wxs b/src/installer/pkg/sfx/installers/host.wxs
index 322b9038d92939..893520ff557275 100644
--- a/src/installer/pkg/sfx/installers/host.wxs
+++ b/src/installer/pkg/sfx/installers/host.wxs
@@ -38,12 +38,12 @@
-
+
-
+
NOT NON_NATIVE_ARCHITECTURE
-
+
NOT VersionNT64
@@ -51,7 +51,6 @@
-
@@ -63,6 +62,7 @@
+
@@ -76,6 +76,32 @@
+
+
+
+
+
+
+
+
+
+
+
+ "#1" AND NOT NON_NATIVE_ARCHITECTURE]]>
+
+
+ "#1" AND NOT VersionNT64]]>
+
+
+
+
+
+
+
+ "#1"]]>
+
+
+