Aufgeräumt
This commit is contained in:
104
install.ps1
104
install.ps1
@@ -27,13 +27,14 @@ $choices.Add((New-Object Management.Automation.Host.ChoiceDescription -ArgumentL
|
||||
|
||||
## Konfig für die Software
|
||||
$toRemove = @('Clipchamp.Clipchamp_yxz26nhyzhsrt', 'Microsoft.549981C3F5F10_8wekyb3d8bbwe', 'Microsoft.BingNews_8wekyb3d8bbwe', 'Microsoft.BingWeather_8wekyb3d8bbwe', 'Microsoft.GetHelp_8wekyb3d8bbwe',
|
||||
'Microsoft.MicrosoftOfficeHub_8wekyb3d8bbwe', 'Microsoft.MicrosoftSolitaireCollection_8wekyb3d8bbwe', 'Micorosoft.MicrosoftStickyNotes_8wekyb3d8bbwe', 'Microsoft.People_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',
|
||||
'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')
|
||||
$toInstallOpt = @('Element.Element','CPUID.CPU-Z','Discord.Discord','Corsair.iCUE.4','Valve.Steam','GOG.Galaxy','TeXstudio.TeXstudio','MiKTeX.MiKTeX','Citrix.Workspace','Nvidia.GeForceExperience','Mojang.MinecraftLauncher')
|
||||
'Microsoft.MicrosoftOfficeHub_8wekyb3d8bbwe', 'Microsoft.MicrosoftSolitaireCollection_8wekyb3d8bbwe', 'Micorosoft.MicrosoftStickyNotes_8wekyb3d8bbwe', 'Microsoft.People_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',
|
||||
'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')
|
||||
$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')
|
||||
|
||||
|
||||
|
||||
@@ -62,9 +63,8 @@ do {
|
||||
remove-item ~\Desktop* -include *.lnk
|
||||
} '2' {
|
||||
# Winget config reinrödeln
|
||||
Remove-Item "%LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json"
|
||||
New-Item -Path "~\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json" -ItemType SymbolicLink -Value "~/.winconfig/winget/settings.json"
|
||||
|
||||
Remove-Item "~\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json"
|
||||
New-Item -Path "~\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json" -ItemType SymbolicLink -Value "~/.winconfig/configs/winget/settings.json"
|
||||
# Krempeln deinstallieren
|
||||
foreach ($utility in $toInstall) {
|
||||
$ergebnis = winget list --id $utility
|
||||
@@ -75,8 +75,6 @@ do {
|
||||
Write-Host "Programm $utility bereits installiert"
|
||||
}
|
||||
}
|
||||
remove-item ~\Desktop* -include *.lnk
|
||||
Start-Process OOSU10 -NoNewWindow -Wait
|
||||
} '3' {
|
||||
foreach ($utility in $toInstallOpt) {
|
||||
$ergebnis = winget list --id $utility
|
||||
@@ -87,42 +85,58 @@ do {
|
||||
winget install -e --id $utility --silent
|
||||
}
|
||||
}
|
||||
}
|
||||
$decision = $Host.UI.PromptForChoice('WSL', 'Soll WSL mit Debian 11 installiert werden?' , $choices, 1)
|
||||
if ($decision -eq 0) {
|
||||
Write-Host "Installiere WSL"
|
||||
wsl --install
|
||||
Write-Host "Installiere Debian"
|
||||
wsl --install -d Debian
|
||||
Read-Host "Computer muss neugestartet werden!"
|
||||
}
|
||||
}
|
||||
# OOShutup10 herunterladen und config reinrendenr.
|
||||
curl.exe -s "https://dl5.oo-software.com/files/ooshutup10/OOSU10.exe" -o OOSU10.exe
|
||||
./OOSU10.exe ooshutup10.cfg /quiet
|
||||
|
||||
Write-Host "Richte Powershell und Terminal ein..."
|
||||
# Fonts installieren.
|
||||
$LocalPath = "~/.winconfig/Fonts/"
|
||||
$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) {
|
||||
if ((Test-Path "C:\Windows\Fonts\$File") -eq $False) {
|
||||
$objFolder.CopyHere($File.fullname, 0x10)
|
||||
}
|
||||
}
|
||||
# Windows Terminal Settings
|
||||
Remove-Item "~\AppData\Local\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState\settings.json" ; New-Item -Path "~\AppData\Local\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState\settings.json" -ItemType SymbolicLink -Value "~/.winconfig/configs/terminal/settings.json"
|
||||
# Winfetch installieren & konfigurieren
|
||||
Install-Script winfetch
|
||||
Remove-Item -Recurse -Force ~/.config/winfetch
|
||||
mkdir ~/.config/winfetch
|
||||
New-Item -Path "~/.config/winfetch/config.ps1" -ItemType SymbolicLink -Value "~/.winconfig/configs/winfetch/config.ps1"
|
||||
# Powershell Profile Datei erzeugen
|
||||
Remove-Item -Force "~/Documents/WindowsPowerShell/profile.ps1"
|
||||
New-Item -Path "~/Documents/WindowsPowerShell/profile.ps1" -ItemType SymbolicLink -Value "~/.winconfig/profile.ps1"
|
||||
Read-Host "Bitte das Terminal / Powershell neu starten damit die Aenderungen uebernommen werden."
|
||||
|
||||
$decision = $Host.UI.PromptForChoice('WSL', 'Soll WSL mit Debian 11 installiert werden?' , $choices, 1)
|
||||
if ($decision -eq 0) {
|
||||
Write-Host "Installiere WSL"
|
||||
wsl --install
|
||||
Write-Host "Installiere Debian"
|
||||
wsl --install -d Debian
|
||||
Read-Host "Computer muss neugestartet werden!"
|
||||
}
|
||||
} '4' {
|
||||
# Windows Explorer Einrichten
|
||||
New-Item -Path "HKCU:\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32" -Value "" -Force
|
||||
Set-Itemproperty -path 'HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced' -Name 'Hidden' -value '00000001'
|
||||
Set-Itemproperty -path 'HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced' -Name 'HideFileExt' -value '00000000'
|
||||
Set-Itemproperty -path 'HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CabinetState' -Name 'FullPath' -value '00000001'
|
||||
Remove-ItemProperty -path 'HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced' -Name 'TaskbarSi'
|
||||
New-ItemProperty -path 'HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced' -Name 'TaskbarSi' -value '0000001' -PropertyType DWORD
|
||||
Write-Host "Starte Explorer neu um änderungen zu übernehmen"
|
||||
Get-Process explorer | Stop-Process
|
||||
# Windows Explorer Einrichten
|
||||
New-Item -Path "HKCU:\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32" -Value "" -Force
|
||||
Set-Itemproperty -path 'HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced' -Name 'Hidden' -value '00000001'
|
||||
Set-Itemproperty -path 'HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced' -Name 'HideFileExt' -value '00000000'
|
||||
Set-Itemproperty -path 'HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CabinetState' -Name 'FullPath' -value '00000001'
|
||||
Remove-ItemProperty -path 'HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced' -Name 'TaskbarSi'
|
||||
New-ItemProperty -path 'HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced' -Name 'TaskbarSi' -value '0000001' -PropertyType DWORD
|
||||
Write-Host "Starte Explorer neu um änderungen zu übernehmen"
|
||||
Get-Process explorer | Stop-Process
|
||||
|
||||
# Powershell Modul für Updates
|
||||
Install-Module -Name PSWindowsUpdate -Force
|
||||
|
||||
# Windows Terminal Settings
|
||||
Remove-Item "~\AppData\Local\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState\settings.json" ; New-Item -Path "~\AppData\Local\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState\settings.json" -ItemType SymbolicLink -Value "~/.winconfig/terminal/settings.json"
|
||||
|
||||
# Winfetch installieren & konfigurieren
|
||||
Install-Script winfetch
|
||||
Remove-Item -Recurse -Force ~/.config/winfetch
|
||||
mkdir ~/.config/winfetch
|
||||
New-Item -Path "~/.config/winfetch/config.ps1" -ItemType SymbolicLink -Value "~/.winconfig/winfetch/config.ps1"
|
||||
# Powershell Modul für Updates
|
||||
Install-Module -Name PSWindowsUpdate -Force
|
||||
|
||||
# Powershell Profile Datei erzeugen
|
||||
Remove-Item -Force "~/Documents/WindowsPowerShell/profile.ps1"
|
||||
New-Item -Path "~/Documents/WindowsPowerShell/profile.ps1" -ItemType SymbolicLink -Value "~/.winconfig/profile.ps1"
|
||||
Read-Host "Bitte das Terminal / Powershell neu starten damit die Aenderungen uebernommen werden."
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user