From bc18cc12d5910f4e17d79fd0bcfa1455e6709b3b Mon Sep 17 00:00:00 2001 From: Darren Schroeder <343840+fdncred@users.noreply.github.com> Date: Wed, 1 May 2024 18:31:16 -0400 Subject: [PATCH] change wix install method from perMachine to perUser (#12720) # Description This PR: * Updates to the latest cargo-wix * Changes install method from perMachine to perUser * Updates HKCU Path vs HKLM Path * Updates Windows Terminal Fragment Json to be compatible with [their spec](https://learn.microsoft.com/en-us/windows/terminal/json-fragment-extensions). * Updates License year from 2022 to 2024 The result of these changes makes our Windows installer no longer prompt with a UAC dialog and installs the binaries into `%LocalAppData%\Programs\nu\bin`. All of this is an attempt to make WinGet releases less error prone. # User-Facing Changes # Tests + Formatting # After Submitting --- .github/workflows/release-pkg.nu | 2 +- wix/License.rtf | Bin 1288 -> 1288 bytes wix/main.wxs | 21 +++++++++++++++------ wix/windows-terminal-profile.json | 2 +- 4 files changed, 17 insertions(+), 8 deletions(-) diff --git a/.github/workflows/release-pkg.nu b/.github/workflows/release-pkg.nu index 9f728b3b80..046ea2475e 100755 --- a/.github/workflows/release-pkg.nu +++ b/.github/workflows/release-pkg.nu @@ -192,7 +192,7 @@ if $os in ['macos-latest'] or $USE_UBUNTU { # Wix need the binaries be stored in target/release/ cp -r ($'($dist)/*' | into glob) target/release/ ls target/release/* | print - cargo install cargo-wix --version 0.3.4 + cargo install cargo-wix --version 0.3.8 cargo wix --no-build --nocapture --package nu --output $wixRelease # Workaround for https://github.com/softprops/action-gh-release/issues/280 let archive = ($wixRelease | str replace --all '\' '/') diff --git a/wix/License.rtf b/wix/License.rtf index 9a7bb03deb2cef8a3a33deae10e23a66d9cc8c49..54e26fad006a332a481e8a3f3ab2a83c18cb3c9f 100644 GIT binary patch delta 12 TcmeC+>foAin$cwA85foAin$c+E85 @@ -57,6 +57,8 @@ + + @@ -94,7 +96,7 @@ Permanent='no' Part='last' Action='set' - System='yes'/> + System='no'/> - + - + + System='no'/> + + + + + + + @@ -404,7 +413,7 @@ DllEntry="CAQuietExec" Execute="deferred" Return="check" - Impersonate="no"/> + Impersonate="yes"/> diff --git a/wix/windows-terminal-profile.json b/wix/windows-terminal-profile.json index 408766cd45..59866bb527 100644 --- a/wix/windows-terminal-profile.json +++ b/wix/windows-terminal-profile.json @@ -1,7 +1,7 @@ { "profiles": [ { - "guid": "{aab79973-318f-43b6-a9bc-b4096493753f}", + "guid": "{47302f9c-1ac4-566c-aa3e-8cf29889d6ab}", "name": "Nushell", "commandline": "nu.exe", "icon": "nu.ico",