Moin,

 

nach langem probieren blieb bei dieser so „tollen“ Setup-Routine von MS Office Click To Run leider nur noch das Ergebnis mit einem Copy zu arbeiten. Wer sich also auch damit rumquält, dem gebe ich hier etwas Input:

##################################################################
#  setup.opsiscript                                                                                               #
##################################################################
encoding=utf8
[Actions]
requiredOpsiscriptVersion >= „4.12.4.23“
importlib „uib_exitcode.opsiscript“
importlib „osd-lib.opsiscript“
; All variables are defined here:
include_insert „define_vars_multi.opsiscript“
; —————————————————————-
; $ProductId$ is the name of the product in opsi, only lower letters, no umlauts, no white spaces, use ‚-‚ as a seperator
Set $ProductId$ = „ms-office2019“
; the path where we find the product after the installation
Set $InstallDir$ = „“
Set $LicenseRequired$ = „False“
Set $LicensePool$   = „“
;Minimum Space ist nicht angepasst, kann noch erfolgen
Set $MinimumSpace$ = „21 MB“
; —————————————————————-
set $OS$ = GetOS
if not(($OS$ = „Windows_NT“))
logError „Installation aborted: wrong OS version: only Windows“
isFatalError „wrong OS“
endif
if not(HasMinimumSpace („%SystemDrive%“, $MinimumSpace$))
LogError „Not enough space on %SystemDrive%, “ + $MinimumSpace$ + “ on drive %SystemDrive% needed for “ + $ProductId$
isFatalError „No Space“
; Stop process and set installation status to failed
endif
comment „Show product picture“
ShowBitmap „%ScriptPath%\“ + $ProductId$ + „.png“ $ProductId$
if FileExists(„%ScriptPath%\delsub.opsiscript“)
comment „Start uninstall sub section“
Sub „%ScriptPath%\delsub.opsiscript“
endif
Message „Installing “ + $ProductId$ + “ …“
if $LicenseRequired$ = „true“
comment „Licensing required, reserve license and get license key“
set $LicenseKey$ = get_licensekey_byPoolOrKey($LicensePool$)
endif
;Temp-Verzeichnis festlegen
defVar $TempSourceLocation$
Set $TempSourceLocation$ = „c:\temp\ms-office“
;Reihenfolge für die Installation
DosInAnIcon_Create
Files_Copy_SetupFiles
Winbatch_Silent_Install
Files_Cleanup_Local_Sources
Registry_install
;CopyJob für die Setup-Dateien
[Files_Copy_SetupFiles]
copy -s „%SCRIPTPATH%\sources\*“ $TempSourceLocation$
;Ordner erstellen um Office Setup Dateien zwischenzuspeichern
[DosInAnIcon_Create]
mkdir c:\temp\ms-office
;Ausführen der Installation mit Konfig Datei
[Winbatch_Silent_Install]
„$TempSourceLocation$\setup.exe“ /configure „$TempSourceLocation$\Office_Std_2019_Konfiguration.xml“
;Setup Dateien wieder entfernen
[Files_Cleanup_Local_Sources]
del -s -f $TempSourceLocation$
;Setzen eines RegKey, um Updates zu erlauben. Wir laden uns die Daten auf den unter UpdateChennel angegebenen Server.
[Registry_install]
openkey [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\ClickToRun\Configuration]
set „UpdateChannel“ = REG_SZ:“\\SERVERNAME\Office2019_Updates“
set „UpdatesEnabled“ = REG_SZ:“True“
; —————————————————————-
; —————————————————————-
##################################################################
#   Office_Std_2019_Konfiguration.xml                                                               #
##################################################################
<Configuration ID=“bf4022e9-7b56-45f8-a604-e07f54419226″>
<Add OfficeClientEdition=“32″ Channel=“PerpetualVL2019″ SourcePath=“C:\temp\ms-office“ AllowCdnFallback=“TRUE“>
<Product ID=“Standard2019Volume“ PIDKEY=“PRODUCT-KEY-HIER-EINTRAGEN“>
<Language ID=“de-de“ />
<ExcludeApp ID=“Groove“ />
<ExcludeApp ID=“OneDrive“ />
<ExcludeApp ID=“OneNote“ />
</Product>
</Add>
<Property Name=“SharedComputerLicensing“ Value=“0″ />
<Property Name=“PinIconsToTaskbar“ Value=“TRUE“ />
<Property Name=“SCLCacheOverride“ Value=“0″ />
<Property Name=“AUTOACTIVATE“ Value=“1″ />
<Property Name=“FORCEAPPSHUTDOWN“ Value=“TRUE“ />
<Property Name=“DeviceBasedLicensing“ Value=“0″ />
<Updates Enabled=“FALSE“/>
<RemoveMSI />
<AppSettings>
<Setup Name=“Company“ Value=“FIRMENNAMEN EINTRAGEN“ />
<User Key=“software\microsoft\office\16.0\excel\options“ Name=“defaultformat“ Value=“51″ Type=“REG_DWORD“ App=“excel16″ Id=“L_SaveExcelfilesas“ />
<User Key=“software\microsoft\office\16.0\powerpoint\options“ Name=“defaultformat“ Value=“27″ Type=“REG_DWORD“ App=“ppt16″ Id=“L_SavePowerPointfilesas“ />
<User Key=“software\microsoft\office\16.0\word\options“ Name=“defaultformat“ Value=““ Type=“REG_SZ“ App=“word16″ Id=“L_SaveWordfilesas“ />
</AppSettings>
<Display Level=“Full“ AcceptEULA=“TRUE“ />
<Logging Level=“Standard“ Path=“C:\temp\ms-office“ />
</Configuration>