Remove obsolete code

This commit is contained in:
Manuel Thalmann 2024-09-22 15:10:36 +02:00
commit 976f543b36
223 changed files with 0 additions and 4889 deletions
scripts/Windows/Software
Ext4Fsd
Firefox
GPU-Z
LGHub
MSEdgeRedirect
ManiaPlanet
NVS
Nextcloud
Oh My Posh
PuTTY
RetroArch
Terminal-Icons
Thunderbird
TobiiGameHub
TobiiGhost
TrackMania Nations Forever
TrackMania United Forever
Ubiquiti UniFi Controller
VisualStudio
WinSCP
aliae
git
osu!
osu!lazer
posh-git
reWASD
winget

View file

@ -1,4 +0,0 @@
#!/bin/pwsh
param($context)
. "$PSScriptRoot/../../../Common/Scripts/SoftwareManagement.ps1";
Install-SoftwarePackage $context "https://github.com/bobranten/Ext4Fsd/releases/download/v0.71/Ext2Fsd-0.71-setup.exe"

View file

@ -1,9 +0,0 @@
#!/bin/pwsh
. "$PSScriptRoot/../../../Common/Scripts/Context.ps1";
function Install-Firefox {
param([Context] $context)
Write-Host "Installing Firefox";
choco install -y firefox;
. "$PSScriptRoot/../../Config/Firefox/Install.ps1" $context;
}

View file

@ -1,32 +0,0 @@
#!/bin/pwsh
param($context)
. "$PSScriptRoot/../../../Common/Scripts/BrowserAutomation.ps1";
. "$PSScriptRoot/../../../Common/Scripts/Context.ps1";
. "$PSScriptRoot/../../../Common/Scripts/SoftwareManagement.ps1";
Write-Host "Installing GPU-Z";
$tempDir = $context.GetTempDirectory();
$versionSelector = ".versions .version:first-of-type .file";
$versionButtonSelector = "${versionSelector}.selected input.startbutton";
$downloadButtonSelector = 'button[type="submit"]:first-of-type';
$action = {
param([OpenQA.Selenium.Firefox.FirefoxDriver] $browser)
$versions = $browser.FindElements([OpenQA.Selenium.By]::CssSelector($versionSelector));
$version = ($versions | Where-Object { $_.Text.ToUpper().Contains("ASUS ROG"); })[0];
$version.Click();
$versionButton = $browser.FindElement([OpenQA.Selenium.By]::CssSelector($versionButtonSelector));
$versionButton.Click();
$downloadButton = $browser.FindElement([OpenQA.Selenium.By]::CssSelector($downloadButtonSelector));
$downloadButton.Click();
}
Write-Information "Downloading GPU-Z";
$file = Start-CustomBrowserDownload $context "https://www.techpowerup.com/download/techpowerup-gpu-z/" $action $tempDir;
Write-Information "Launching GPU-Z installer";
Start-Process -Wait -FilePath $file.FullName -ArgumentList "-installSilent";
Remove-Item -Recurse $tempDir;

View file

@ -1,54 +0,0 @@
#!/bin/pwsh
. "$PSScriptRoot/../../../Common/Scripts/Context.ps1";
$null = New-Module {
$path = "$env:LOCALAPPDATA/LGHUB";
$softwareName = "LGHub";
[string]$lghubPath;
function Get-LogitechGHUBName() {
return "lghub_system_tray.exe";
}
function Stop-LogitechGHUB() {
[OutputType([string])]
param();
Write-Host "Killing Logitech G HUB process";
$hubName = Get-LogitechGHUBName;
$lghubPath = $(Get-Process | Where-Object { [System.IO.Path]::GetFileName($_.Path) -eq $hubName })[0].Path;
$mainProcesses = Get-Process | Where-Object { @("lghub_agent.exe", $hubName) -contains [System.IO.Path]::GetFileName($_.Path) -and $(
$_.Parent.ProcessName -eq "explorer" -or $null -eq $_.Parent) };
$null = $mainProcesses | Foreach-Object { $_.Kill($true) };
return $lghubPath;
}
function Backup-LogitechGHUB([Context] $context) {
Write-Host "Backing Up Logitech G HUB";
$hubPath = Stop-LogitechGHUB;
Write-Information "Backing up important files";
$context.Backup($path, $context.SoftwareArchive($softwareName), @("-i!settings.db", "-i!icon_cache"));
if ($hubPath) {
Write-Information "Restarting Logitech G HUB";
Start-Process $hubPath;
}
}
function Restore-LogitechGHUB([Context] $context) {
Write-Host "Restoring Logitech G HUB";
Write-Information "Installing the app";
choco install -y --ignore-checksums lghub;
$hubPath = Stop-LogitechGHUB;
Write-Information "Removing existing settings";
Remove-Item "$path/settings.*";
Write-Information "Restoring important files";
$context.Restore($context.SoftwareArchive($softwareName), $path);
Write-Information "Deleting desktop icon";
$context.RemoveDesktopIcon("*G HUB*");
Write-Information "Restarting Logitech G HUB";
Start-Process $hubPath;
}
}

View file

@ -1,3 +0,0 @@
#!/bin/pwsh
choco install -y MSEdgeRedirect;
. "$PSScriptRoot/../../Config/MSEdgeRedirect/Install.ps1";

View file

@ -1,20 +0,0 @@
#!/bin/pwsh
. "$PSScriptRoot/../../../Common/Scripts/Context.ps1";
$null = New-Module {
$path = "$HOME/Documents/ManiaPlanet";
$softwareName = "ManiaPlanet";
function Backup-ManiaPlanet([Context] $context) {
Write-Information "Backing up ManiaPlanet";
$context.Backup($path, $context.SoftwareArchive($softwareName), @("-i@`"$PSScriptRoot/include.txt`""));
}
function Restore-ManiaPlanet([Context] $context) {
Write-Host "Restoring ManiaPlanet";
Write-Information "Installing ManiaPlanet";
winget install --accept-source-agreements --accept-package-agreements -e --id Nadeo.ManiaPlanet;
Write-Information "Restoring files";
$context.Restore($context.SoftwareArchive($softwareName), $path);
}
}

View file

@ -1,10 +0,0 @@
Actions
Blocks
Items
Maps
Media
Modules
Packs
Replays
Scripts
Skins

View file

@ -1,20 +0,0 @@
#!/bin/pwsh
$env:NVS_HOME="$env:ProgramData\nvs";
git clone "https://github.com/jasongin/nvs.git" "$env:NVS_HOME";
& "$env:NVS_HOME\nvs.cmd" install;
$acl = Get-Acl "$env:NVS_HOME";
$acl.AddAccessRule(
[System.Security.AccessControl.FileSystemAccessRule]::new(
[System.Security.Principal.SecurityIdentifier]::new([System.Security.Principal.WellKnownSidType]::BuiltinUsersSid, $null),
[System.Security.AccessControl.RegistryRights]::FullControl,
[System.Security.AccessControl.InheritanceFlags]::ObjectInherit -bor [System.Security.AccessControl.InheritanceFlags]::ContainerInherit,
[System.Security.AccessControl.PropagationFlags]::InheritOnly,
[System.Security.AccessControl.AccessControlType]::Allow));
Set-Acl "$env:NVS_HOME" $acl;
refreshenv;
nvs add latest;
nvs link latest;

View file

@ -1,32 +0,0 @@
#!/bin/pwsh
. "$PSScriptRoot/../../../Common/Scripts/Context.ps1";
$null = New-Module {
function Restore-Nextcloud([Context] $context) {
choco list --exact nextcloud-client
if (-not $?) {
Write-Information "Installing Nextcloud Client";
choco install nextcloud-client -y --params="'/KeepUpdateCheck'";
}
if (-not (Test-Path $context.GetNextcloudConfigFile())) {
Write-Information "Setting up Nextcloud configuration";
Write-Information "Ensuring all Let's Encrypt certificates are cached";
$null = Invoke-WebRequest https://valid-isrgrootx1.letsencrypt.org/;
while (-not (Test-Path $context.GetNextcloudConfigFile())) {
Write-Host "Nextcloud has been installed!";
Read-Host "Please log in in the Nextcloud app and hit enter to continue";
if (-not (Test-Path $context.GetNextcloudConfigFile())) {
Write-Error "The login seems to have failed. Please try again.";
}
}
$context.Reboot();
exit;
}
}
}

View file

@ -1,7 +0,0 @@
#!/bin/pwsh
param($context);
. "$PSScriptRoot/../../../Common/Scripts/Context.ps1";
[Context] $context = $context;
winget install --accept-source-agreements --accept-package-agreements -s winget --scope machine -e --id JanDeDobbeleer.OhMyPosh;
. "$PSScriptRoot/../../../Common/Config/Oh My Posh/install.ps1";

View file

@ -1,29 +0,0 @@
#!/bin/pwsh
. "$PSScriptRoot/../../../Common/Scripts/Context.ps1";
$null = New-Module {
$softwareName = "PuTTY";
$configFile = "$($softwareName).reg";
function Backup-PuTTY([Context] $context) {
Write-Host "Backing up PuTTY";
$tempDir = $context.GetTempDirectory();
$fileName = Join-Path "$tempDir" $configFile;
& reg export "HKCU\Software\SimonTatham" "$fileName" /y;
$context.Backup($tempDir, $context.SoftwareArchive($softwareName));
Remove-Item -Recurse $tempDir;
}
function Restore-PuTTY([Context] $context) {
Write-Host "Restoring PuTTY";
Write-Information "Installing PuTTY";
choco install -y putty;
Write-Information "Restoring configuration";
$tempDir = $context.GetTempDirectory();
$fileName = Join-Path "$tempDir" $configFile;
$context.Restore($context.SoftwareArchive($softwareName), $tempDir);
& reg import "$fileName";
Remove-Item -Recurse $tempDir;
}
}

View file

@ -1,35 +0,0 @@
#!/bin/pwsh
. "$PSScriptRoot/../../Scripts/KnownFolders.ps1";
. "$PSScriptRoot/../../../Common/Scripts/Context.ps1";
$null = New-Module {
Import-Module "$env:ChocolateyInstall/helpers/chocolateyInstaller.psm1";
$path = "C:/tools/RetroArch-Win64";
$softwareName = "RetroArch";
function Backup-RetroArch([Context] $context) {
Write-Host "Backing up RetroArch";
$context.Backup($path, $context.SoftwareArchive($softwareName), @("-i@`"$PSScriptRoot/include.txt`""));
}
function Restore-RetroArch([Context] $context) {
Write-Host "Restoring RetroArch";
Write-Information "Installing RetroArch";
choco install -y --ignore-checksums retroarch;
Write-Information "Restoring files";
$context.Restore($context.SoftwareArchive($softwareName), $path);
Write-Information "Adding cloud sync folders";
$context.AddNextcloudSync(
"$path\saves",
"/Saved Games/RetroArch/Saves");
$context.AddNextcloudSync(
"$path\system",
"/Saved Games/RetroArch/System");
Write-Information "Creating a Start Menu Icon";
Install-ChocolateyShortcut -ShortcutFilePath "$((Get-KnownFolder "Common Programs").Path)/RetroArch.lnk" -TargetPath ((Get-Item "$path\retroarch.exe").FullName);
}
}

View file

@ -1,9 +0,0 @@
config
cores
downloads
playlists
recordings
screenshots
content_history.lpl
content_*_history.lpl
retroarch.cfg

View file

@ -1,4 +0,0 @@
#!/bin/pwsh
Install-Module -AcceptLicense -Scope AllUsers -Force Terminal-Icons;
powershell -c "Install-Module -Scope AllUsers -Force Terminal-Icons;";
. "$PSScriptRoot/../../Config/Terminal-Icons/Install.ps1";

View file

@ -1,8 +0,0 @@
#!/bin/pwsh
param($context)
. "$PSScriptRoot/../../../Common/Scripts/Context.ps1";
[Context] $context = $context;
choco install -y thunderbird --params "/NoTaskbarShortcut /NoDesktopShortcut";
. "$PSScriptRoot/../../Config/Thunderbird/Install.ps1" $context;

View file

@ -1,18 +0,0 @@
#!/bin/pwsh
param($context)
$tempDir = $context.GetTempDirectory();
$installer = "setup.exe";
Push-Location $tempDir;
choco install -y vcredist2013;
Write-Host "Installing Tobii Game Hub";
Write-Information "Downloading Tobii Game Hub installer";
Invoke-WebRequest "https://files.update.oem.tobii.com/GameHub/TobiiGameHub.3.0.1-Setup.exe" -OutFile $installer;
Write-Information "Running Tobii Game Hub installer";
Start-Process -Wait -FilePath "$PSScriptRoot/GameHub.ahk";
Pop-Location;
Remove-Item -Recurse $tempDir;

View file

@ -1,18 +0,0 @@
#!/bin/pwsh
param($context)
$tempDir = $context.GetTempDirectory();
$installer = "setup.exe";
Push-Location $tempDir;
choco install -y "dotnet-6.0-desktopruntime";
Write-Host "Installing Tobii Ghost";
Write-Information "Downloading Tobii Ghost installer";
Invoke-WebRequest "https://files.update.oem.tobii.com/Ghost/TobiiGhost.1.14.1-Setup.exe" -OutFile $installer;
Write-Information "Running Tobii Ghost installer";
Start-Process -Wait -FilePath "$PSScriptRoot/Ghost.ahk";
Pop-Location;
Remove-Item -Recurse $tempDir;

View file

@ -1,31 +0,0 @@
#!/bin/pwsh
. "$PSScriptRoot/../../../Common/Scripts/Context.ps1";
$null = New-Module {
$path = "$HOME/Documents/TmForever";
$softwareName = "TmNationsForever";
function Backup-TmNations([Context] $context) {
Write-Host "Backing up TrackMania Nations Forever";
$context.Backup($path, $context.SoftwareArchive($softwareName), @("-i@`"$PSScriptRoot/include.txt`""));
}
function Restore-TmNations([Context] $context) {
$features = @("DirectPlay", "NetFx3");
Write-Host "Restoring TrackMania Nations Forever";
foreach ($feature in $features) {
if ((Get-WindowsOptionalFeature -Online -FeatureName $feature).State -ne "Enabled") {
Write-Information "Enabling the ``$feature`` feature";
$null = Enable-WindowsOptionalFeature -Online -All -FeatureName $feature;
}
}
Write-Information "Installing TrackMania Nations Forever";
winget install --accept-source-agreements --accept-package-agreements -e --id Nadeo.TrackManiaNationsForever;
Write-Information "Removing Desktop Icon";
$context.RemoveDesktopIcon("*TmNationsForever*");
Write-Information "Restoring Files";
$context.Restore($context.SoftwareArchive($softwareName), $path);
}
}

View file

@ -1,7 +0,0 @@
ChallengeMusics
MediaTracker
MenuMusics
Painter
Scores
Skins
Tracks

View file

@ -1,40 +0,0 @@
#!/bin/pwsh
. "$PSScriptRoot/../../../Common/Scripts/Context.ps1";
$null = New-Module {
$path = "$HOME/Documents/TrackMania";
$softwareName = "TmUnitedForever";
function Backup-TmUnited([Context] $context) {
Write-Host "Backing up TrackMania United Forever";
$context.Backup($path, $context.SoftwareArchive($softwareName), @("-i@`"$PSScriptRoot/include.txt`""));
}
function Restore-TmUnited([Context] $context) {
$setupFile = "TmUnitedForever.exe";
$features = @("DirectPlay", "NetFx3");
Write-Host "Restoring TrackMania United Forever";
foreach ($feature in $features) {
if ((Get-WindowsOptionalFeature -Online -FeatureName $feature).State -ne "Enabled") {
Write-Information "Enabling the ``$feature`` feature";
$null = Enable-WindowsOptionalFeature -Online -All -FeatureName $feature;
}
}
$tempDir = $context.GetTempDirectory();
Push-Location $tempDir;
Write-Information "Downloading TrackMania United Forever setup";
Invoke-WebRequest "http://files.trackmaniaforever.com/tmunitedforever_setup.exe" -OutFile "$setupFile";
Write-Information "Installing TrackMania United Forever";
Start-Process -Wait -FilePath $setupFile -ArgumentList @("/Silent");
Write-Information "Removing desktop icon";
$context.RemoveDesktopIcon("*TmUnitedForever*");
Write-Information "Restoring files";
$context.Restore($context.SoftwareArchive($softwareName), $path);
Pop-Location;
Remove-Item -Recurse $tempDir;
}
}

View file

@ -1,6 +0,0 @@
ChallengeMusics
MediaTracker
MenuMusics
Scores
Skins
Tracks

View file

@ -1,24 +0,0 @@
#!/bin/pwsh
param($context);
. "$PSScriptRoot/../../../Common/Scripts/Context.ps1";
[Context] $context = $context;
Write-Host "Installing UniFi Controller";
Write-Information "Downgrading AutoHotkey";
$ahkID = "AutoHotkey.AutoHotkey";
winget uninstall --accept-source-agreements -e --id "$ahkID";
winget install --accept-source-agreements --accept-package-agreements -e --id "$ahkID" --version "1.1.37.00";
Write-Information "Installing JRE... eww...";
choco install -y temurin11jre;
Write-Information "Installing UniFi Controller";
choco install -y ubiquiti-unifi-controller --ignore-dependencies;
Write-Information "Upgrading AutoHotkey";
winget uninstall --accept-source-agreements -e --id "$ahkID";
winget install --accept-source-agreements --accept-package-agreements -e --id "$ahkID";
Write-Information "Removing desktop icon";
$context.RemoveDesktopIcon("UniFi*");

View file

@ -1,57 +0,0 @@
#!/bin/pwsh
. "$PSScriptRoot/../../Scripts/KnownFolders.ps1";
. "$PSScriptRoot/../../../Common/Scripts/Context.ps1";
$null = New-Module {
$programs32Path = $(Get-KnownFolder "ProgramFilesX86").Path;
$vsInstaller = "$programs32Path/Microsoft Visual Studio/Installer/vs_installer.exe";
[System.Tuple[string, string, string][]]$versions = @(
[System.Tuple]::Create("visualstudio2019enterprise", "VisualStudio.16.Release", "Microsoft.VisualStudio.Product.Enterprise"),
[System.Tuple]::Create("visualstudio2019community", "VisualStudio.16.Release", "Microsoft.VisualStudio.Product.Community"),
[System.Tuple]::Create("visualstudio2022enterprise", "VisualStudio.17.Release", "Microsoft.VisualStudio.Product.Enterprise"),
[System.Tuple]::Create("visualstudio2022community", "VisualStudio.17.Release", "Microsoft.VisualStudio.Product.Community"));
function Get-ConfigPath([Context] $context, [string] $packageName) {
return Join-Path $($context.BackupRoot()) "Visual Studio" $packageName ".vsconfig";
}
function Backup-VisualStudio([Context] $context) {
Write-Host "Backing up Visual Studio";
foreach ($version in $versions) {
if ((choco list -e $version[0])) {
Write-Information "Backing up $($version[1]): $($version[2])";
$configPath = Get-ConfigPath $context $version[0];
$null = New-Item -Force -ItemType Directory "$(Split-Path -Parent $configPath)";
Start-Process -FilePath "$vsInstaller" `
-Wait `
-ArgumentList @(
"export",
"--channelId", "$($version[1])",
"--productId", "$($version[2])",
"--config", "`"$configPath`"",
"--quiet");
}
}
}
function Restore-VisualStudio([Context] $context) {
Write-Host "Restoring Visual Studio";
foreach ($version in $versions) {
$configFileName = Get-ConfigPath $context $version[0];
if (Test-Path $configFileName) {
Write-Information "Restoring $($version[1]): $($version[2])";
$arguments = "--config `"$configFileName`"";
choco install -y $version[0] --params "$arguments";
$context.RemoveDesktopIcon("CocosCreator*");
$context.RemoveDesktopIcon("Unity Hub*");
}
}
}
}

View file

@ -1,9 +0,0 @@
#!/bin/pwsh
param($context)
. "$PSScriptRoot/../../../Common/Scripts/Context.ps1";
[Context] $context = $context;
choco install -y winscp;
$context.RemoveDesktopIcon("WinSCP*");
. "$PSScriptRoot/../../Config/WinSCP/Install.ps1" $context;

View file

@ -1,8 +0,0 @@
#!/bin/pwsh
param($context);
. "$PSScriptRoot/../../../Common/Scripts/Context.ps1";
[Context] $context = $context;
winget install --accept-source-agreements --accept-package-agreements -s winget --scope machine -e --id JanDeDobbeleer.Aliae;
. "$PSScriptRoot/../../Config/aliae/Install.ps1";
refreshenv;

View file

@ -1,15 +0,0 @@
#!/bin/pwsh
. "$PSScriptRoot/../../Scripts/BashScript.ps1";
. "$PSScriptRoot/../../../Common/Scripts/Context.ps1";
$null = New-Module {
function Backup-Git([Context] $context) {}
function Restore-Git([Context] $context) {
Write-Host "Restoring git";
Start-BashScript @(
"bash `"$PSScriptRoot/../../../Common/Config/git/install.sh`"",
"rm ~/.bashrc");
}
}

View file

@ -1,36 +0,0 @@
#!/bin/pwsh
. "$PSScriptRoot/../../Scripts/KnownFolders.ps1";
. "$PSScriptRoot/../../../Common/Scripts/Context.ps1";
$null = New-Module {
$path = "$((Get-KnownFolder -SpecialFolder ProgramFilesX86).Path)/osu!";
$softwareName = "osu!";
$genericConfigName = "osu!.User.cfg";
function Backup-Osu([Context] $context) {
Write-Host "Backing up osu!";
$archive = $context.SoftwareArchive($softwareName);
Write-Information "Backing up important files";
$context.Backup($path, $archive, @("-i@`"$PSScriptRoot/include.txt`""));
Write-Information "Renaming user configuration to $genericConfigName";
& 7z rn "$archive" "osu!.$env:USERNAME.cfg" $genericConfigName;
}
function Restore-Osu([Context] $context) {
Write-Host "Restoring osu!";
Write-Information "Installing osu!";
choco install -y osu;
$context.RemoveDesktopIcon("*osu*");
Write-Information "Restoring files";
$context.Restore($context.SoftwareArchive($softwareName), $path, @("-aos"));
$configName = "osu!.$env:USERNAME.cfg";
Write-Information "Renaming user configuration to $configName";
Push-Location $path;
if ((Test-Path $genericConfigName)) {
Rename-Item $genericConfigName $configName;
}
Pop-Location;
}
}

View file

@ -1,5 +0,0 @@
Screenshots
Skins
Songs
osu!.*.cfg
scores.db

View file

@ -1,37 +0,0 @@
#!/bin/pwsh
. "$PSScriptRoot/../../../Common/Scripts/Context.ps1";
$null = New-Module {
$path = "$env:APPDATA/osu";
$softwareName = "osu!lazer";
function Backup-OsuLazer([Context] $context) {
Write-Host "Backing up osu!lazer";
$context.Backup($path, $context.SoftwareArchive($softwareName), @("-i@`"$PSScriptRoot/include.txt`"", "-i!*.realm", "-i!*.db"));
}
function Restore-OsuLazer([Context] $context) {
Write-Host "Restoring osu!lazer";
Write-Information "Restoring files";
$context.Restore($context.SoftwareArchive($softwareName), $path);
Write-Information "Installing osu!lazer";
$installerName = "osu!lazer.exe";
$processName = "osu!";
$tempDir = $context.GetTempDirectory();
Push-Location $tempDir;
Invoke-WebRequest "https://github.com/ppy/osu/releases/latest/download/install.exe" -OutFile $installerName;
Start-Process -FilePath $installerName;
while (-not (Get-Process -ErrorAction "SilentlyContinue" $processName)) {
Start-Sleep 1;
}
Start-Sleep 10;
Get-Process $processName | Stop-Process -Force;
$context.RemoveDesktopIcon("*osu*");
Pop-Location;
Remove-Item -Recurse $tempDir;
}
}

View file

@ -1,6 +0,0 @@
files
rulesets
screenshots
framework.ini
game.ini
input.json

View file

@ -1,4 +0,0 @@
#!/bin/pwsh
Install-Module -AcceptLicense -Scope AllUsers -Force posh-git;
powershell -c "Install-Module -Scope AllUsers -Force posh-git;";
. "$PSScriptRoot/../../Config/posh-git/Install.ps1";

View file

@ -1,31 +0,0 @@
#!/bin/pwsh
$null = New-Module {
. "$PSScriptRoot/../../../Common/Scripts/BrowserAutomation.ps1";
. "$PSScriptRoot/../../../Common/Scripts/Context.ps1";
$path = "$env:PUBLIC/Documents/reWASD";
$softwareName = "reWASD";
function Backup-reWASD([Context] $context) {
Write-Host "Backing up reWASD";
$context.Backup($path, $context.SoftwareArchive($softwareName), @("-x@`"$PSScriptRoot/exclude.txt`""));
}
function Restore-reWASD([Context] $context) {
Write-Host "Restoring reWASD";
$tempDir = $context.GetTempDirectory();
Write-Information "Downloading reWASD";
$file = Start-BrowserDownload $context "https://rewasd.com/" 'a.btn-default[href="#"]' $tempDir;
Write-Information "Installing reWASD";
Start-Process -Wait -FilePath $file.FullName -ArgumentList "/S";
Write-Information "Restoring files";
$context.Restore($context.SoftwareArchive($softwareName), $path, @("-aos"));
Write-Information "Removing desktop icon";
$context.RemoveDesktopIcon("*reWASD*");
Remove-Item -Recurse $tempDir;
}
}

View file

@ -1,10 +0,0 @@
Logs
Presets
Profiles/Desktop
Profiles/Duality
Profiles/Fortnite
Profiles/PS4 Remote*
Profiles/Switch console
Profiles/Switch to Xbox 360
Profiles/Valorant
Profiles/xCloud

View file

@ -1,13 +0,0 @@
#!/bin/pwsh
function Install-Winget {
$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";
$file = New-TemporaryFile;
$file = Rename-Item $file "$file.msixbundle" -PassThru;
Invoke-WebRequest "$xamlDownloadLink" -OutFile "$file";
Add-AppxPackage "$file";
Invoke-WebRequest "$downloadLink" -OutFile "$file";
Add-AppxPackage "$file";
Remove-Item $file;
}