diff --git a/.github/workflows/release-pkg.nu b/.github/workflows/release-pkg.nu
index a869bbbb62..af9fa5747c 100755
--- a/.github/workflows/release-pkg.nu
+++ b/.github/workflows/release-pkg.nu
@@ -200,6 +200,7 @@ if $os in ['macos-latest'] or $USE_UBUNTU {
cd $src; cd wix; hr-line; mkdir nu
# Wix need the binaries be stored in nu folder
cp -r ($'($dist)/*' | into glob) nu/
+ cp $'($dist)/README.txt' .
ls -f nu/* | print
let arch = if $nu.os-info.arch =~ 'x86_64' { 'x64' } else { 'arm64' }
./nu/nu.exe -c $'NU_RELEASE_VERSION=($version) dotnet build -c Release -p:Platform=($arch)'
diff --git a/wix/main.wixproj b/wix/main.wixproj
index f89c73b8a7..ccf018e0bd 100644
--- a/wix/main.wixproj
+++ b/wix/main.wixproj
@@ -4,7 +4,7 @@
nu-$(Platform)
82D756D2-19FA-4F09-B10F-64942E89F364
- SourceDir=$(MSBuildProjectDirectory)\nu
+ SourceDir=$(MSBuildProjectDirectory)\nu;
true
ICE80
diff --git a/wix/main.wxs b/wix/main.wxs
index 257ee4c620..ee43ac4a1a 100644
--- a/wix/main.wxs
+++ b/wix/main.wxs
@@ -39,7 +39,7 @@
-
+
@@ -224,11 +224,11 @@
Impersonate="yes"
Execute="deferred"
DllEntry="WixQuietExec"
- BinaryRef="Wix4UtilCA_X64" />
+ BinaryRef="Wix4UtilCA_$(sys.BUILDARCHSHORT)" />
+ Condition="(&WindowsTerminalProfile=3) OR ((!WindowsTerminalProfile=3) AND (REINSTALL<>""))" />