Redirect parameters using args
This commit is contained in:
parent
68e679224f
commit
14b0ffe24b
|
@ -14,8 +14,11 @@ $null = New-Module {
|
|||
[scriptblock] $Configurator = $null,
|
||||
[scriptblock] $UserBackup = $null,
|
||||
[scriptblock] $UserConfigurator = $null,
|
||||
[Parameter(Position = 0)]
|
||||
[Nullable[InstallerAction]] $Action,
|
||||
[Parameter(Position = 1)]
|
||||
[hashtable] $Arguments,
|
||||
[Parameter()]
|
||||
[hashtable] $Context
|
||||
)
|
||||
|
||||
|
|
|
@ -1,14 +1,9 @@
|
|||
param (
|
||||
$Action,
|
||||
[hashtable] $Arguments
|
||||
)
|
||||
|
||||
. "$PSScriptRoot/../aliae/Manage.ps1";
|
||||
. "$PSScriptRoot/../PowerShell/Profile.ps1";
|
||||
. "$PSScriptRoot/../../Scripts/Software.ps1";
|
||||
. "$PSScriptRoot/../../Types/InstallerAction.ps1";
|
||||
|
||||
Start-SoftwareInstaller @PSBoundParameters `
|
||||
Start-SoftwareInstaller @args `
|
||||
-Configurator {
|
||||
param([string] $Name)
|
||||
|
||||
|
|
|
@ -1,13 +1,8 @@
|
|||
param (
|
||||
$Action,
|
||||
[hashtable] $Arguments
|
||||
)
|
||||
|
||||
. "$PSScriptRoot/../../Scripts/Software.ps1";
|
||||
. "$PSScriptRoot/../../Software/PowerShell/Profile.ps1";
|
||||
. "$PSScriptRoot/../../Types/InstallerAction.ps1";
|
||||
|
||||
Start-SoftwareInstaller @PSBoundParameters `
|
||||
Start-SoftwareInstaller @args `
|
||||
-Configurator {
|
||||
[string] $globalDir = $null;
|
||||
$indicator = "# Profile Files";
|
||||
|
|
|
@ -1,15 +1,5 @@
|
|||
param (
|
||||
$Action,
|
||||
[hashtable] $Arguments
|
||||
)
|
||||
|
||||
. "$PSScriptRoot/../PowerShell/Module.ps1";
|
||||
. "$PSScriptRoot/../../Scripts/Software.ps1";
|
||||
|
||||
$parameters = Get-ModuleInstallerComponents "Terminal-Icons";
|
||||
|
||||
foreach ($key in $PSBoundParameters.Keys) {
|
||||
$parameters.Add($key, $PSBoundParameters[$key]);
|
||||
}
|
||||
|
||||
Start-SoftwareInstaller @parameters;
|
||||
Start-SoftwareInstaller @args @parameters;
|
||||
|
|
|
@ -1,13 +1,8 @@
|
|||
param(
|
||||
$Action,
|
||||
[hashtable] $Arguments
|
||||
)
|
||||
|
||||
. "$PSScriptRoot/Constants.ps1";
|
||||
. "$PSScriptRoot/../PowerShell/Profile.ps1";
|
||||
. "$PSScriptRoot/../../Scripts/Software.ps1";
|
||||
|
||||
Start-SoftwareInstaller @PSBoundParameters `
|
||||
Start-SoftwareInstaller @args `
|
||||
-Configurator {
|
||||
param([string] $Name)
|
||||
. "$PSScriptRoot/Constants.ps1";
|
||||
|
|
|
@ -1,17 +1,8 @@
|
|||
param (
|
||||
$Action,
|
||||
[hashtable] $Arguments
|
||||
)
|
||||
|
||||
. "$PSScriptRoot/../../Scripts/Software.ps1";
|
||||
. "$PSScriptRoot/../../Scripts/System.ps1";
|
||||
. "$PSScriptRoot/../../Types/InstallerAction.ps1";
|
||||
|
||||
& {
|
||||
param(
|
||||
[hashtable] $Parameters
|
||||
)
|
||||
|
||||
$configure = {
|
||||
param(
|
||||
[string] $User
|
||||
|
@ -100,9 +91,9 @@ param (
|
|||
}
|
||||
};
|
||||
|
||||
Start-SoftwareInstaller @Parameters `
|
||||
Start-SoftwareInstaller @args `
|
||||
-Configurator {
|
||||
& $configure;
|
||||
& $configure @args;
|
||||
} `
|
||||
-UserConfigurator {
|
||||
param(
|
||||
|
@ -111,4 +102,4 @@ param (
|
|||
|
||||
& $configure -User $Arguments.Name;
|
||||
};
|
||||
} $PSBoundParameters;
|
||||
} @args;
|
||||
|
|
|
@ -1,15 +1,5 @@
|
|||
param (
|
||||
$Action,
|
||||
[hashtable] $Arguments
|
||||
)
|
||||
|
||||
. "$PSScriptRoot/../PowerShell/Module.ps1";
|
||||
. "$PSScriptRoot/../../Scripts/Software.ps1";
|
||||
|
||||
$parameters = Get-ModuleInstallerComponents "posh-git";
|
||||
|
||||
foreach ($key in $PSBoundParameters.Keys) {
|
||||
$parameters.Add($key, $PSBoundParameters[$key]);
|
||||
}
|
||||
|
||||
Start-SoftwareInstaller @parameters;
|
||||
Start-SoftwareInstaller @args @parameters;
|
||||
|
|
|
@ -1,12 +1,7 @@
|
|||
param(
|
||||
$Action,
|
||||
[hashtable] $Arguments
|
||||
)
|
||||
|
||||
. "$PSScriptRoot/../../../Common/Scripts/Software.ps1";
|
||||
. "$PSScriptRoot/../../../Common/Scripts/SoftwareManagement.ps1";
|
||||
|
||||
Start-SoftwareInstaller @PSBoundParameters `
|
||||
Start-SoftwareInstaller @args `
|
||||
-UserConfigurator {
|
||||
param(
|
||||
$Arguments
|
||||
|
|
|
@ -1,12 +1,7 @@
|
|||
param(
|
||||
$Action,
|
||||
[hashtable] $Arguments
|
||||
)
|
||||
|
||||
. "$PSScriptRoot/../PowerShell/Profile.ps1";
|
||||
. "$PSScriptRoot/../../Scripts/Software.ps1";
|
||||
|
||||
Start-SoftwareInstaller @PSBoundParameters `
|
||||
Start-SoftwareInstaller @args `
|
||||
-Configurator {
|
||||
param([string] $Name)
|
||||
|
||||
|
|
|
@ -1,11 +1,6 @@
|
|||
param(
|
||||
$Action,
|
||||
[hashtable] $Arguments
|
||||
)
|
||||
|
||||
. "$PSScriptRoot/../../../Common/Scripts/Software.ps1";
|
||||
|
||||
Start-SoftwareInstaller @PSBoundParameters `
|
||||
Start-SoftwareInstaller @args `
|
||||
-Installer {
|
||||
Install-AmdPackage "https://www.amd.com/en/support/downloads/drivers.html/chipsets/tr4/x399.html";
|
||||
};
|
||||
|
|
|
@ -1,12 +1,7 @@
|
|||
param(
|
||||
$Action,
|
||||
[hashtable] $Arguments
|
||||
)
|
||||
|
||||
. "$PSScriptRoot/../../../Common/Scripts/Software.ps1";
|
||||
. "$PSScriptRoot/../../../Common/Scripts/System.ps1";
|
||||
|
||||
Start-SoftwareInstaller @PSBoundParameters `
|
||||
Start-SoftwareInstaller @args `
|
||||
-Installer {
|
||||
$dir = New-TemporaryDirectory;
|
||||
$file = "driver.zip";
|
||||
|
|
|
@ -1,11 +1,6 @@
|
|||
param(
|
||||
$Action,
|
||||
[hashtable] $Arguments
|
||||
)
|
||||
|
||||
. "$PSScriptRoot/../../../../Common/Scripts/Software.ps1";
|
||||
|
||||
Start-SoftwareInstaller @PSBoundParameters `
|
||||
Start-SoftwareInstaller @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";
|
||||
};
|
||||
|
|
|
@ -1,11 +1,6 @@
|
|||
param(
|
||||
$Action,
|
||||
[hashtable] $Arguments
|
||||
)
|
||||
|
||||
. "$PSScriptRoot/../../../../Common/Scripts/Software.ps1";
|
||||
|
||||
Start-SoftwareInstaller @PSBoundParameters `
|
||||
Start-SoftwareInstaller @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";
|
||||
};
|
||||
|
|
|
@ -1,11 +1,6 @@
|
|||
param(
|
||||
$Action,
|
||||
[hashtable] $Arguments
|
||||
)
|
||||
|
||||
. "$PSScriptRoot/../../../../Common/Scripts/Software.ps1";
|
||||
|
||||
Start-SoftwareInstaller @PSBoundParameters `
|
||||
Start-SoftwareInstaller @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";
|
||||
};
|
||||
|
|
|
@ -1,11 +1,6 @@
|
|||
param(
|
||||
$Action,
|
||||
[hashtable] $Arguments
|
||||
)
|
||||
|
||||
. "$PSScriptRoot/../../../../Common/Scripts/Software.ps1";
|
||||
|
||||
Start-SoftwareInstaller @PSBoundParameters `
|
||||
Start-SoftwareInstaller @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";
|
||||
};
|
||||
|
|
|
@ -1,11 +1,4 @@
|
|||
param(
|
||||
$Action,
|
||||
[hashtable] $Arguments
|
||||
)
|
||||
|
||||
& {
|
||||
param($parameters);
|
||||
|
||||
. "$PSScriptRoot/../../Scripts/SoftwareManagement.ps1";
|
||||
. "$PSScriptRoot/../../../Common/Scripts/Software.ps1";
|
||||
$softwarePath = "$PSScriptRoot/../../Software";
|
||||
|
@ -15,7 +8,7 @@ param(
|
|||
"$softwarePath/TobiiGameHub/Manage.ps1"
|
||||
);
|
||||
|
||||
Start-SoftwareInstaller @parameters `
|
||||
Start-SoftwareInstaller @args `
|
||||
-Installer {
|
||||
Install-SetupPackage -Source "https://files.update.tech.tobii.com/Tobii_Eye_Tracking_Core_v2.16.8.214_x86.exe";
|
||||
|
||||
|
@ -28,4 +21,4 @@ param(
|
|||
. $script -Action ([InstallerAction]::ConfigureUser) @parameters;
|
||||
}
|
||||
};
|
||||
} $PSBoundParameters;
|
||||
} @args;
|
||||
|
|
|
@ -1,13 +1,8 @@
|
|||
param (
|
||||
$Action,
|
||||
[hashtable] $Arguments
|
||||
)
|
||||
|
||||
. "$PSScriptRoot/../../Scripts/SoftwareManagement.ps1";
|
||||
. "$PSScriptRoot/../../../Common/Scripts/Software.ps1";
|
||||
. "$PSScriptRoot/../../../Common/Types/InstallerAction.ps1";
|
||||
|
||||
Start-SoftwareInstaller @PSBoundParameters `
|
||||
Start-SoftwareInstaller @args `
|
||||
-Installer {
|
||||
Install-ChocoPackage vcredist140;
|
||||
Install-SetupPackage "https://github.com/bobranten/Ext4Fsd/releases/download/v0.71/Ext2Fsd-0.71-setup.exe";
|
||||
|
|
|
@ -1,13 +1,8 @@
|
|||
param(
|
||||
$Action,
|
||||
[hashtable] $Arguments
|
||||
)
|
||||
|
||||
. "$PSScriptRoot/../../Scripts/AppAssociations.ps1";
|
||||
. "$PSScriptRoot/../../Scripts/SoftwareManagement.ps1";
|
||||
. "$PSScriptRoot/../../../Common/Scripts/Software.ps1";
|
||||
|
||||
Start-SoftwareInstaller @PSBoundParameters `
|
||||
Start-SoftwareInstaller @args `
|
||||
-Installer {
|
||||
Install-ChocoPackage firefox;
|
||||
} `
|
||||
|
|
|
@ -1,10 +1,4 @@
|
|||
param(
|
||||
$Action,
|
||||
[hashtable] $Arguments
|
||||
)
|
||||
|
||||
& {
|
||||
param ($Parameters)
|
||||
. "$PSScriptRoot/../../Scripts/Restoration.ps1";
|
||||
. "$PSScriptRoot/../../Scripts/SoftwareManagement.ps1";
|
||||
. "$PSScriptRoot/../../../Common/Scripts/Software.ps1";
|
||||
|
@ -57,7 +51,7 @@ param(
|
|||
}
|
||||
}
|
||||
|
||||
Start-SoftwareInstaller @Parameters `
|
||||
Start-SoftwareInstaller @args `
|
||||
-Installer {
|
||||
Install-ChocoPackage lghub;
|
||||
Remove-DesktopIcon "*G HUB*";
|
||||
|
@ -83,4 +77,4 @@ param(
|
|||
Expand-BackupArtifacts -User $Arguments.Name -Path "$Name" -Target $configPath;
|
||||
};
|
||||
};
|
||||
} $PSBoundParameters;
|
||||
} @args;
|
||||
|
|
|
@ -1,12 +1,7 @@
|
|||
param(
|
||||
$Action,
|
||||
[hashtable] $Arguments
|
||||
)
|
||||
|
||||
. "$PSScriptRoot/../../Scripts/SoftwareManagement.ps1";
|
||||
. "$PSScriptRoot/../../../Common/Scripts/Software.ps1";
|
||||
|
||||
Start-SoftwareInstaller @PSBoundParameters `
|
||||
Start-SoftwareInstaller @args `
|
||||
-Installer {
|
||||
Install-ChocoPackage MSEdgeRedirect;
|
||||
} `
|
||||
|
|
|
@ -1,17 +1,11 @@
|
|||
param(
|
||||
$Action,
|
||||
[hashtable] $Arguments
|
||||
)
|
||||
|
||||
& {
|
||||
param($Parameters)
|
||||
. "$PSScriptRoot/../../Scripts/Restoration.ps1";
|
||||
. "$PSScriptRoot/../../Scripts/SoftwareManagement.ps1";
|
||||
. "$PSScriptRoot/../../../Common/Scripts/Software.ps1";
|
||||
. "$PSScriptRoot/../../../Common/Scripts/System.ps1";
|
||||
$path = "$HOME/Documents/ManiaPlanet";
|
||||
|
||||
Start-SoftwareInstaller @Parameters `
|
||||
Start-SoftwareInstaller @args `
|
||||
-Installer {
|
||||
Install-WingetPackage Nadeo.ManiaPlanet;
|
||||
Remove-DesktopIcon "ManiaPlanet*";
|
||||
|
@ -44,4 +38,4 @@ param(
|
|||
|
||||
Expand-BackupArtifacts -User $Arguments.Name -Path "$Name" -Target $path;
|
||||
};
|
||||
} $PSBoundParameters;
|
||||
} @args;
|
||||
|
|
|
@ -1,16 +1,11 @@
|
|||
using namespace System.Security.AccessControl;
|
||||
using namespace System.Security.Principal;
|
||||
|
||||
param(
|
||||
$Action,
|
||||
[hashtable] $Arguments
|
||||
)
|
||||
|
||||
. "$PSScriptRoot/../../Scripts/Security.ps1";
|
||||
. "$PSScriptRoot/../../../Common/Scripts/Software.ps1";
|
||||
. "$PSScriptRoot/../../../Common/Types/InstallerAction.ps1";
|
||||
|
||||
Start-SoftwareInstaller @PSBoundParameters `
|
||||
Start-SoftwareInstaller @args `
|
||||
-Installer {
|
||||
$env:NVS_HOME = "$env:ProgramData\nvs";
|
||||
git clone "https://github.com/jasongin/nvs.git" $env:NVS_HOME;
|
||||
|
|
|
@ -1,14 +1,7 @@
|
|||
param(
|
||||
$Action,
|
||||
[hashtable] $Arguments
|
||||
)
|
||||
|
||||
. "$PSScriptRoot/../../Scripts/PowerManagement.ps1";
|
||||
. "$PSScriptRoot/../../../Common/Scripts/Software.ps1";
|
||||
|
||||
& {
|
||||
param($Parameters)
|
||||
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Gets the path to the Nextcloud configuration file.
|
||||
|
@ -85,7 +78,7 @@ param(
|
|||
}
|
||||
|
||||
|
||||
Start-SoftwareInstaller @Parameters `
|
||||
Start-SoftwareInstaller @args `
|
||||
-Installer {
|
||||
Install-ChocoPackage nextcloud-client -ArgumentList "-y","--params='/KeepUpdateCheck'";
|
||||
} `
|
||||
|
@ -122,4 +115,4 @@ param(
|
|||
}
|
||||
};
|
||||
};
|
||||
} $PSBoundParameters;
|
||||
} @args;
|
||||
|
|
|
@ -1,24 +1,18 @@
|
|||
param (
|
||||
$Action,
|
||||
[hashtable] $Arguments
|
||||
)
|
||||
|
||||
. "$PSScriptRoot/../../Scripts/SoftwareManagement.ps1";
|
||||
. "$PSScriptRoot/../../../Common/Scripts/Software.ps1";
|
||||
. "$PSScriptRoot/../../../Common/Types/InstallerAction.ps1";
|
||||
|
||||
& {
|
||||
param($Parameters)
|
||||
$base = "$PSScriptRoot/../../../Common/Software/Oh My Posh/Manage.ps1";
|
||||
|
||||
Start-SoftwareInstaller @Parameters `
|
||||
Start-SoftwareInstaller @args `
|
||||
-Installer {
|
||||
Install-WingetPackage JanDeDobbeleer.OhMyPosh -ArgumentList "--scope","machine";
|
||||
} `
|
||||
-Configurator {
|
||||
. $base -Action ([InstallerAction]::Configure);
|
||||
. $base -Action ([InstallerAction]::Configure) @args;
|
||||
} `
|
||||
-UserConfigurator {
|
||||
. $base -Action ([InstallerAction]::ConfigureUser);
|
||||
. $base -Action ([InstallerAction]::ConfigureUser) @args;
|
||||
};
|
||||
} $PSBoundParameters;
|
||||
} @args;
|
||||
|
|
|
@ -1,13 +1,8 @@
|
|||
using namespace Microsoft.Win32;
|
||||
|
||||
param(
|
||||
$Action,
|
||||
[hashtable] $Arguments
|
||||
)
|
||||
|
||||
. "$PSScriptRoot/../../../Common/Scripts/Software.ps1";
|
||||
|
||||
Start-SoftwareInstaller @PSBoundParameters `
|
||||
Start-SoftwareInstaller @args `
|
||||
-Configurator {
|
||||
Set-Service ssh-agent -StartupType AutomaticDelayedStart;
|
||||
};
|
||||
|
|
|
@ -1,8 +1,3 @@
|
|||
param (
|
||||
$Action,
|
||||
[hashtable] $Arguments
|
||||
)
|
||||
|
||||
. "$PSScriptRoot/../../../Common/Scripts/Software.ps1";
|
||||
. "$PSScriptRoot/../../../Common/Software/PowerShell/Module.ps1";
|
||||
|
||||
|
@ -15,7 +10,7 @@ foreach ($key in $PSBoundParameters.Keys) {
|
|||
$context = $parameters.context;
|
||||
$context.Add("Installer", $parameters.installer);
|
||||
|
||||
Start-SoftwareInstaller @parameters -Installer {
|
||||
Start-SoftwareInstaller @args @parameters -Installer {
|
||||
param(
|
||||
[hashtable] $Context
|
||||
)
|
||||
|
|
|
@ -1,12 +1,7 @@
|
|||
param (
|
||||
$Action,
|
||||
[hashtable] $Arguments
|
||||
)
|
||||
|
||||
. "$PSScriptRoot/../../../Common/Scripts/Software.ps1";
|
||||
. "$PSScriptRoot/../../../Common/Types/InstallerAction.ps1";
|
||||
|
||||
Start-SoftwareInstaller @PSBoundParameters `
|
||||
Start-SoftwareInstaller @args `
|
||||
-Configurator {
|
||||
. "$PSScriptRoot/../../../Common/Software/PowerShell/Manage.ps1" `
|
||||
-Action ([InstallerAction]::Configure);
|
||||
|
|
|
@ -1,16 +1,11 @@
|
|||
using namespace Microsoft.Win32;
|
||||
|
||||
param(
|
||||
$Action,
|
||||
[hashtable] $Arguments
|
||||
)
|
||||
|
||||
. "$PSScriptRoot/../../Scripts/Restoration.ps1";
|
||||
. "$PSScriptRoot/../../Scripts/SoftwareManagement.ps1";
|
||||
. "$PSScriptRoot/../../../Common/Scripts/Software.ps1";
|
||||
. "$PSScriptRoot/../../../Common/Scripts/System.ps1";
|
||||
|
||||
Start-SoftwareInstaller @PSBoundParameters `
|
||||
Start-SoftwareInstaller @args `
|
||||
-Installer {
|
||||
Install-ChocoPackage putty;
|
||||
} `
|
||||
|
|
|
@ -1,17 +1,11 @@
|
|||
param(
|
||||
$Action,
|
||||
[hashtable] $Arguments
|
||||
)
|
||||
|
||||
& {
|
||||
param($Parameters)
|
||||
. "$PSScriptRoot/../../Scripts/Restoration.ps1";
|
||||
. "$PSScriptRoot/../../Scripts/SoftwareManagement.ps1";
|
||||
. "$PSScriptRoot/../../../Common/Scripts/Software.ps1";
|
||||
. "$PSScriptRoot/../../../Common/Scripts/System.ps1";
|
||||
$path = "C:/tools/RetroArch-Win64";
|
||||
|
||||
Start-SoftwareInstaller @Parameters `
|
||||
Start-SoftwareInstaller @args `
|
||||
-Backup {
|
||||
param([string] $Name)
|
||||
|
||||
|
@ -36,4 +30,4 @@ param(
|
|||
Add-StartMenuIcon "RetroArch" "C:\tools\RetroArch-Win64\retroarch.exe";
|
||||
Expand-BackupArtifacts -Path "$Name" -Target $path;
|
||||
};
|
||||
} $PSBoundParameters;
|
||||
} @args;
|
||||
|
|
|
@ -1,15 +1,10 @@
|
|||
using namespace Microsoft.Win32;
|
||||
|
||||
param(
|
||||
$Action,
|
||||
[hashtable] $Arguments
|
||||
)
|
||||
|
||||
. "$PSScriptRoot/../../Scripts/AppAssociations.ps1";
|
||||
. "$PSScriptRoot/../../Scripts/SoftwareManagement.ps1";
|
||||
. "$PSScriptRoot/../../../Common/Scripts/Software.ps1";
|
||||
|
||||
Start-SoftwareInstaller @PSBoundParameters `
|
||||
Start-SoftwareInstaller @args `
|
||||
-Installer {
|
||||
Install-ChocoPackage thunderbird -ArgumentList "--params",'"/NoTaskbarShortcut /NoDesktopShortcut"'
|
||||
} `
|
||||
|
|
|
@ -1,15 +1,10 @@
|
|||
using namespace Microsoft.Win32;
|
||||
|
||||
param(
|
||||
$Action,
|
||||
[hashtable] $Arguments
|
||||
)
|
||||
|
||||
. "$PSScriptRoot/../../Scripts/SoftwareManagement.ps1";
|
||||
. "$PSScriptRoot/../../../Common/Scripts/Software.ps1";
|
||||
. "$PSScriptRoot/../../../Common/Scripts/System.ps1";
|
||||
|
||||
Start-SoftwareInstaller @PSBoundParameters `
|
||||
Start-SoftwareInstaller @args `
|
||||
-Installer {
|
||||
Install-ChocoPackage "vcredist2013";
|
||||
} `
|
||||
|
|
|
@ -1,13 +1,8 @@
|
|||
param(
|
||||
$Action,
|
||||
[hashtable] $Arguments
|
||||
)
|
||||
|
||||
. "$PSScriptRoot/../../Scripts/SoftwareManagement.ps1";
|
||||
. "$PSScriptRoot/../../../Common/Scripts/Software.ps1";
|
||||
. "$PSScriptRoot/../../../Common/Scripts/System.ps1";
|
||||
|
||||
Start-SoftwareInstaller @PSBoundParameters `
|
||||
Start-SoftwareInstaller @args `
|
||||
-Installer {
|
||||
Install-ChocoPackage "dotnet-6.0-desktopruntime";
|
||||
} `
|
||||
|
|
|
@ -1,8 +1,3 @@
|
|||
param(
|
||||
$Action,
|
||||
[hashtable] $Arguments
|
||||
)
|
||||
|
||||
. "$PSScriptRoot/../TrackMania United Forever/Manage.ps1";
|
||||
. "$PSScriptRoot/../../Scripts/SoftwareManagement.ps1";
|
||||
. "$PSScriptRoot/../../../Common/Scripts/Software.ps1";
|
||||
|
@ -14,8 +9,4 @@ $parameters = Get-TMForeverInstallerComponents `
|
|||
Install-WingetPackage Nadeo.TrackManiaNationsForever;
|
||||
};
|
||||
|
||||
foreach ($key in $PSBoundParameters.Keys) {
|
||||
$parameters.Add($key, $PSBoundParameters[$key]);
|
||||
}
|
||||
|
||||
Start-SoftwareInstaller @parameters;
|
||||
Start-SoftwareInstaller @args @parameters;
|
||||
|
|
|
@ -1,8 +1,3 @@
|
|||
param(
|
||||
$Action,
|
||||
[hashtable] $Arguments
|
||||
)
|
||||
|
||||
. "$PSScriptRoot/Manage.ps1";
|
||||
. "$PSScriptRoot/../../../Common/Scripts/Software.ps1";
|
||||
|
||||
|
@ -23,8 +18,4 @@ $parameters = Get-TMForeverInstallerComponents `
|
|||
Remove-Item -Recurse $dir;
|
||||
};
|
||||
|
||||
foreach ($key in $PSBoundParameters.Keys) {
|
||||
$parameters.Add($key, $PSBoundParameters[$key]);
|
||||
}
|
||||
|
||||
Start-SoftwareInstaller @parameters;
|
||||
Start-SoftwareInstaller @args @parameters;
|
||||
|
|
|
@ -1,13 +1,8 @@
|
|||
param(
|
||||
$Action,
|
||||
[hashtable] $Arguments
|
||||
)
|
||||
|
||||
. "$PSScriptRoot/../../Scripts/SoftwareManagement.ps1";
|
||||
. "$PSScriptRoot/../../../Common/Scripts/Software.ps1";
|
||||
. "$PSScriptRoot/../../../Common/Scripts/System.ps1";
|
||||
|
||||
Start-SoftwareInstaller @PSBoundParameters `
|
||||
Start-SoftwareInstaller @args `
|
||||
-Installer {
|
||||
Write-Information "Downgrading AutoHotkey…";
|
||||
$id = "AutoHotkey.AutoHotkey";
|
||||
|
|
|
@ -1,11 +1,4 @@
|
|||
param(
|
||||
$Action,
|
||||
[hashtable] $Arguments
|
||||
)
|
||||
|
||||
& {
|
||||
param($parameters)
|
||||
|
||||
. "$PSScriptRoot/../../Scripts/Restoration.ps1";
|
||||
. "$PSScriptRoot/../../Scripts/SoftwareManagement.ps1";
|
||||
. "$PSScriptRoot/../../../Common/Scripts/BrowserAutomation.ps1";
|
||||
|
@ -47,7 +40,7 @@ param(
|
|||
return Join-Path "$Name" "$PackageName.vsconfig";
|
||||
}
|
||||
|
||||
Start-SoftwareInstaller @parameters `
|
||||
Start-SoftwareInstaller @args `
|
||||
-Backup {
|
||||
param([string] $Name)
|
||||
|
||||
|
@ -88,4 +81,4 @@ param(
|
|||
Remove-DesktopIcon "CocosCreator*";
|
||||
Remove-DesktopIcon "Unity Hub*";
|
||||
};
|
||||
} $PSBoundParameters;
|
||||
} @args;
|
||||
|
|
|
@ -1,16 +1,11 @@
|
|||
using namespace Microsoft.Win32;
|
||||
|
||||
param(
|
||||
$Action,
|
||||
[hashtable] $Arguments
|
||||
)
|
||||
|
||||
. "$PSScriptRoot/../../Scripts/AppAssociations.ps1";
|
||||
. "$PSScriptRoot/../../Scripts/SoftwareManagement.ps1";
|
||||
. "$PSScriptRoot/../../../Common/Scripts/Software.ps1";
|
||||
. "$PSScriptRoot/../../../Common/Scripts/System.ps1";
|
||||
|
||||
Start-SoftwareInstaller @PSBoundParameters `
|
||||
Start-SoftwareInstaller @args `
|
||||
-Installer {
|
||||
Install-ChocoPackage winscp;
|
||||
} `
|
||||
|
|
|
@ -1,16 +1,9 @@
|
|||
using namespace Microsoft.Win32;
|
||||
|
||||
param(
|
||||
$Action,
|
||||
[hashtable] $Arguments
|
||||
)
|
||||
|
||||
. "$PSScriptRoot/../../../Common/Scripts/Software.ps1";
|
||||
. "$PSScriptRoot/../../../Common/Types/InstallerAction.ps1";
|
||||
|
||||
& {
|
||||
param($Parameters)
|
||||
|
||||
. "$PSScriptRoot/../../Scripts/Registry.ps1";
|
||||
. "$PSScriptRoot/../../Scripts/Restoration.ps1";
|
||||
. "$PSScriptRoot/../../../Common/Scripts/Config.ps1";
|
||||
|
@ -34,7 +27,7 @@ param(
|
|||
|
||||
[string[]] $homeExclusions = Get-Content "$PSScriptRoot/Home.exclude.txt";
|
||||
|
||||
Start-SoftwareInstaller @Parameters `
|
||||
Start-SoftwareInstaller @args `
|
||||
-Backup {
|
||||
Add-BackupArtifacts -Source "$env:PUBLIC" -Path "Public" `
|
||||
-Include ($userFolders) `
|
||||
|
@ -171,4 +164,4 @@ param(
|
|||
|
||||
Expand-BackupArtifacts -User $Arguments.Name -Path "Home" -Target $HOME;
|
||||
};
|
||||
} $PSBoundParameters;
|
||||
} @args;
|
||||
|
|
|
@ -1,24 +1,18 @@
|
|||
param (
|
||||
$Action,
|
||||
[hashtable] $Arguments
|
||||
)
|
||||
|
||||
. "$PSScriptRoot/../../Scripts/SoftwareManagement.ps1";
|
||||
. "$PSScriptRoot/../../../Common/Scripts/Software.ps1";
|
||||
. "$PSScriptRoot/../../../Common/Types/InstallerAction.ps1";
|
||||
|
||||
& {
|
||||
param($Parameters)
|
||||
$base = "$PSScriptRoot/../../../Common/Software/aliae/Main.ps1";
|
||||
|
||||
Start-SoftwareInstaller @Parameters `
|
||||
Start-SoftwareInstaller @args `
|
||||
-Installer {
|
||||
Install-WingetPackage JanDeDobbeleer.Aliae;
|
||||
} `
|
||||
-Configurator {
|
||||
. $base -Action ([InstallerAction]::Configure);
|
||||
. $base -Action ([InstallerAction]::Configure) @args;
|
||||
} `
|
||||
-UserConfigurator {
|
||||
. $base -Action ([InstallerAction]::ConfigureUser);
|
||||
. $base -Action ([InstallerAction]::ConfigureUser) @args;
|
||||
};
|
||||
} $PSBoundParameters;
|
||||
} @args;
|
||||
|
|
|
@ -1,14 +1,9 @@
|
|||
using namespace Microsoft.Win32;
|
||||
|
||||
param(
|
||||
$Action,
|
||||
[hashtable] $Arguments
|
||||
)
|
||||
|
||||
. "$PSScriptRoot/../../../Common/Scripts/Software.ps1";
|
||||
. "$PSScriptRoot/../../../Common/Software/PowerShell/Profile.ps1";
|
||||
|
||||
Start-SoftwareInstaller @PSBoundParameters `
|
||||
Start-SoftwareInstaller @args `
|
||||
-Configurator {
|
||||
param([string] $Name)
|
||||
[string] $backup = $null;
|
||||
|
|
|
@ -1,22 +1,13 @@
|
|||
param (
|
||||
$Action,
|
||||
[hashtable] $Arguments
|
||||
)
|
||||
|
||||
. "$PSScriptRoot/../../Scripts/SoftwareManagement.ps1";
|
||||
. "$PSScriptRoot/../../../Common/Scripts/Config.ps1";
|
||||
. "$PSScriptRoot/../../../Common/Scripts/Software.ps1";
|
||||
. "$PSScriptRoot/../../../Common/Types/InstallerAction.ps1";
|
||||
|
||||
& {
|
||||
param(
|
||||
[hashtable] $Parameters
|
||||
)
|
||||
|
||||
. "$PSScriptRoot/../../../Common/Types/InstallerAction.ps1";
|
||||
$base = "$PSScriptRoot/../../../Common/Software/git/Manage.ps1";
|
||||
|
||||
Start-SoftwareInstaller @Parameters `
|
||||
Start-SoftwareInstaller @args `
|
||||
-Installer {
|
||||
$params = "/WindowsTerminalProfile";
|
||||
$defaultBranch = Get-OSConfig "git.defaultBranch";
|
||||
|
@ -28,13 +19,9 @@ param (
|
|||
Install-ChocoPackage git -ArgumentList "--params",$params;
|
||||
} `
|
||||
-Configurator {
|
||||
& $base ([InstallerAction]::Configure);
|
||||
& $base ([InstallerAction]::Configure) @args;
|
||||
} `
|
||||
-UserConfigurator {
|
||||
param(
|
||||
$Arguments
|
||||
)
|
||||
|
||||
& $base ([InstallerAction]::ConfigureUser) @PSBoundParameterrs;
|
||||
& $base ([InstallerAction]::ConfigureUser) @args;
|
||||
};
|
||||
} $PSBoundParameters;
|
||||
} @args;
|
||||
|
|
|
@ -1,13 +1,7 @@
|
|||
param(
|
||||
$Action,
|
||||
[hashtable] $Arguments
|
||||
)
|
||||
|
||||
. "$PSScriptRoot/../../Scripts/SoftwareManagement.ps1";
|
||||
. "$PSScriptRoot/../../../Common/Scripts/Software.ps1";
|
||||
|
||||
& {
|
||||
param($Parameters)
|
||||
. "$PSScriptRoot/../../Scripts/Restoration.ps1";
|
||||
Export-ModuleMember -Function @();
|
||||
|
||||
|
@ -15,7 +9,7 @@ param(
|
|||
return "$((Get-KnownFolder -SpecialFolder ProgramFilesX86).Path)/osu!";
|
||||
}
|
||||
|
||||
Start-SoftwareInstaller @Parameters `
|
||||
Start-SoftwareInstaller @args `
|
||||
-Installer {
|
||||
Install-ChocoPackage osu;
|
||||
Remove-DesktopIcon "*osu*";
|
||||
|
@ -51,4 +45,4 @@ param(
|
|||
$name = $Arguments.Name;
|
||||
Expand-BackupArtifacts -User $name -Path "$Name/osu!.cfg" -Target "$(& $getInstallPath)/osu!.$name.cfg";
|
||||
};
|
||||
} $PSBoundParameters;
|
||||
} @args;
|
||||
|
|
|
@ -1,17 +1,11 @@
|
|||
param(
|
||||
$Action,
|
||||
[hashtable] $Arguments
|
||||
)
|
||||
|
||||
& {
|
||||
param($Parameters)
|
||||
. "$PSScriptRoot/../../Scripts/Restoration.ps1";
|
||||
. "$PSScriptRoot/../../Scripts/SoftwareManagement.ps1";
|
||||
. "$PSScriptRoot/../../../Common/Scripts/Software.ps1";
|
||||
. "$PSScriptRoot/../../../Common/Scripts/System.ps1";
|
||||
$path = "$env:AppData/osu";
|
||||
|
||||
Start-SoftwareInstaller @Parameters `
|
||||
Start-SoftwareInstaller @args `
|
||||
-UserBackup {
|
||||
param(
|
||||
[string] $Name,
|
||||
|
@ -54,4 +48,4 @@ param(
|
|||
Remove-DesktopIcon "*osu*";
|
||||
Expand-BackupArtifacts -User $Arguments.Name -Path "$Name" -Target $path;
|
||||
};
|
||||
} $PSBoundParameters;
|
||||
} @args;
|
||||
|
|
|
@ -1,10 +1,4 @@
|
|||
param(
|
||||
$Action,
|
||||
[hashtable] $Arguments
|
||||
)
|
||||
|
||||
& {
|
||||
param($Parameters)
|
||||
. "$PSScriptRoot/../../Scripts/Restoration.ps1";
|
||||
. "$PSScriptRoot/../../../Common/Scripts/BrowserAutomation.ps1";
|
||||
. "$PSScriptRoot/../../../Common/Scripts/Software.ps1";
|
||||
|
@ -12,7 +6,7 @@ param(
|
|||
|
||||
$path = "$env:Public/Documents/reWASD";
|
||||
|
||||
Start-SoftwareInstaller @Parameters `
|
||||
Start-SoftwareInstaller @args `
|
||||
-Backup {
|
||||
param([string] $Name)
|
||||
|
||||
|
@ -51,4 +45,4 @@ param(
|
|||
param([string] $Name)
|
||||
Expand-BackupArtifacts -Path "$Name" -Target $path;
|
||||
};
|
||||
} $PSBoundParameters;
|
||||
} @args;
|
||||
|
|
|
@ -1,29 +1,16 @@
|
|||
param(
|
||||
$Action,
|
||||
[hashtable] $Arguments
|
||||
)
|
||||
|
||||
& {
|
||||
param (
|
||||
[hashtable] $Parameters
|
||||
)
|
||||
|
||||
. "$PSScriptRoot/../../Scripts/SoftwareManagement.ps1";
|
||||
. "$PSScriptRoot/../../../Common/Scripts/Software.ps1";
|
||||
. "$PSScriptRoot/../../../Common/Types/InstallerAction.ps1";
|
||||
$base = "$PSScriptRoot/../../../Common/Software/vscode/Main.ps1";
|
||||
|
||||
Start-SoftwareInstaller @Parameters `
|
||||
Start-SoftwareInstaller @args `
|
||||
-Installer {
|
||||
Install-ChocoPackage vscode -ArgumentList "--params","/NoDesktopIcon";
|
||||
Install-ChocoPackage vscodium -ArgumentList "--params","/NoDesktopIcon /AssociateWithFiles";
|
||||
refreshenv;
|
||||
} `
|
||||
-UserConfigurator {
|
||||
param(
|
||||
$Arguments
|
||||
)
|
||||
|
||||
& $base ([InstallerAction]::ConfigureUser) @PSBoundParameters;
|
||||
& $base ([InstallerAction]::ConfigureUser) @args;
|
||||
};
|
||||
} $PSBoundParameters;
|
||||
} @args;
|
||||
|
|
|
@ -1,14 +1,7 @@
|
|||
param(
|
||||
$Action,
|
||||
[hashtable] $Arguments
|
||||
)
|
||||
|
||||
. "$PSScriptRoot/../../../Common/Scripts/Software.ps1";
|
||||
|
||||
& {
|
||||
param($Parameters)
|
||||
|
||||
Start-SoftwareInstaller @Parameters `
|
||||
Start-SoftwareInstaller @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";
|
||||
|
@ -20,4 +13,4 @@ param(
|
|||
Add-AppxPackage "$file";
|
||||
Remove-Item $file;
|
||||
};
|
||||
} $PSBoundParameters;
|
||||
} @args;
|
||||
|
|
|
@ -1,29 +1,16 @@
|
|||
param(
|
||||
$Action,
|
||||
[hashtable] $Arguments
|
||||
)
|
||||
|
||||
& {
|
||||
param(
|
||||
[hashtable] $Parameters
|
||||
)
|
||||
|
||||
. "$PSScriptRoot/../../Scripts/SoftwareManagement.ps1";
|
||||
. "$PSScriptRoot/../../../Common/Scripts/Software.ps1";
|
||||
. "$PSScriptRoot/../../../Common/Software/PowerShell/Profile.ps1";
|
||||
. "$PSScriptRoot/../../../Common/Types/InstallerAction.ps1";
|
||||
$base = "$PSScriptRoot/../../../Common/Software/zoxide/Main.ps1";
|
||||
|
||||
Start-SoftwareInstaller @PSBoundParameters `
|
||||
Start-SoftwareInstaller @args `
|
||||
-Installer {
|
||||
Install-ChocoPackage zoxide;
|
||||
Install-WingetPackage junegunn.fzf;
|
||||
} `
|
||||
-Configurator {
|
||||
param(
|
||||
$Arguments
|
||||
)
|
||||
|
||||
& $base ([InstallerAction]::Configure) @PSBoundParameters;
|
||||
& $base ([InstallerAction]::Configure) @args;
|
||||
};
|
||||
} $PSBoundParameters;
|
||||
} @args;
|
||||
|
|
Loading…
Reference in a new issue