Bugfixing
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
36
install.ps1
36
install.ps1
@@ -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.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')
|
||||
$toInstall = @('mcmilk.7zip-zstd', 'VideoLAN.VLC', 'SumatraPDF.SumatraPDF', 'Microsoft.VisualStudioCode', 'Bitwarden.Bitwarden', 'Mozilla.Firefox', 'IrfanSkiljan.IrfanView', 'Microsoft.PowerToys', 'OO-Software.ShutUp10'
|
||||
, 'Joplin.Joplin', 'WireGuard.WireGuard', 'Devolutions.RemoteDesktopManager', 'TeamViewer.TeamViewer', 'NickeManarin.ScreenToGif', 'JanDeDobbeleer.OhMyPosh', 'WiresharkFoundation.Wireshark', 'Famatech.AdvancedIPScanner')
|
||||
$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')
|
||||
$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')
|
||||
|
||||
@@ -56,13 +56,25 @@ do {
|
||||
} '2' {
|
||||
# Winget config installieren.
|
||||
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
|
||||
Write-Host "Winget config erfolgreich verlinkt." -ForegroundColor Green
|
||||
}
|
||||
catch {
|
||||
Write-Host "Probleme beim verlinken der Wignet configt" -ForegroundColor Red
|
||||
}
|
||||
}
|
||||
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"
|
||||
try {
|
||||
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.
|
||||
foreach ($utility in $toInstall) {
|
||||
@@ -84,15 +96,10 @@ do {
|
||||
Try {
|
||||
curl.exe -s "https://dl5.oo-software.com/files/ooshutup10/OOSU10.exe" -o OOSU10.exe
|
||||
Write-Host "OOshutup10 erfolgreich heruntergeladen." -ForegroundColor Green
|
||||
Write-Host "Versuche OOshutup10 config einzulesen..."
|
||||
Try {
|
||||
./OOSU10.exe ooshutup10.cfg /quiet
|
||||
Write-Host "Versuche OOshutup10 config einzulesen..." -ForegroundColor Blue
|
||||
./OOSU10.exe $HOME/.winconfig/ooshutup10.cfg /quiet
|
||||
Write-Host "OOshutup10 config erfolgreich eingelesen." -ForegroundColor Green
|
||||
}
|
||||
Catch {
|
||||
Write-Host "Probleme beim einlesen der OOshutup10 config" -ForegroundColor Red
|
||||
}
|
||||
}
|
||||
Catch {
|
||||
Write-Host "Problem beim herunterladen von OOshutup 10." -ForegroundColor Red
|
||||
}
|
||||
@@ -102,7 +109,6 @@ do {
|
||||
$FONTS = 0x14
|
||||
$objShell = New-Object -ComObject Shell.Application
|
||||
$objFolder = $objShell.Namespace($FONTS)
|
||||
New-Item $LocalPath -type directory -Force
|
||||
$Fontdir = Get-ChildItem $LocalPath
|
||||
foreach ($File in $Fontdir) {
|
||||
Write-Host "Versuche Schriftart $File zu installieren ..." -ForegroundColor Blue
|
||||
@@ -151,10 +157,10 @@ do {
|
||||
# Powershell Profile Datei erzeugen
|
||||
Write-Host "Löschen des default Powershell profiles..." -ForegroundColor Blue
|
||||
Try {
|
||||
Remove-Item -Force "~/Documents/WindowsPowerShell/profile.ps1"
|
||||
Remove-Item -Force "~/Documents/PowerShell/profile.ps1"
|
||||
Write-Host "Powershell config erfolgreich gelöscht." -ForegroundColor Green
|
||||
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."
|
||||
}
|
||||
Catch {
|
||||
@@ -172,7 +178,7 @@ do {
|
||||
Catch {
|
||||
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' {
|
||||
foreach ($utility in $toInstallOpt) {
|
||||
|
||||
Reference in New Issue
Block a user