2024-08-08 02:36:35 +00:00
|
|
|
param(
|
|
|
|
$Action,
|
|
|
|
[hashtable] $Arguments
|
|
|
|
)
|
|
|
|
|
2024-08-28 11:07:58 +00:00
|
|
|
& {
|
|
|
|
param($Parameters)
|
|
|
|
. "$PSScriptRoot/../../Scripts/Restoration.ps1";
|
2024-09-23 01:33:17 +00:00
|
|
|
. "$PSScriptRoot/../../Scripts/SoftwareManagement.ps1";
|
2024-08-28 11:07:58 +00:00
|
|
|
. "$PSScriptRoot/../../../Common/Scripts/Software.ps1";
|
|
|
|
. "$PSScriptRoot/../../../Common/Scripts/System.ps1";
|
|
|
|
$path = "C:/tools/RetroArch-Win64";
|
2024-08-08 02:36:35 +00:00
|
|
|
|
2024-08-28 11:07:58 +00:00
|
|
|
Start-SoftwareInstaller @Parameters `
|
|
|
|
-Backup {
|
2024-09-23 00:10:42 +00:00
|
|
|
param([string] $Name)
|
|
|
|
|
|
|
|
Add-BackupArtifacts -Path "$Name" -Source $path `
|
2024-08-28 11:07:58 +00:00
|
|
|
-Include @(
|
|
|
|
"config",
|
|
|
|
"cores",
|
|
|
|
"downloads",
|
|
|
|
"playlists",
|
|
|
|
"recordings",
|
|
|
|
"screenshots",
|
|
|
|
"content_history.lpl",
|
|
|
|
"content_*_history.lpl",
|
|
|
|
"retroarch.cfg"
|
|
|
|
);
|
|
|
|
} `
|
|
|
|
-Installer {
|
|
|
|
Install-ChocoPackage retroarch;
|
|
|
|
} `
|
|
|
|
-Configurator {
|
2024-09-23 00:10:42 +00:00
|
|
|
param([string] $Name)
|
2024-08-28 11:07:58 +00:00
|
|
|
Add-StartMenuIcon "RetroArch" "C:\tools\RetroArch-Win64\retroarch.exe";
|
2024-09-23 00:10:42 +00:00
|
|
|
Expand-BackupArtifacts -Path "$Name" -Target $path;
|
2024-08-28 11:07:58 +00:00
|
|
|
};
|
|
|
|
} $PSBoundParameters;
|