ooshutup10 angepasst.
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
#Updatet all the things
|
#Updatet all the things
|
||||||
function Update {
|
function Update {
|
||||||
Das gute Write-Host "Beginne mit dem Update aller Pakete..."
|
Write-Host "Beginne mit dem Update aller Pakete..."
|
||||||
# Winget upgrades ausführen
|
# Winget upgrades ausführen
|
||||||
winget upgrade --all
|
winget upgrade --all
|
||||||
# ooshutup10 ausführen. Manchmal werden settings nach Windos updates zurückgesetzt
|
# ooshutup10 ausführen. Manchmal werden settings nach Windos updates zurückgesetzt
|
||||||
@@ -18,7 +18,6 @@ Das gute Write-Host "Beginne mit dem Update aller Pakete..."
|
|||||||
)
|
)
|
||||||
try {
|
try {
|
||||||
$oldVersions = Get-InstalledModule -Name $ModuleName -AllVersions -ErrorAction Stop | Where-Object { $_.Version -ne $GalleryVersion }
|
$oldVersions = Get-InstalledModule -Name $ModuleName -AllVersions -ErrorAction Stop | Where-Object { $_.Version -ne $GalleryVersion }
|
||||||
|
|
||||||
foreach ($oldVersion in $oldVersions) {
|
foreach ($oldVersion in $oldVersions) {
|
||||||
Write-Host -ForegroundColor Cyan "$ModuleName - Uninstall previous version ($($oldVersion.Version))"
|
Write-Host -ForegroundColor Cyan "$ModuleName - Uninstall previous version ($($oldVersion.Version))"
|
||||||
if (-not($SimulationMode)) {
|
if (-not($SimulationMode)) {
|
||||||
@@ -38,7 +37,6 @@ Das gute Write-Host "Beginne mit dem Update aller Pakete..."
|
|||||||
else {
|
else {
|
||||||
$modules = Get-InstalledModule
|
$modules = Get-InstalledModule
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach ($module in $modules.Name) {
|
foreach ($module in $modules.Name) {
|
||||||
if ($ExcludedModules -contains $module) {
|
if ($ExcludedModules -contains $module) {
|
||||||
Write-Host -ForegroundColor Yellow "Module $module is excluded from the update process"
|
Write-Host -ForegroundColor Yellow "Module $module is excluded from the update process"
|
||||||
|
|||||||
@@ -96,7 +96,7 @@ do {
|
|||||||
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/ooshutup10.cfg /quiet
|
./OOSU10.exe $HOME\.winconfig\configs\ooshutup10\ooshutup10.cfg /quiet
|
||||||
Write-Host "OOshutup10 config erfolgreich eingelesen." -ForegroundColor Green
|
Write-Host "OOshutup10 config erfolgreich eingelesen." -ForegroundColor Green
|
||||||
}
|
}
|
||||||
Catch {
|
Catch {
|
||||||
|
|||||||
Reference in New Issue
Block a user