2023-07-12 20:37:31 +00:00
|
|
|
#!/bin/pwsh
|
2023-06-30 10:24:12 +00:00
|
|
|
. "$PSScriptRoot/../Scripts/Context.ps1";
|
2023-07-27 18:18:04 +00:00
|
|
|
. "$PSScriptRoot/../Scripts/SoftwarePackage.ps1";
|
2023-07-20 18:01:09 +00:00
|
|
|
. "$PSScriptRoot/../Software/Firefox/Install.ps1";
|
2023-06-30 10:24:12 +00:00
|
|
|
. "$PSScriptRoot/../Software/git/Manage.ps1";
|
|
|
|
. "$PSScriptRoot/../Software/LGHub/Manage.ps1";
|
|
|
|
. "$PSScriptRoot/../Software/ManiaPlanet/Manage.ps1";
|
|
|
|
. "$PSScriptRoot/../Software/osu!/Manage.ps1";
|
|
|
|
. "$PSScriptRoot/../Software/osu!lazer/Manage.ps1";
|
|
|
|
. "$PSScriptRoot/../Software/PuTTY/Manage.ps1";
|
|
|
|
. "$PSScriptRoot/../Software/RetroArch/Manage.ps1";
|
|
|
|
. "$PSScriptRoot/../Software/reWASD/Manage.ps1";
|
|
|
|
. "$PSScriptRoot/../Software/TrackMania Nations Forever/Manage.ps1";
|
|
|
|
. "$PSScriptRoot/../Software/TrackMania United Forever/Manage.ps1";
|
|
|
|
. "$PSScriptRoot/../Software/VisualStudio/Manage.ps1";
|
|
|
|
|
|
|
|
function Backup-PersonalApps([Context] $context) {
|
|
|
|
Backup-Git $context;
|
|
|
|
Backup-LogitechGHUB $context;
|
|
|
|
Backup-ManiaPlanet $context;
|
|
|
|
Backup-Osu $context;
|
|
|
|
Backup-OsuLazer $context;
|
|
|
|
Backup-PuTTY $context;
|
|
|
|
Backup-RetroArch $context;
|
|
|
|
Backup-reWASD $context;
|
|
|
|
Backup-TmNations $context;
|
|
|
|
Backup-TmUnited $context;
|
|
|
|
Backup-VisualStudio $context;
|
|
|
|
}
|
|
|
|
|
|
|
|
function Restore-PersonalApps([Context] $context) {
|
2023-07-17 00:55:45 +00:00
|
|
|
# Device specific
|
|
|
|
if ((Get-Command Install-PersonalDrivers -ErrorAction SilentlyContinue)) {
|
|
|
|
Write-Information "Driver installation function was found. Starting installation";
|
|
|
|
Install-PersonalDrivers $context;
|
|
|
|
}
|
|
|
|
|
2023-07-16 13:40:24 +00:00
|
|
|
# Backed up applications
|
2023-06-30 10:24:12 +00:00
|
|
|
Restore-Git $context;
|
2023-06-30 12:24:51 +00:00
|
|
|
Restore-LogitechGHUB $context;
|
2023-07-02 11:50:19 +00:00
|
|
|
Restore-TmNations $context;
|
2023-07-02 11:58:23 +00:00
|
|
|
Restore-TmUnited $context;
|
2023-07-02 12:00:33 +00:00
|
|
|
Restore-ManiaPlanet $context;
|
2023-07-02 12:42:17 +00:00
|
|
|
Restore-Osu $context;
|
2023-07-02 13:12:56 +00:00
|
|
|
Restore-OsuLazer $context;
|
2023-07-02 13:16:24 +00:00
|
|
|
Restore-PuTTY $context;
|
2023-07-02 13:58:36 +00:00
|
|
|
Restore-RetroArch $context;
|
2023-07-02 14:05:04 +00:00
|
|
|
Restore-reWASD $context;
|
2023-07-02 14:15:08 +00:00
|
|
|
Restore-VisualStudio $context;
|
2023-07-02 14:18:58 +00:00
|
|
|
|
2023-07-17 12:10:06 +00:00
|
|
|
# Design
|
|
|
|
choco install -y `
|
|
|
|
nerd-fonts-CascadiaCode;
|
|
|
|
|
2023-07-16 14:14:15 +00:00
|
|
|
# Social Media
|
2023-07-19 01:08:32 +00:00
|
|
|
choco install -y `
|
|
|
|
signal;
|
|
|
|
|
2023-07-16 14:14:15 +00:00
|
|
|
choco install -y `
|
2023-07-17 01:25:14 +00:00
|
|
|
threema-desktop `
|
|
|
|
discord `
|
|
|
|
element-desktop `
|
|
|
|
teamspeak;
|
|
|
|
|
2023-07-18 18:28:46 +00:00
|
|
|
$context.RemoveDesktopIcon("*Discord*");
|
|
|
|
$context.RemoveDesktopIcon("*Element*");
|
|
|
|
$context.RemoveDesktopIcon("*TeamSpeak*");
|
|
|
|
|
2023-07-17 01:25:14 +00:00
|
|
|
# Browsing
|
2023-07-20 18:01:09 +00:00
|
|
|
Install-Firefox $context;
|
2023-07-29 09:47:32 +00:00
|
|
|
. "$PSScriptRoot/../Software/MSEdgeRedirect/Install.ps1";
|
2023-07-17 01:25:14 +00:00
|
|
|
winget install --accept-source-agreements --accept-package-agreements -e --id Brave.Brave;
|
|
|
|
winget install --accept-source-agreements --accept-package-agreements -e --id Brave.Brave.Beta;
|
|
|
|
winget install --accept-source-agreements --accept-package-agreements -e --id Brave.Brave.Nightly;
|
2023-07-16 13:43:21 +00:00
|
|
|
|
2023-07-19 21:12:50 +00:00
|
|
|
$context.RemoveDesktopIcon("*Brave*");
|
2023-07-18 18:28:46 +00:00
|
|
|
$context.RemoveTaskbarItem("*Brave*");
|
|
|
|
|
2023-07-16 13:43:21 +00:00
|
|
|
# Tools
|
2023-07-27 18:18:04 +00:00
|
|
|
Install-SoftwarePackage $context "https://github.com/mRemoteNG/mRemoteNG/releases/download/2023.03.03-v1.77.3-nb/mRemoteNG-Installer-1.77.3.nb-1784.msi" @("/Quiet");
|
2023-07-18 18:28:46 +00:00
|
|
|
|
2023-07-16 14:14:15 +00:00
|
|
|
choco install -y `
|
|
|
|
7zip `
|
|
|
|
chocolateygui `
|
|
|
|
bitwarden `
|
|
|
|
keepass `
|
2023-07-16 21:10:59 +00:00
|
|
|
gimp `
|
2023-07-17 01:25:14 +00:00
|
|
|
gpu-z `
|
|
|
|
windirstat `
|
|
|
|
winmerge `
|
|
|
|
xmedia-recode `
|
|
|
|
hwmonitor `
|
|
|
|
qbittorrent `
|
|
|
|
imgburn `
|
|
|
|
inkscape `
|
|
|
|
krita `
|
2023-07-31 16:58:42 +00:00
|
|
|
MetaX `
|
2023-07-17 01:25:14 +00:00
|
|
|
obs-studio `
|
2023-07-25 16:55:35 +00:00
|
|
|
openvpn;
|
|
|
|
|
2023-07-31 16:44:54 +00:00
|
|
|
winget install --accept-source-agreements --accept-package-agreements -e --id AntSoftware.AntRenamer;
|
|
|
|
|
2023-07-18 18:28:46 +00:00
|
|
|
$context.RemoveDesktopIcon("GPU-Z*");
|
|
|
|
$context.RemoveDesktopIcon("WinDirStat*");
|
|
|
|
$context.RemoveDesktopIcon("*HWMonitor*");
|
|
|
|
$context.RemoveDesktopIcon("ImgBurn*");
|
|
|
|
$context.RemoveDesktopIcon("Inkscape*");
|
|
|
|
$context.RemoveDesktopIcon("Krita*");
|
|
|
|
$context.RemoveDesktopIcon("mRemoteNG*");
|
|
|
|
|
2023-07-19 01:09:29 +00:00
|
|
|
winget install --accept-source-agreements --accept-package-agreements -e --id AppWork.JDownloader;
|
2023-07-18 18:28:46 +00:00
|
|
|
$context.RemoveDesktopIcon("JDownloader*");
|
2023-07-16 21:07:49 +00:00
|
|
|
|
2023-07-18 18:28:46 +00:00
|
|
|
. "$PSScriptRoot/../Software/Ubiquiti UniFi Controller/Install.ps1" $context;
|
2023-07-18 17:09:12 +00:00
|
|
|
|
2023-07-16 14:14:15 +00:00
|
|
|
# Media
|
|
|
|
choco install -y k-litecodecpackmega;
|
2023-07-19 01:09:29 +00:00
|
|
|
winget install --accept-source-agreements --accept-package-agreements -e --id Ytmdesktop.Ytmdesktop;
|
2023-07-19 20:24:30 +00:00
|
|
|
$context.RemoveDesktopIcon("YouTube Music*");
|
2023-07-16 13:43:21 +00:00
|
|
|
|
2023-07-16 13:40:24 +00:00
|
|
|
# Coding
|
2023-07-02 23:10:44 +00:00
|
|
|
choco install -y --params "/NoDesktopIcon" vscode vscode-insiders;
|
2023-07-02 14:46:58 +00:00
|
|
|
choco install -y --params "/NoDesktopIcon /AssociateWithFiles" vscodium;
|
2023-07-16 13:03:26 +00:00
|
|
|
winget install --scope machine --accept-source-agreements --accept-package-agreements -e --id VSCodium.VSCodium.Insiders --override '/VerySilent /MergeTasks="!runCode,quicklaunchicon,addcontextmenufiles,addcontextmenufolders,associatewithfiles,addtopath"';
|
2023-07-16 13:40:24 +00:00
|
|
|
|
2023-07-18 15:03:38 +00:00
|
|
|
choco install -y --ignore-checksums `
|
|
|
|
ida-free;
|
|
|
|
|
2023-07-18 18:28:46 +00:00
|
|
|
$context.RemoveDesktopIcon("IDA *");
|
|
|
|
|
2023-07-18 12:45:51 +00:00
|
|
|
choco install -y `
|
2023-07-17 01:25:14 +00:00
|
|
|
HxD `
|
|
|
|
docker-desktop `
|
|
|
|
gh `
|
|
|
|
github-desktop `
|
|
|
|
imhex `
|
|
|
|
dotpeek;
|
|
|
|
|
2023-07-18 18:28:46 +00:00
|
|
|
$context.RemoveDesktopIcon("Docker*");
|
|
|
|
$context.RemoveDesktopIcon("GitHub*");
|
|
|
|
|
2023-07-18 14:17:13 +00:00
|
|
|
choco install -y `
|
2023-07-17 01:25:14 +00:00
|
|
|
nvs `
|
|
|
|
python `
|
|
|
|
visualstudio2019-workload-vctools;
|
|
|
|
|
2023-07-18 15:51:33 +00:00
|
|
|
refreshenv;
|
2023-07-17 01:25:14 +00:00
|
|
|
nvs add latest;
|
|
|
|
nvs link latest;
|
2023-07-16 13:44:00 +00:00
|
|
|
|
2023-07-27 01:03:10 +00:00
|
|
|
# Terminal
|
2023-07-27 01:07:24 +00:00
|
|
|
@($PROFILE, (powershell -c '$PROFILE')) | ForEach-Object {
|
|
|
|
Get-Item "$(Split-Path -Parent $_)/profile.d/*Oh My Posh*";
|
|
|
|
} | ForEach-Object {
|
2023-07-27 15:42:05 +00:00
|
|
|
$oldContent = Get-Content $_;
|
|
|
|
|
|
|
|
$oldContent | ForEach-Object {
|
2023-07-27 01:07:24 +00:00
|
|
|
$indicator = "oh-my-posh init";
|
|
|
|
$_ -replace $indicator,"$indicator --config ~/Nextcloud/.omp/manuel.omp.json";
|
|
|
|
} | Set-Content $_;
|
|
|
|
}
|
2023-07-27 01:03:10 +00:00
|
|
|
|
2023-07-16 13:40:24 +00:00
|
|
|
# Gaming
|
2023-07-16 13:37:57 +00:00
|
|
|
choco install -y goggalaxy;
|
2023-07-17 01:25:14 +00:00
|
|
|
|
2023-07-18 17:00:30 +00:00
|
|
|
choco install --ignore-checksums -y `
|
2023-07-27 18:06:56 +00:00
|
|
|
ubisoft-connect `
|
|
|
|
ea-app;
|
2023-07-18 17:00:30 +00:00
|
|
|
|
2023-07-17 01:25:14 +00:00
|
|
|
choco install -y `
|
|
|
|
epicgameslauncher `
|
2023-07-29 10:55:41 +00:00
|
|
|
steam;
|
2023-07-17 01:25:14 +00:00
|
|
|
|
2023-07-26 23:04:08 +00:00
|
|
|
$context.RemoveDesktopIcon("*Ubisoft Connect*");
|
2023-07-16 10:46:00 +00:00
|
|
|
$context.RemoveDesktopIcon("*Epic Games*");
|
|
|
|
$context.RemoveDesktopIcon("*Steam*");
|
2023-07-18 18:28:46 +00:00
|
|
|
$context.RemoveDesktopIcon("EA.*");
|
2023-07-17 01:28:09 +00:00
|
|
|
|
2023-07-18 17:59:07 +00:00
|
|
|
choco install -y rayman-controlpanel;
|
|
|
|
|
2023-07-17 01:28:09 +00:00
|
|
|
# Emulation
|
|
|
|
choco install -y `
|
|
|
|
ppsspp;
|
2023-07-18 18:28:46 +00:00
|
|
|
|
|
|
|
$context.RemoveDesktopIcon("PPSSPP *32-Bit*");
|
2023-07-29 09:28:32 +00:00
|
|
|
$context.RemoveDesktopIcon("*Microsoft Edge*");
|
2023-06-30 10:24:12 +00:00
|
|
|
}
|