Fix Windows Terminal profile installation (#12714)

# Description

The command used to edit the Windows Terminal profiling was failing due
to the `open file | save -f file` metadata safeguard introduced in this
version. With this, the installer is now fixed again.
This commit is contained in:
Devyn Cairns 2024-04-30 17:36:40 -07:00 committed by GitHub
parent 734a3b5f2c
commit 3c022e334f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -392,10 +392,11 @@
<Property Id='ARPHELPLINK' Value='https://www.nushell.sh/book/'/> <Property Id='ARPHELPLINK' Value='https://www.nushell.sh/book/'/>
<!-- for Value, see https://learn.microsoft.com/en-ca/windows/win32/msi/formatted -->
<SetProperty <SetProperty
Id="ReplacePathsInWindowsTerminalProfile" Id="ReplacePathsInWindowsTerminalProfile"
Sequence="execute" Sequence="execute"
Value="&quot;[#exe0]&quot; -c &quot;open `[#WindowsTerminalProfileFile]` | update profiles.commandline `[#exe0]` | update profiles.icon `[#icon0]` | save -f `[#WindowsTerminalProfileFile]`&quot;" Value="&quot;[#exe0]&quot; -c &quot;let doc = (open `[#WindowsTerminalProfileFile]` | update profiles.commandline `[#exe0]` | update profiles.icon `[#icon0]`); $doc | save -f `[#WindowsTerminalProfileFile]`&quot;"
After='CostFinalize'/> After='CostFinalize'/>
<CustomAction <CustomAction
Id="ReplacePathsInWindowsTerminalProfile" Id="ReplacePathsInWindowsTerminalProfile"