Skip to content

Commit 2b2d55d

Browse files
claudeJanDeDobbeleer
authored andcommitted
docs(windows): derive App Installer architecture from the environment
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01X95PpvsxLn7q5S54kTPYhY
1 parent 372d35f commit 2b2d55d

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

website/docs/installation/windows.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,10 @@ without any interaction needed.
6060
Open a PowerShell prompt and run the following command:
6161

6262
```powershell
63-
Add-AppxPackage -AppInstallerFile https://cdn.ohmyposh.dev/releases/latest/install-x64.appinstaller
63+
$arch = if ([System.Runtime.InteropServices.RuntimeInformation]::OSArchitecture -eq 'Arm64') { 'arm64' } else { 'x64' }
64+
Add-AppxPackage -AppInstallerFile "https://cdn.ohmyposh.dev/releases/latest/install-$arch.appinstaller"
6465
```
6566

66-
For ARM64, use `install-arm64.appinstaller` instead.
67-
6867
</TabItem>
6968
<TabItem value="chocolatey">
7069

@@ -111,7 +110,8 @@ No action needed, Windows updates Oh My Posh automatically in the background.
111110
To force an update check, run the install command again:
112111

113112
```powershell
114-
Add-AppxPackage -AppInstallerFile https://cdn.ohmyposh.dev/releases/latest/install-x64.appinstaller
113+
$arch = if ([System.Runtime.InteropServices.RuntimeInformation]::OSArchitecture -eq 'Arm64') { 'arm64' } else { 'x64' }
114+
Add-AppxPackage -AppInstallerFile "https://cdn.ohmyposh.dev/releases/latest/install-$arch.appinstaller"
115115
```
116116

117117
</TabItem>

0 commit comments

Comments
 (0)