ooshtup10 error gefixt.

This commit is contained in:
2022-12-30 18:19:18 +01:00
parent aa372b1877
commit 19940469b6

View File

@@ -92,12 +92,12 @@ do {
} }
} }
# OOShutup10 herunterladen und config reinrendenr. # OOShutup10 herunterladen und config reinrendenr.
Write-Host "Lade OOshutup10 herunter bitte warten." -ForegroundColor Blue Write-Host "Lade OOshutup10 herunter bitte warten..." -ForegroundColor Blue
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..." -ForegroundColor Blue Write-Host "Versuche OOshutup10 config einzulesen..." -ForegroundColor Blue
./OOSU10.exe $HOME/.winconfig/ooshutup10.cfg /quiet ./OOSU10.exe $HOME/.winconfig/ooshutup10/ooshutup10.cfg /quiet
Write-Host "OOshutup10 config erfolgreich eingelesen." -ForegroundColor Green Write-Host "OOshutup10 config erfolgreich eingelesen." -ForegroundColor Green
} }
Catch { Catch {
@@ -156,7 +156,7 @@ 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 { if (Test-Path "~/Documents/PowerShell/profile.ps1" -eq $True) {
Remove-Item -Force "~/Documents/PowerShell/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 {
@@ -164,11 +164,19 @@ do {
Write-Host "Powershell config erfolgreich verlinkt." Write-Host "Powershell config erfolgreich verlinkt."
} }
Catch { Catch {
Write-Host "Probleme beim verlinken der Powershell config." Write-Host "Probleme beim verlinken der Powershell config." -ForegroundColor Red
} }
} }
elseif (Test-Path "~/Documents/WindowsPowerShell/profile.ps1" -eq $True) {
Remove-Item -Force "~/Documents/WindowsPowerShell/profile.ps1"
Write-Host "Powershell config erfolgreich gelöscht." -ForegroundColor Green
Try {
New-Item -Path "~/Documents/PowerShell/profile.ps1" -ItemType SymbolicLink -Value "~/.winconfig/profile.ps1" | Out-Null
Write-Host "Powershell config erfolgreich verlinkt."
}
Catch { Catch {
Write-Host "Probleme beim löschen der default Powershell config." -ForegroundColor Red Write-Host "Probleme beim verlinken der Powershell config." -ForegroundColor Red
}
} }
# Powershell Modul für Updates # Powershell Modul für Updates
Try { Try {