Bugfixing

This commit is contained in:
2022-12-30 17:49:15 +01:00
parent 86ab218ae1
commit aa372b1877
11 changed files with 24 additions and 18 deletions

View File

@@ -19,8 +19,8 @@ $toRemove = @('Clipchamp.Clipchamp_yxz26nhyzhsrt', 'Microsoft.549981C3F5F10_8wek
'Microsoft.PowerAutomateDesktop_8wekyb3d8bbwe', 'Microsoft.Todos_8wekyb3d8bbwe', 'Microsoft.Windows.Photos_8wekyb3d8bbwe', 'Microsoft.WindowsMaps_8wekyb3d8bbwe', 'Microsoft.PowerAutomateDesktop_8wekyb3d8bbwe', 'Microsoft.Todos_8wekyb3d8bbwe', 'Microsoft.Windows.Photos_8wekyb3d8bbwe', 'Microsoft.WindowsMaps_8wekyb3d8bbwe',
'Microsoft.WindowsSoundRecorder_8wekyb3d8bbwe', 'Microsoft.WindowsAlarms_8wekyb3d8bbwe', 'Microsoft.YourPhone_8wekyb3d8bbwe', 'Microsoft.ZuneMusic_8wekyb3d8bbwe', 'Microsoft.ZuneVideo_8wekyb3d8bbwe', 'Microsoft.WindowsSoundRecorder_8wekyb3d8bbwe', 'Microsoft.WindowsAlarms_8wekyb3d8bbwe', 'Microsoft.YourPhone_8wekyb3d8bbwe', 'Microsoft.ZuneMusic_8wekyb3d8bbwe', 'Microsoft.ZuneVideo_8wekyb3d8bbwe',
'MicrosoftCorporationII.QuickAssist_8wekyb3d8bbwe', 'MicrosoftTeams_8wekyb3d8bbwe', 'MicrosoftTeams_8wekyb3d8bbwe', 'Microsoft.OneDrive', 'microsoft.windowscommunicationsapps_8wekyb3d8bbwe', 'CanonicalGroupLimited.Ubuntu_79rhkp1fndgsc') 'MicrosoftCorporationII.QuickAssist_8wekyb3d8bbwe', 'MicrosoftTeams_8wekyb3d8bbwe', 'MicrosoftTeams_8wekyb3d8bbwe', 'Microsoft.OneDrive', 'microsoft.windowscommunicationsapps_8wekyb3d8bbwe', 'CanonicalGroupLimited.Ubuntu_79rhkp1fndgsc')
$toInstall = @('mcmilk.7zip-zstd', 'VideoLAN.VLC', 'SumatraPDF.SumatraPDF', 'Microsoft.VisualStudioCode', 'Bitwarden.Bitwarden', 'Mozilla.Firefox', 'IrfanSkiljan.IrfanView', 'Microsoft.PowerToys', 'OO-Software.ShutUp10' $toInstall = @('mcmilk.7zip-zstd', 'VideoLAN.VLC', 'SumatraPDF.SumatraPDF', 'Microsoft.VisualStudioCode', 'Bitwarden.Bitwarden', 'Mozilla.Firefox', 'IrfanSkiljan.IrfanView', 'Microsoft.PowerToys',
, 'Joplin.Joplin', 'WireGuard.WireGuard', 'Devolutions.RemoteDesktopManager', 'TeamViewer.TeamViewer', 'NickeManarin.ScreenToGif', 'JanDeDobbeleer.OhMyPosh', 'WiresharkFoundation.Wireshark', 'Famatech.AdvancedIPScanner') 'Joplin.Joplin', 'WireGuard.WireGuard', 'Devolutions.RemoteDesktopManager', 'TeamViewer.TeamViewer', 'NickeManarin.ScreenToGif', 'JanDeDobbeleer.OhMyPosh', 'WiresharkFoundation.Wireshark', 'Famatech.AdvancedIPScanner')
$toInstallOpt = @('Element.Element', 'Discord.Discord', 'Corsair.iCUE.4', 'Valve.Steam', 'GOG.Galaxy', 'TeXstudio.TeXstudio', 'MiKTeX.MiKTeX', 'Citrix.Workspace', 'Nvidia.GeForceExperience', 'Mojang.MinecraftLauncher', $toInstallOpt = @('Element.Element', 'Discord.Discord', 'Corsair.iCUE.4', 'Valve.Steam', 'GOG.Galaxy', 'TeXstudio.TeXstudio', 'MiKTeX.MiKTeX', 'Citrix.Workspace', 'Nvidia.GeForceExperience', 'Mojang.MinecraftLauncher',
'Elgato.StreamDeck', 'REALiX.HWiNFO', '9P4CLT2RJ1RS', 'Oracle.VirtualBox') 'Elgato.StreamDeck', 'REALiX.HWiNFO', '9P4CLT2RJ1RS', 'Oracle.VirtualBox')
@@ -56,13 +56,25 @@ do {
} '2' { } '2' {
# Winget config installieren. # Winget config installieren.
if (-not(Test-Path -Path '~\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json' -PathType leaf)){ if (-not(Test-Path -Path '~\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json' -PathType leaf)){
Write-Host "Lege Winget config an." -ForegroundColor Green Write-Host "Lege Winget config an." -ForegroundColor Blue
try {
New-Item -Path "~\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json" -ItemType SymbolicLink -Value "~/.winconfig/configs/winget/settings.json" | Out-Null New-Item -Path "~\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json" -ItemType SymbolicLink -Value "~/.winconfig/configs/winget/settings.json" | Out-Null
Write-Host "Winget config erfolgreich verlinkt." -ForegroundColor Green
}
catch {
Write-Host "Probleme beim verlinken der Wignet configt" -ForegroundColor Red
}
} }
else { else {
Write-Host "Lege Winget config an." -ForegroundColor Green Write-Host "Lege Winget config an." -ForegroundColor Blue
Remove-Item "~\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json" Remove-Item "~\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json"
try {
New-Item -Path "~\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json" -ItemType SymbolicLink -Value "~/.winconfig/configs/winget/settings.json" | Out-Null New-Item -Path "~\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json" -ItemType SymbolicLink -Value "~/.winconfig/configs/winget/settings.json" | Out-Null
Write-Host "Winget config erfolgreich verlinkt." -ForegroundColor Green
}
catch {
Write-Host "Probleme beim verlinken der Wignet configt" -ForegroundColor Red
}
} }
# Software installieren. # Software installieren.
foreach ($utility in $toInstall) { foreach ($utility in $toInstall) {
@@ -84,15 +96,10 @@ do {
Try { Try {
curl.exe -s "https://dl5.oo-software.com/files/ooshutup10/OOSU10.exe" -o OOSU10.exe curl.exe -s "https://dl5.oo-software.com/files/ooshutup10/OOSU10.exe" -o OOSU10.exe
Write-Host "OOshutup10 erfolgreich heruntergeladen." -ForegroundColor Green Write-Host "OOshutup10 erfolgreich heruntergeladen." -ForegroundColor Green
Write-Host "Versuche OOshutup10 config einzulesen..." Write-Host "Versuche OOshutup10 config einzulesen..." -ForegroundColor Blue
Try { ./OOSU10.exe $HOME/.winconfig/ooshutup10.cfg /quiet
./OOSU10.exe ooshutup10.cfg /quiet
Write-Host "OOshutup10 config erfolgreich eingelesen." -ForegroundColor Green Write-Host "OOshutup10 config erfolgreich eingelesen." -ForegroundColor Green
} }
Catch {
Write-Host "Probleme beim einlesen der OOshutup10 config" -ForegroundColor Red
}
}
Catch { Catch {
Write-Host "Problem beim herunterladen von OOshutup 10." -ForegroundColor Red Write-Host "Problem beim herunterladen von OOshutup 10." -ForegroundColor Red
} }
@@ -102,7 +109,6 @@ do {
$FONTS = 0x14 $FONTS = 0x14
$objShell = New-Object -ComObject Shell.Application $objShell = New-Object -ComObject Shell.Application
$objFolder = $objShell.Namespace($FONTS) $objFolder = $objShell.Namespace($FONTS)
New-Item $LocalPath -type directory -Force
$Fontdir = Get-ChildItem $LocalPath $Fontdir = Get-ChildItem $LocalPath
foreach ($File in $Fontdir) { foreach ($File in $Fontdir) {
Write-Host "Versuche Schriftart $File zu installieren ..." -ForegroundColor Blue Write-Host "Versuche Schriftart $File zu installieren ..." -ForegroundColor Blue
@@ -151,10 +157,10 @@ do {
# Powershell Profile Datei erzeugen # Powershell Profile Datei erzeugen
Write-Host "Löschen des default Powershell profiles..." -ForegroundColor Blue Write-Host "Löschen des default Powershell profiles..." -ForegroundColor Blue
Try { Try {
Remove-Item -Force "~/Documents/WindowsPowerShell/profile.ps1" Remove-Item -Force "~/Documents/PowerShell/profile.ps1"
Write-Host "Powershell config erfolgreich gelöscht." -ForegroundColor Green Write-Host "Powershell config erfolgreich gelöscht." -ForegroundColor Green
Try { Try {
New-Item -Path "~/Documents/WindowsPowerShell/profile.ps1" -ItemType SymbolicLink -Value "~/.winconfig/profile.ps1" | Out-Null New-Item -Path "~/Documents/PowerShell/profile.ps1" -ItemType SymbolicLink -Value "~/.winconfig/profile.ps1" | Out-Null
Write-Host "Powershell config erfolgreich verlinkt." Write-Host "Powershell config erfolgreich verlinkt."
} }
Catch { Catch {
@@ -172,7 +178,7 @@ do {
Catch { Catch {
Write-Host "Fehler beim installieren des Powershell update Modul." -ForegroundColor Red Write-Host "Fehler beim installieren des Powershell update Modul." -ForegroundColor Red
} }
Read-Host "Bitte das Terminal / Powershell neu starten damit die Aenderungen uebernommen werden." -Fore Read-Host "Bitte das Terminal / Powershell neu starten damit die Aenderungen uebernommen werden."
} '3' { } '3' {
foreach ($utility in $toInstallOpt) { foreach ($utility in $toInstallOpt) {