From 4c2f08c726a44d96d3e8107ffd3f86217f8ce39c Mon Sep 17 00:00:00 2001 From: Jan De Dobbeleer Date: Sun, 24 Nov 2024 19:29:56 +0100 Subject: [PATCH] feat(install): migrate to MSI --- website/static/install.ps1 | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/website/static/install.ps1 b/website/static/install.ps1 index 5be575b2..01676d82 100644 --- a/website/static/install.ps1 +++ b/website/static/install.ps1 @@ -30,17 +30,17 @@ https://ohmyposh.dev/docs/installation/linux $installer = '' $arch = (Get-CimInstance -Class Win32_Processor -Property Architecture).Architecture | Select-Object -First 1 switch ($arch) { - 0 { $installer = "install-386.exe" } # x86 - 5 { $installer = "install-arm64.exe" } # ARM + 0 { $installer = "install-x86.msi" } # x86 + 5 { $installer = "install-arm64.msi" } # ARM 9 { if ([Environment]::Is64BitOperatingSystem) { - $installer = "install-amd64.exe" + $installer = "install-x64.msi" } else { - $installer = "install-386.exe" + $installer = "install-x86.msi" } } - 12 { $installer = "install-arm64.exe" } # Surface Pro X + 12 { $installer = "install-arm64.msi" } # Surface Pro X } if ([string]::IsNullOrEmpty($installer)) { @@ -73,11 +73,11 @@ catch { Invoke-WebRequest -OutFile $tmp $url Write-Host 'Running installer...' -$installMode = "/CURRENTUSER" +$installMode = "" if ($AllUsers) { - $installMode = "/ALLUSERS" + $installMode = "ALLUSERS=1" } -& "$tmp" /VERYSILENT $installMode | Out-Null +& "$tmp" /quiet INSTALLER=script $installMode | Out-Null $tmp | Remove-Item Write-Host @' Done!