Firefox ESR, Office aus eigenem Pfad, Warnung bei ungespeicherten Blaupausen
- Katalog: Mozilla Firefox ESR (DE) - Office-Modus "Offline aus eigenem Pfad" (Netzlaufwerk/Ordner) mit Pruefung auf Office\Data und SourcePath in der XML-Vorschau - Seitenleiste: Speichern-Button + Hinweis bei ungespeicherten Aenderungen; Rueckfrage vor Laden einer anderen Blaupause, Beenden und Schliessen Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
+9
-1
@@ -307,6 +307,14 @@ function Install-Office {
|
||||
$cfgDir = Join-Path $global:KdsRoot 'office\configs'
|
||||
New-Item $cfgDir -ItemType Directory -Force | Out-Null
|
||||
|
||||
if ($mode -eq 'custom') {
|
||||
# vorhandene Office-Quelle (z.B. Netzlaufwerk oder anderer Ordner) verwenden
|
||||
$src = [Environment]::ExpandEnvironmentVariables([string]$Data.sourcePath).TrimEnd('\')
|
||||
if (-not $src) { throw 'Kein Pfad zur Office-Quelle angegeben' }
|
||||
if (-not (Test-Path (Join-Path $src 'Office\Data'))) { throw "Unter '$src' wurde kein Office-Build gefunden (erwartet: $src\Office\Data)" }
|
||||
$cfg | Add-Member -NotePropertyName sourcePath -NotePropertyValue $src -Force
|
||||
Write-Log "Office-Quelle: $src"
|
||||
}
|
||||
if ($mode -in 'download', 'offline') {
|
||||
$src = Join-Path $global:KdsRoot "office\source\$($cfg.product)-$($cfg.arch)"
|
||||
New-Item $src -ItemType Directory -Force | Out-Null
|
||||
@@ -1453,7 +1461,7 @@ function Invoke-FullProfile {
|
||||
if ('security' -in $steps) { & $run 'Sicherheit' { Set-SecurityConfig $Data } }
|
||||
if ('power' -in $steps) { & $run 'Energie' { Set-PowerConfig $Data } }
|
||||
if ('apps' -in $steps) { & $run 'Programme' { Install-Apps $Data } }
|
||||
if ('office' -in $steps) { & $run 'Office' { Install-Office ([pscustomobject]@{ office = $Data.office; mode = $Data.officeMode; name = $Data.name }) } }
|
||||
if ('office' -in $steps) { & $run 'Office' { Install-Office ([pscustomobject]@{ office = $Data.office; mode = $Data.officeMode; sourcePath = $Data.officeSource; name = $Data.name }) } }
|
||||
if ('shortcuts' -in $steps) { & $run 'Desktop-Verknuepfungen' { Set-DesktopShortcuts $Data } }
|
||||
if ('drivers' -in $steps) { & $run 'Hersteller-Treiber' { Invoke-VendorDriverUpdate $Data } }
|
||||
if ('updates' -in $steps) { & $run 'Windows Update' { Install-WindowsUpdates ([pscustomobject]@{ all = $true; type = 'all' }) | Out-Null } }
|
||||
|
||||
Reference in New Issue
Block a user