From 71622f264e2cb418745c3f31355e548ec0d1d229 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Sun, 13 Oct 2024 22:07:44 +0200 Subject: [PATCH] Force installation of drivers and setup programs --- scripts/Arch/OS/install.fish | 2 +- scripts/Arch/Software/base-devel/main.fish | 2 +- scripts/Arch/Software/pacman/main.fish | 2 +- scripts/Arch/Software/sudo/main.fish | 2 +- scripts/Arch/Software/yay/main.fish | 2 +- scripts/Windows/Drivers/AMDChipsetX399/Main.ps1 | 2 +- scripts/Windows/Drivers/Predator Z301C/Main.ps1 | 2 +- .../Drivers/ROG Zenith Extreme Alpha/AMDChipsetX399/Main.ps1 | 2 +- .../Drivers/ROG Zenith Extreme Alpha/IntelBluetooth/Main.ps1 | 2 +- .../Windows/Drivers/ROG Zenith Extreme Alpha/IntelWiFi/Main.ps1 | 2 +- .../Drivers/ROG Zenith Extreme Alpha/MarvellEthernet/Main.ps1 | 2 +- scripts/Windows/Drivers/Tobii EyeX/Main.ps1 | 2 +- scripts/Windows/Software/pinned-item/Main.ps1 | 2 +- scripts/Windows/Software/windows/Main.ps1 | 2 +- scripts/Windows/Software/winget/Main.ps1 | 2 +- 15 files changed, 15 insertions(+), 15 deletions(-) diff --git a/scripts/Arch/OS/install.fish b/scripts/Arch/OS/install.fish index dc323e1d..53f6cdea 100755 --- a/scripts/Arch/OS/install.fish +++ b/scripts/Arch/OS/install.fish @@ -17,7 +17,7 @@ begin and source "$dir/../Software/pacman/main.fish" and source "$dir/../Software/yay/main.fish" - and source "$dir/../Software/powershell/main.fish" + and source "$dir/../Software/powershell/main.fish" --force and yayinst \ linux-headers \ diff --git a/scripts/Arch/Software/base-devel/main.fish b/scripts/Arch/Software/base-devel/main.fish index 1032e8a5..9728e053 100755 --- a/scripts/Arch/Software/base-devel/main.fish +++ b/scripts/Arch/Software/base-devel/main.fish @@ -19,5 +19,5 @@ begin end end - runInstaller $argv + runInstaller --force $argv end diff --git a/scripts/Arch/Software/pacman/main.fish b/scripts/Arch/Software/pacman/main.fish index eab7a01a..9fead58b 100755 --- a/scripts/Arch/Software/pacman/main.fish +++ b/scripts/Arch/Software/pacman/main.fish @@ -22,5 +22,5 @@ begin sudo pacman -Sy end - runInstaller $argv + runInstaller --force $argv end diff --git a/scripts/Arch/Software/sudo/main.fish b/scripts/Arch/Software/sudo/main.fish index 51f4c1f5..448fa45c 100755 --- a/scripts/Arch/Software/sudo/main.fish +++ b/scripts/Arch/Software/sudo/main.fish @@ -11,5 +11,5 @@ begin echo "%wheel ALL=(ALL:ALL) ALL" | sudo tee /etc/sudoers.d/wheel >/dev/null end - runInstaller $argv + runInstaller --force $argv end diff --git a/scripts/Arch/Software/yay/main.fish b/scripts/Arch/Software/yay/main.fish index a3c92bef..5c693b4d 100755 --- a/scripts/Arch/Software/yay/main.fish +++ b/scripts/Arch/Software/yay/main.fish @@ -17,5 +17,5 @@ begin end end - runInstaller $argv + runInstaller --force $argv end diff --git a/scripts/Windows/Drivers/AMDChipsetX399/Main.ps1 b/scripts/Windows/Drivers/AMDChipsetX399/Main.ps1 index a202c1a6..aaed46be 100644 --- a/scripts/Windows/Drivers/AMDChipsetX399/Main.ps1 +++ b/scripts/Windows/Drivers/AMDChipsetX399/Main.ps1 @@ -1,6 +1,6 @@ . "$PSScriptRoot/../../../Common/Scripts/Software.ps1"; -Start-SoftwareInstaller @args ` +Start-SoftwareInstaller -Force @args ` -Installer { Install-AmdPackage "https://www.amd.com/en/support/downloads/drivers.html/chipsets/tr4/x399.html"; }; diff --git a/scripts/Windows/Drivers/Predator Z301C/Main.ps1 b/scripts/Windows/Drivers/Predator Z301C/Main.ps1 index aba7faae..22c28c04 100644 --- a/scripts/Windows/Drivers/Predator Z301C/Main.ps1 +++ b/scripts/Windows/Drivers/Predator Z301C/Main.ps1 @@ -1,7 +1,7 @@ . "$PSScriptRoot/../../../Common/Scripts/Software.ps1"; . "$PSScriptRoot/../../../Common/Scripts/System.ps1"; -Start-SoftwareInstaller @args ` +Start-SoftwareInstaller -Force @args ` -Installer { $dir = New-TemporaryDirectory; $file = "driver.zip"; diff --git a/scripts/Windows/Drivers/ROG Zenith Extreme Alpha/AMDChipsetX399/Main.ps1 b/scripts/Windows/Drivers/ROG Zenith Extreme Alpha/AMDChipsetX399/Main.ps1 index 702a57d8..74fafb46 100644 --- a/scripts/Windows/Drivers/ROG Zenith Extreme Alpha/AMDChipsetX399/Main.ps1 +++ b/scripts/Windows/Drivers/ROG Zenith Extreme Alpha/AMDChipsetX399/Main.ps1 @@ -1,6 +1,6 @@ . "$PSScriptRoot/../../../../Common/Scripts/Software.ps1"; -Start-SoftwareInstaller @args ` +Start-SoftwareInstaller -Force @args ` -Installer { Install-AsusPackage "https://dlcdnets.asus.com/pub/ASUS/mb/03CHIPSET/DRV_Chipset_AMD_TRX40_TP_TSD_W10_64_V30901140_20211006R.zip?model=ROG%20ZENITH%20EXTREME%20ALPHA"; }; diff --git a/scripts/Windows/Drivers/ROG Zenith Extreme Alpha/IntelBluetooth/Main.ps1 b/scripts/Windows/Drivers/ROG Zenith Extreme Alpha/IntelBluetooth/Main.ps1 index 1e0dc184..2cf9e651 100644 --- a/scripts/Windows/Drivers/ROG Zenith Extreme Alpha/IntelBluetooth/Main.ps1 +++ b/scripts/Windows/Drivers/ROG Zenith Extreme Alpha/IntelBluetooth/Main.ps1 @@ -1,6 +1,6 @@ . "$PSScriptRoot/../../../../Common/Scripts/Software.ps1"; -Start-SoftwareInstaller @args ` +Start-SoftwareInstaller -Force @args ` -Installer { Install-AsusPackage "https://dlcdnets.asus.com/pub/ASUS/mb/02BT/DRV_Bluetooth_Intel_9260_TP_W11_64_V2210002_20211222R.zip?model=ROG%20ZENITH%20EXTREME%20ALPHA"; }; diff --git a/scripts/Windows/Drivers/ROG Zenith Extreme Alpha/IntelWiFi/Main.ps1 b/scripts/Windows/Drivers/ROG Zenith Extreme Alpha/IntelWiFi/Main.ps1 index 45c4b209..8656cf9a 100644 --- a/scripts/Windows/Drivers/ROG Zenith Extreme Alpha/IntelWiFi/Main.ps1 +++ b/scripts/Windows/Drivers/ROG Zenith Extreme Alpha/IntelWiFi/Main.ps1 @@ -1,6 +1,6 @@ . "$PSScriptRoot/../../../../Common/Scripts/Software.ps1"; -Start-SoftwareInstaller @args ` +Start-SoftwareInstaller -Force @args ` -Installer { Install-AsusPackage "https://dlcdnets.asus.com/pub/ASUS/mb/08WIRELESS/DRV_WiFi_Intel_TP_W11_64_V2219004_20230130R.zip?model=ROG%20ZENITH%20EXTREME%20ALPHA"; }; diff --git a/scripts/Windows/Drivers/ROG Zenith Extreme Alpha/MarvellEthernet/Main.ps1 b/scripts/Windows/Drivers/ROG Zenith Extreme Alpha/MarvellEthernet/Main.ps1 index beba9f5b..88dec5d6 100644 --- a/scripts/Windows/Drivers/ROG Zenith Extreme Alpha/MarvellEthernet/Main.ps1 +++ b/scripts/Windows/Drivers/ROG Zenith Extreme Alpha/MarvellEthernet/Main.ps1 @@ -1,6 +1,6 @@ . "$PSScriptRoot/../../../../Common/Scripts/Software.ps1"; -Start-SoftwareInstaller @args ` +Start-SoftwareInstaller -Force @args ` -Installer { Install-AsusPackage "https://dlcdnets.asus.com/pub/ASUS/mb/04LAN/DRV_LAN_Marvell_TP_TSD_W11_64_V3130_20211118R.zip?model=ROG%20ZENITH%20EXTREME%20ALPHA"; }; diff --git a/scripts/Windows/Drivers/Tobii EyeX/Main.ps1 b/scripts/Windows/Drivers/Tobii EyeX/Main.ps1 index 441ebee9..59c88803 100644 --- a/scripts/Windows/Drivers/Tobii EyeX/Main.ps1 +++ b/scripts/Windows/Drivers/Tobii EyeX/Main.ps1 @@ -8,7 +8,7 @@ "$softwarePath/tobii-gamehub/Main.ps1" ); - Start-SoftwareInstaller @args ` + Start-SoftwareInstaller -Force @args ` -Installer { Install-SetupPackage -Source "https://files.update.tech.tobii.com/Tobii_Eye_Tracking_Core_v2.16.8.214_x86.exe"; diff --git a/scripts/Windows/Software/pinned-item/Main.ps1 b/scripts/Windows/Software/pinned-item/Main.ps1 index 7bc3712f..d0092202 100644 --- a/scripts/Windows/Software/pinned-item/Main.ps1 +++ b/scripts/Windows/Software/pinned-item/Main.ps1 @@ -10,7 +10,7 @@ foreach ($key in $PSBoundParameters.Keys) { $context = $parameters.context; $context.Add("Installer", $parameters.installer); -Start-SoftwareInstaller @args @parameters -Installer { +Start-SoftwareInstaller -Force @args @parameters -Installer { param( [hashtable] $Context ) diff --git a/scripts/Windows/Software/windows/Main.ps1 b/scripts/Windows/Software/windows/Main.ps1 index ceef0fe6..8aced1b2 100644 --- a/scripts/Windows/Software/windows/Main.ps1 +++ b/scripts/Windows/Software/windows/Main.ps1 @@ -27,7 +27,7 @@ using namespace Microsoft.Win32; [string[]] $homeExclusions = Get-Content "$PSScriptRoot/Home.exclude.txt"; - Start-SoftwareInstaller @args ` + Start-SoftwareInstaller -Force @args ` -Backup { Add-BackupArtifacts -Source "$env:PUBLIC" -Path "Public" ` -Include ($userFolders) ` diff --git a/scripts/Windows/Software/winget/Main.ps1 b/scripts/Windows/Software/winget/Main.ps1 index 71c871e0..98451f86 100644 --- a/scripts/Windows/Software/winget/Main.ps1 +++ b/scripts/Windows/Software/winget/Main.ps1 @@ -1,6 +1,6 @@ . "$PSScriptRoot/../../../Common/Scripts/Software.ps1"; -Start-SoftwareInstaller @args ` +Start-SoftwareInstaller -Force @args ` -Installer { $xamlDownloadLink = "https://github.com/microsoft/microsoft-ui-xaml/releases/download/v2.8.6/Microsoft.UI.Xaml.2.8.x64.appx"; $downloadLink = "https://github.com/microsoft/winget-cli/releases/latest/download/Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle";